No, but your startup task can just be a batch file that calls something else with a parameter. So if you want to call "foo.exe xyz" just make a batch file called foo.cmd with "foo.exe xyz" in it, and then call foo.cmd as a startup task.
Proposed As Answer byArora SThursday, May 12, 2011 12:13 PM
Hello Steve, but i think there is another problem, in staging i can see more units, c: d: e: and in my code i must to autodetect in witch of those units is installed IIS, then i configure my ISAPI for perl in the Web.config and i must to put the full
path (and i don´t know witch the correct path). How can i ask in the method onstart where is installed IIS or which is the correct unit or the full path incluyin unit? in producction i see less unit only see c: and d: and i don´t know why.
I want to add Environment variable in my csdef file. When I <Environment> element in my ServiceDefinition.csdef file, it's giving me error.
Warning 1 The element 'VirtualMachineRole' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition' has invalid child element 'Startup' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition'.
List of possible elements expected: 'Certificates, LocalResources, Endpoints, ConfigurationSettings' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition'. c:\users\administrator\documents\visual studio 2010\Projects\WindowsAzure6_Env\WindowsAzure6_Env\ServiceDefinition.csdef
7 6 WindowsAzure6_Env