I think this is what you're after.

To reinstall even if the same version is already installed, I use this in my 
Upgrade node:

<UpgradeVersion Minimum="!(bind.FileVersion.UCClient.dll)" IncludeMinimum="no" 
OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
<UpgradeVersion Minimum="1.0.0.0" Maximum="!(bind.FileVersion.UCClient.dll)" 
IncludeMaximum="yes" IncludeMinimum="yes" Property="OLDERVERSIONBEINGUPGRADED" 
/>

The important part being IncludeMinimum="no" when looking for "newer" versions, 
and IncludeMaximum="yes" when looking for versions that can be upgraded.

It generates a warning on compile, but is safe to ignore. Hope that helps

-Thom


-----Original Message-----
From: Mathis Thomas [mailto:t...@bica.ch] 
Sent: 06 January 2011 12:31
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Problem with the upgrademodus

Sorry, I forgot the mail subject. Please see the mail below, thanks.

Thomas Mathis
 
BICA AG
Retail Solution Company
Switzerland


-----Ursprüngliche Nachricht-----
Von: Mathis Thomas [mailto:t...@bica.ch]
Gesendet: Donnerstag, 6. Januar 2011 11:14
An: wix-users@lists.sourceforge.net
Betreff: [WiX-users] (no subject)

Hallo WiX-users,
 
I have following scenario:
=> fixed GUID Upgradecode
=> new GUID of Productcode for each new build version => install and upgarade 
logic in msi package => the installation of the msi package is started on 
commandline, somthing like msiexec.exe /i package.msi => the installation is 
startet in the following situation:
    - new installation
    - upgrade from an old to a newer version
    - upgrade from the same version to the same version => HERE OUTPUTS THE 
ERRORCODE 1603!
 
My questions:
Are this behavior from the msi or wix technology? Can I change this behavior? 
Somthing like:
    - Abort installation without return error code, but only do this in 
commandline mode or with special commandline parameter.
    - Continue installation but change automatically into the repair mode. 
Optionaly switch on this behavior with special commandline parameter.
 
Thanks,
 
Thomas Mathis
 
BICA AG
Retail Solution Company
Switzerland

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers to 
consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database without 
downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to