Is this a Windows Service?  More than like, if you don't shutdown the service, 
the attempt to update one or more of the binaries will fail or force a reboot.  
Unlike OS/2, Windows does not have an API to unload DLL's or executables.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 




-----Original Message-----
From: Shay Friedman [mailto:shay.fried...@gmail.com] 
Sent: Tuesday, July 30, 2013 3:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to NOT uninstall a service on upgrade

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
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


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

Reply via email to