Hi Alex,
You might want to add OnlyDetect='no' attribute for the first UpgradeVersion
tag, something like this:
<Upgrade Id=...>
<UpgradeVersion OnlyDetect="no" Minimum="0.0.0.0" IncludeMinimum="yes"
.../>
<UpgradeVersion OnlyDetect="yes"
Minimum="0.0.$(var.PRODUCTBUILDVERSION)" .../>
</Upgrade>
If I don't miss anything, this will uninstall your previous version so that is
not present in Add/Remove list anymore.
Cheers,
Dacian
----- Original Message ----
From: Alex Henderson <[EMAIL PROTECTED]>
To: wix-users@lists.sourceforge.net
Sent: Tuesday, February 27, 2007 10:44:03 PM
Subject: Re: [WiX-users] Help getting upgrades to work
<!--
_filtered {font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
_filtered {font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{
color:purple;
text-decoration:underline;}
p
{
margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle19
{
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{
font-size:10.0pt;}
_filtered {
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{}
_filtered {
}
_filtered {
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
text-indent:-18.0pt;}
_filtered {
}
_filtered {
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
Thanks Mike,
Ok, just tried that and the installer runs when a previous
version is installed, which is great... however both version appear in the
add/remove
programs menu now, so it appears changing the product Id has caused MSI to
think its an entirely different product?
Any ideas what Im doing wrong... and out of curiosity,
how does MSI know a previous version of the same product is installed if the
products identifier is no longer the same...(does it use the upgrade code of
the previous installed version / this version to match up?
Chez,
-
Alex
From: Mike Poulson
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 February 2007 10:28 a.m.
To: 'Alex Henderson'; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Help getting upgrades to work
Change your product id. What you are doing is a Major
upgrade in the eyes of MSI.
Mike Poulson
Network Engineer
Tableau Software
400
North 34th Street, Suite 200
Seattle, WA 98103
206 633 3400 x.556
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alex Henderson
Sent: Tuesday, February 27, 2007 1:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Help getting upgrades to work
Im still getting to grips with WiX... my current problem
is trying to figure out how I can get upgrades to work.
What Im looking to do is just have later versions of the
same product uninstall the previously version and install the new version (At
this point Id be quite happy if it was silent...).. heres what
Ive got so far, the PRODUCTBUILDVERSION variable is a 2 part
version number (such as 9.122) with the last part being aligned with our build
numbers.
So I did this:
<Upgrade Id="58acbe6b-ffd2-4c7d-97a3-6b16f7d76384">
<UpgradeVersion Minimum="0.0.0.0"
IncludeMinimum="yes"
Maximum="0.0.$(var.PRODUCTBUILDVERSION)"
IncludeMaximum="no"
Property="PREVIOUSVERSIONFOUND"/>
<UpgradeVersion OnlyDetect="yes"
Property="NEWERVERSIONFOUND"
Minimum="0.0.$(var.PRODUCTBUILDVERSION)"
IncludeMinimum="no"/>
</Upgrade>
And then...
<CustomAction Id="NoDowngrade" Error="A later version
of [ProductName] is already installed!" />
<InstallExecuteSequence>
<Custom Action="NoDowngrade"
After="FindRelatedProducts">NEWERVERSIONFOUND</Custom>
<RemoveExistingProducts Before="InstallInitialize"/>
</InstallExecuteSequence>
But when the version number changes up, say from
0.0.9.121, to 0.0.9.122, the product displays the usual error dialog:
Another version of this product is already
installed. Installation of this version cannot continue. To
configure or remove the existing version of this product, us Add/Remove
Programs on the Control Panel
Could anyone offer me some guidance on how to implement
upgrades?
Chez,
-
Alex
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users