The database field behind the Start attribute is not a formatted type (or
other type that allows replaceable values. If you can't know what startup
type you will want/need, though, you can use Bob's "semi-custom action"
technique to change that field at runtime.

-----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

Reply via email to