[wix-users] Change component directory on upgrade

Parkes, Kevin kevin.parkes at wacom.com
Tue Jan 9 08:16:05 PST 2018

Answering my own question: I'd forgotten to increment the MSI version number. Having made that change, things work as expected and desired  :-)

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Parkes, Kevin via wix-users
Sent: 08 January 2018 16:11
To: 'wix-users at lists.wixtoolset.org' <wix-users at lists.wixtoolset.org>
Cc: Parkes, Kevin <kevin.parkes at wacom.com>
Subject: [wix-users] Change component directory on upgrade

I would like, as part of a major upgrade, to install a new version of a file to a different directory to the previous version. I've found that if I just change the directory, the new version gets installed in the new folder but the old version is left in the old location. I originally had Schedule="afterInstallInitialize" but have also tried Schedule="afterInstallValidate".  I thought a major upgrade (with either of those values of Schedule) was supposed to remove the existing version before installing the new one.

What should I be doing to have the old version removed?

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list