[wix-users] Major Upgrade "afterInstallFinalize" deletes shortcuts

Brian Enderle brianke at gmail.com
Fri Oct 30 15:44:51 PDT 2015


I am using the following for MajorUpgrades to prevent the upgrade from
overwriting any configuration files that may have been modified by the user:

    <!-- 'afterInstallFinalize' keeps any user modified files (i.e.,
config.xml) from being removed during an upgrade -->
    <MajorUpgrade DowngradeErrorMessage="A newer version of
$(var.ProductName) is already installed."
                  AllowDowngrades="no"
                  AllowSameVersionUpgrades="no"
                  Schedule="afterInstallFinalize"/>

I have noticed an error though when upgrading in that the shortcuts
(desktop, start menu, etc.) installed by the first installation are being
deleted by the upgrade.

Is there a way to keep the shortcuts from being deleted on upgrade?

Brian

If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein


More information about the wix-users mailing list