I have a scenario where the MSI initially installs the service as Automatic 
delayed start. However when the service is being patched its state could have 
changed (Manual, Automatice stopped or Running) and I would like for the patch 
to leave the state of the Service the same. However I also do want to preserve 
the state of the service (the user name, password) and such during the patch.

I added the following code to prevent reinstallation of the service during 
patching.

      <DeleteServices> (NOT PATCH) AND (NOT MSIPATCHREMOVE)</DeleteServices>
      <InstallServices > (NOT PATCH) AND (NOT MSIPATCHREMOVE)</InstallServices>

However in this case the service is not restarted if it was running. Is there a 
way for me to check if the service was running before patch and conditionally 
restart it using WIX only?

Thanks,
Rishi


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to