VirtualBox

Changeset 52031 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 15, 2014 8:26:32 AM (11 years ago)
Author:
vboxsync
Message:

Windows host installer: Try fixing downgrading from an already installed (newer) version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/VirtualBox.wxs

    r52015 r52031  
    111111        <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade -->
    112112        <!-- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version -->
    113         <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" OnlyDetect="no" />
     113        <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no" OnlyDetect="no" />
    114114
    115115        <!-- Flag is set if the install will trigger an upgrade of an existing install -->
     
    445445
    446446        <!-- First install the new version and then remove the old version. This is more efficient -->
    447         <RemoveExistingProducts Before="InstallValidate" />
     447        <RemoveExistingProducts After="InstallValidate"><![CDATA[PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED]]></RemoveExistingProducts>
    448448
    449449        <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)]]></Custom>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette