VirtualBox

Changeset 108408 in vbox


Ignore:
Timestamp:
Feb 27, 2025 10:19:21 AM (7 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167775
Message:

Host installer/win: Also detect and uninstall any same version which currently is installed. Helps with installing several test builds in a row which might have the same version number (but are technically different products in MSI-speak). bugref:10762

File:
1 edited

Legend:

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

    r108406 r108408  
    111111    <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
    112112
    113         <!-- Detect if the same version (as this version) of VirtualBox already is installed.
     113        <!-- Detect and uninstall if the same version (as this version) of VirtualBox already is installed.
    114114             Useful for debugging / testboxes -->
    115115        <UpgradeVersion Property="SAMEVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="yes"
    116116                                                       Maximum="$(var.Property_Version)" IncludeMaximum="yes"
    117                                                        OnlyDetect="yes" />
    118 
    119         <!-- Detect if a newer version (than this version) of VirtualBox already is installed.
     117                                                       OnlyDetect="no" />
     118
     119        <!-- Detect and uninstall if a newer version (than this version) of VirtualBox already is installed.
    120120             @todo Should make a dialog appear asking user to confirm downgrade -->
    121121        <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no"
    122122                                                        Maximum="9.9.99"                  IncludeMaximum="yes"
    123                                                         OnlyDetect="yes" />
     123                                                        OnlyDetect="no" />
    124124
    125125        <!-- Detect if an older version (than this version) of VirtualBox already is installed. -->
     
    417417        <LaunchConditions After="AppSearch" />
    418418
    419         <!-- First install the new version and then remove the old version. This is more efficient -->
    420         <RemoveExistingProducts After="InstallValidate" Condition="PREVIOUSVERSIONDETECTED OR NEWERVERSIONDETECTED" />
     419        <!-- First uninstall any installed VBox version, then install this version. -->
     420        <RemoveExistingProducts After="InstallValidate" Condition="PREVIOUSVERSIONDETECTED OR NEWERVERSIONDETECTED OR SAMEVERSIONDETECTED" />
    421421
    422422        <Custom Action="ca_OriginalTargetDir" After="FileCost" Condition="(NOT INSTALLDIR)" />
Note: See TracChangeset for help on using the changeset viewer.

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