I asked this before but didn't receive any replies. Given that there seems
to be considerable discussion on upgrades lately I thought I would ask it
again (maybe in a different form)

 

I have an installation script that installs code, service, everthing just
fine. The problem is that I have not figured out the upgrade thing. Right
now when I want to upgrade I go to 'Add Remove Programs' and remove the
application and that removes all of the services, code, etc. Then I just
double-click on the .msi and install the "upgrade". I would like to automate
this. At first I was thinking that I could detect that it was an upgraded,
stop the services, copy the code, start the services. The problem with that
is that I have to have a conditional on each of those steps. The alternative
would be to detect that this was an upgrade, force the removal of the old
version then proceed as with a "normal" installation.

 

Both of these have problems for me. The first method is preferable because
then I don't have to reenter the user name and password that each of the
services is to run under. But I don't know how to stop then start an
existing service (rather than install) based on the conditional property set
when I detect that this is an upgrade. All of the WIX code dealing with
services would need to be conditionally run. The second method has the major
drawback of the fact that I don't know how to conditionally force an
uninstall then proceed with the "normal" installation. 

 

For now I can assume a major upgrade as that seems the simplest as far as
WIX code.

 

If you have some sample code like I said preferably upgrading with the first
method I would greatly appreciate it.

 

Thank you.

 

Kevin

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to