ServiceInstall - Start element

4 messages Options
Embed this post
Permalink
eneo

ServiceInstall - Start element

Reply Threaded More More options
Print post
Permalink
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.
Wilson, Phil

Re: ServiceInstall - Start element

Reply Threaded More More options
Print post
Permalink
The StartType field in the resulting ServiceInstall table is DoubleInteger, so a [property] isn't a legal value (it would require the field type to be Formatted).

Phil Wilson

-----Original Message-----
From: eneo [mailto:[hidden email]]
Sent: Thursday, October 29, 2009 11:51 AM
To: [hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



*** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail [hidden email]. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Alexander Shevchuk (Volt)

Re: ServiceInstall - Start element

Reply Threaded More More options
Print post
Permalink
In reply to this post by eneo
Type of ServiceInstall@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:[hidden email]]
Sent: Thursday, October 29, 2009 11:51 AM
To: [hidden email]
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: ServiceInstall - Start element

Reply Threaded More More options
Print post
Permalink
In reply to this post by eneo
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:[hidden email]]
Sent: Thursday, October 29, 2009 11:51 AM
To: [hidden email]
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users