To get the second option to work, save the installation directory in the
registry when you install v1.0. Then when performing a major upgrade,
have v1.1 search the registry for the installation directory and use it.
-Brian Simoneau
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Scheuner
Sent: Friday, November 02, 2007 7:29 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] The whole update maze in MSI
Folks,
I'm trying to do this:
* Install MyApp v1.0 into a custom directory (e.g.
X:\wacky\weirdo\MyApp)
* Later, install an update (to v1.01 or v1.1) that picks up
where my v1.0 is installed and goes to the same directory by default
I figured since not a whole lot has changed between 1.0 and 1.1,
I'd use the same ProductID and do a minor update - trouble is, I can't
seem to get this to work so that I can just double-click on the
Myapp_v1.1.msi and have it run, uninstall the previous v1.0 version, and
install itself into that custom directory the user had picked.
So I chose to use a Major update, since in that case, I can get
it to work as expected (just double-click the MSI and off you go), but
in that case, I can't seem to "save" the installation directory for v1.0
long enough so that v1.1 will pick up on it. v1.0 gets uninstalled okay,
but the MSI insists on putting v1.1 into the default directory
(c:\program files\[manufacturer]\MyApp11 or whatever it is).
So how do I
* either make MINOR updates WORK automagically without a
plethora of commandline switches - just double-click on the v1.1 MSI and
off you go and MyApp is updated
* get the MAJOR update to work so that when installing v1.1, I
can somehow find the installation directory for v1.0 before it gets
uninstalled, and use it as the default for my update-install for v1.1
I've read and re-read and re-re-read the MSI docs and all the
web site and tutorial and books I can get on MSI and its update magic -
I don't get it.
Can one of you help? Have you done this, and how?
Cheers ! Marc
-------------------------------------------------------------------------
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