Here is what you need to do to make your install package "smart" to
recognize removing itself if it is already installed.
1. <Product> tag line, the Id= GUID needs to be Unique each time you
build the package (and the version number needs to be incremented each
time as well)
2. In the <InstallExecuteSequene> section, add the following:
<RemoveExistingProducts After="InstallInitialize" />
3. For an <Upgrade> detection of the product, do something similar to
the following where the GUID is the UpgradeCode of your installation
<Upgrade Id="226F3469-D558-498a-AA7A-AD9072549EF4" >
<UpgradeVersion OnlyDetect="no" Property="DETECTED"
IncludeMaximum="yes" IncludeMinimum="yes" Maximum="1.5.1.2"
Minimum="1.5.1.2"/>
</Upgrade>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of RussGreen
Sent: Friday, October 12, 2007 12:18 AM
To: [email protected]
Subject: [WiX-users] Default regsearch values and upgrading
Hi,
I'm new to WiX and have been trying the WiXEdit tool to build an
installer.
I have been working through a turorial and successfully built the
initial
MSI file with a custome dialog to collect user information that will be
written to the registry but now I have come up against a few issues I
can't
get around:
1 - Default value of a propoerty
I have 2 properties that are populated by a regirstry search. These
property
values then form the default values in textboxes on my custom form. This
works OK. When the registry key is not there or empty how can I give the
property a default value?
<Property Id="MDBFULLPATH">
<RegistrySearch Id="MDBPathRegistry" Type="raw" Root="HKLM"
Key="Software\eProject" Name="DataSource" />
</Property>
2 - Upgrade / overwright existing installation
I'm getting a bit confused about this. I was previously using the
freeware
AdvancedInstaller to build by MSI http://www.advancedinstaller.com/ .
There
was a simple tick box in the editor that meant the MSI file created
would
automatically upgrade older versions of the product already installed.
How
can I achieve this in WiX?
I am happy for every minor upgrade to be treated as a major upgrade but
I
can't get past the MSI detecting that another version of the product is
already installed.
This is as far as I have managed to get
http://www.nabble.com/file/p13170370/eProject.wxs eProject.wxs &
http://www.nabble.com/file/p13170370/eprojectwixui.wixlib
eprojectwixui.wixlib
TIA
Russ Green
--
View this message in context:
http://www.nabble.com/Default-regsearch-values-and-upgrading-tf4611878.h
tml#a13170370
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users