VirtualBox

Changeset 107366 in vbox


Ignore:
Timestamp:
Dec 18, 2024 5:09:41 PM (4 weeks ago)
Author:
vboxsync
Message:

Windows host installer: Fixed detection of previous / newer versions of VirtualBox. Renamed PREVIOUSVERSIONSINSTALLED -> PREVIOUSVERSIONDETECTED to match the rest. Fixes installer validator warnings. bugref:10828

File:
1 edited

Legend:

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

    r107365 r107366  
    104104    <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
    105105
    106         <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade -->
    107         <!-- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version -->
    108         <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no" OnlyDetect="no" />
    109 
    110         <!-- Flag is set if the install will trigger an upgrade of an existing install -->
    111         <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="yes" />
     106        <!-- Detect if the same version (as this version) of VirtualBox already is installed.
     107             Useful for debugging / testboxes -->
     108        <UpgradeVersion Property="SAMEVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="yes"
     109                                                       Maximum="$(var.Property_Version)" IncludeMaximum="yes"
     110                                                       OnlyDetect="yes" />
     111
     112        <!-- Detect if a newer version (than this version) of VirtualBox already is installed.
     113             @todo Should make a dialog appear asking user to confirm downgrade -->
     114        <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no"
     115                                                        Maximum="9.9.99"                  IncludeMaximum="yes"
     116                                                        OnlyDetect="yes" />
     117
     118        <!-- Detect if an older version (than this version) of VirtualBox already is installed. -->
     119        <UpgradeVersion Property="PREVIOUSVERSIONDETECTED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="no" />
    112120
    113121    </Upgrade>
     
    417425
    418426        <!-- First install the new version and then remove the old version. This is more efficient -->
    419         <RemoveExistingProducts After="InstallValidate" Condition="PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED" />
     427        <RemoveExistingProducts After="InstallValidate" Condition="PREVIOUSVERSIONDETECTED OR NEWERVERSIONDETECTED" />
    420428
    421429        <Custom Action="ca_OriginalTargetDir" After="FileCost" Condition="(NOT INSTALLDIR)" />
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