We've got an application that can be upgraded, and it also has two
services. 

I'd like to be able to preserve the status of the services, so that when
I run an update install, I can keep the values of these to be the same
as what the user originally had.

My thoughts were to create a two Custom Action which runs before
"StopServices", and these actions will each query the necessary service
and get the StartMode, and set a property.

Then, I would use this property in my wix ServiceInstall task as an
argument to the Start option.

This doesn't work, and Candle gives this error:

C:\p4\les.core\9.7.1-branch\tmp\wix_redist\LES_CORE_RELEASE.wxs(329) :
error CNDL0022 : The ServiceInstall/@Start attribute's value,
'[LES_SERVICE_STARTTYPE]',is not one of the legal options: 'auto',
'demand', or 'disabled'.

Is there a way around this, or does anyone have a better idea to prevent
me from changing the status of the upgraded service(s) from Manual to
Auto?

Could I change the condition of the StopService,
DeleteService,CreateService, and StartService actions to not run if it's
one of my upgade installs?

Jim Fagan 
CM Engineer - Open Text

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to