Hi there, I have an installer which installs a service with user credentials it receives from the user. On an upgrade I don't want to remove and reinstall the service because this results in loosing the credentials. When the user uninstalls the application I do want the service to be uninstalled.
This is the service installation code: <ServiceInstall Id="InstallWindowsService" Name="MyService" DisplayName="My Serivce" Start="auto" ErrorControl="normal" Type="ownProcess" Account="[MY_USER]@[MY_DOMAIN]" Password="[MY_PASSWORD]" Vital="yes"/><ServiceControl Id="sc_WindowsService" Name="MyService" Start="install" Stop="both" Remove="uninstall" Wait="yes" /> I tried adding a condition for DeleteServices in InstallSequence but that didn't help. I could see in the log that DeleteServices appears twice - on the first time it is executed and on the second one it is skipped because of the condition.... Is there a way to achieve what I want? Thanks, Shay. ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users