Type of serviceinst...@start attribute is not "Formatted" (http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx). So, depending on when decision has to be made on this attribute's value:
- Build time Use preprocessor directives to set variable and use it something like this: <ServiceInstall ... Start='$(var.Start)' ... Or <?if $(var.Start) = "disabled" ?> <ServiceInstall ... Start='disabled' ... <?endif?> ... - Install time - Use conditions on Components with one component for each combination of Start attribute's value. - Use custom action to update StartType column of ServiceInstall table (http://msdn.microsoft.com/en-us/library/aa371637(VS.85).aspx). Schedule this action somewhere before InstallServices action. - Use transforms to do the same. Just few options you might want to consider. Alex -----Original Message----- From: eneo [mailto:e.karagj...@gmail.com] Sent: Thursday, October 29, 2009 11:51 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] ServiceInstall - Start element Hi, I have created a property that gets the value for the 'Start' element. <Property Id="STARTTYPE" Value="disabled" /> The compiler returns following error: : error CNDL0022 : The ServiceInstall/@Start attribute's value, '[STARTTYPE]', is not one of the legal options: 'auto', 'demand', or 'dis abled'. Failed ... the wix code: <Property Id="TARGETDIR" Value="D:\Reuters\RkdDataGuideService" /> <Property Id="SERVICELOGONUSER" Value="LocalSystem"/> <Property Id="SERVICELOGONPASSWORD" Value="test" /> <Property Id="STARTTYPE" Value="disabled" /> <ServiceInstall Id='RkdDataGuideServiceInstall' DisplayName=RKD Data Guide Service' Name='RkdDataGuideService' ErrorControl='normal' Start='[STARTTYPE]' Type='ownProcess' Interactive='no' Vital='yes' Account='[SERVICELOGONUSER]' Password='[SERVICELOGONPASSWORD]' /> <ServiceControl Id='RkdDataGuideServiceControl' Name='RkdDataGuideService' Start='install' Stop='uninstall' Remove='uninstall' Wait='no' /> Is it possible to assign a value for the Start element without explicitly noting for example: Start = 'disabled'? Please advise. Thank You. -- View this message in context: http://n2.nabble.com/ServiceInstall-Start-element-tp3914783p3914783.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users