VirtualBox

Ignore:
Timestamp:
Mar 31, 2017 3:44:14 PM (8 years ago)
Author:
vboxsync
Message:

Installer/win: Full circle, go back to the original VBoxNet{Adp,Adp6} custom action conditions. They are correct, because the install helper functions are doing very strange and inconsistent things. Some comments were misleading or wrong, this is now fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/VBoxMergeNetAdp6Seq.wxi

    r66379 r66385  
    3333        <?endif ?>
    3434    </Custom>
    35     <!-- Don't remove the host-only interfaces on update, only on uninstall -->
     35    <!-- Remove the host-only interfaces on uninstall only. Includes
     36         VBoxNetAdp6 driver uninstall.
     37         @todo r=klaus Clean up this inconsistency by changing what the
     38         install helper DLL does. It's very surprising behavior and needs
     39         digging through a lot of code to understand the where and why. -->
    3640    <Custom Action="ca_RemoveHostOnlyInterfacesNDIS6" After="InstallInitialize" >
    3741        <![CDATA[NOT (UPGRADINGPRODUCTCODE) AND (Installed) AND (REMOVE="ALL")]]>
    3842    </Custom>
    39     <!-- First stop the existing host-only interfaces on update ... -->
     43    <!-- Stop the host-only interfaces on update only. Driver still has to be
     44         uninstalled, and the creation of interfaces in the new installer will
     45         do the actual upgrading, preserving the interfaces. -->
    4046    <Custom Action="ca_StopHostOnlyInterfacesNDIS6" After="InstallInitialize" >
    41         <![CDATA[(UPGRADINGPRODUCTCODE) OR (REMOVE="ALL")]]>
     47        <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
    4248    </Custom>
    4349
    44     <!-- Finally uninstall the driver, but only on package uninstall -->
     50    <!-- Uninstall the driver only on package upgrade, as for uninstall it is
     51         included in ca_RemoveHostOnlyInterfaces.
     52         @todo r=klaus Clean up this inconsistency by changing what the
     53         install helper DLL does. It's very surprising behavior and needs
     54         digging through a lot of code to understand the where and why. -->
    4555    <Custom Action="ca_UninstallNetAdp6Args" Before="ca_UninstallNetAdp6" >
    46         <![CDATA[NOT (UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
     56        <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
    4757    </Custom>
    4858    <Custom Action="ca_UninstallNetAdp6" After="ca_StopHostOnlyInterfacesNDIS6" >
    49         <![CDATA[NOT (UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
     59        <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
    5060    </Custom>
    5161
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