[wix-users] Force overwrite of specific binaries that have a lower version than the previous version installed (doing upgrade)

Hoover, Jacob Jacob.Hoover at greenheck.com
Wed Jun 15 11:05:21 PDT 2022


Schedule RemoveExistingProducts earlier? Ex: Before='InstallInitialize'

From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Steven Ogilvie via wix-users
Sent: Wednesday, June 15, 2022 10:47 AM
To: wix-users at lists.wixtoolset.org
Cc: Steven Ogilvie <stogilvie at genetec.com>
Subject: [wix-users] Force overwrite of specific binaries that have a lower version than the previous version installed (doing upgrade)
Importance: High

Hello,

I remember doing this 'fix' in a previous company but for the life of me I can't remember what was done.

Background:

Client installs version 1.0.0.0<http://1.0.0.0> of product, a couple of DLL's are version 5.0.20.0<http://5.0.20.0> (not our DLL's)

Then client upgrades to version 1.1.0.0<http://1.1.0.0> of our product, but a couple of the DLL's are version 5.0.17.0<http://5.0.17.0> (not our DLL's) and the 2 DLL's are not copied over (our upgrades are major upgrades, i.e. uninstall old, install new).

A few of our MSI's in other products we are using InstallShield, and in InstallShield you can right click on a file and select from the Properties dialog "Always overwrite" checkbox which forces the file to be overwritten regardless of version or date.

Solution: ?

However, you can't really do that in WiX, I think the only way to 'fix' the issue is to change:

REINSTALLMODE=omus (default) to either
REINSTALLMODE=amus or REINSTALLMODE=dmus

Is this the *ONLY* available workaround?

Thank you,

Steve


Steven Ogilvie
Software Developer, SCMT - Builds & Installers

Confidentiality Message * This e-mail message is confidential, may be privileged and is intended for the exclusive use of the addressee. Any other person is strictly prohibited from disclosing, distributing or reproducing it. If the addressee cannot be reached or is unknown to you, please inform the sender by return e-mail immediately and delete this e-mail message and destroy all copies.


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.



More information about the wix-users mailing list