VirtualBox

source: vbox/trunk/src/VBox/Installer/win/VBoxMergeNetAdp6Seq.wxi@ 108541

Last change on this file since 108541 was 108468, checked in by vboxsync, 3 months ago

Windows host installer: Run uninstallation of the network drivers before uninstalling the support driver, tried to make more clear what the network driver installation does (there's a separate defect for that, see bugref:10873). bugref:10762

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1<!--
2 VirtualBox Windows Installation Script (WiX)
3-->
4<!--
5 Copyright (C) 2006-2024 Oracle and/or its affiliates.
6
7 This file is part of VirtualBox base platform packages, as
8 available from https://www.virtualbox.org.
9
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License
12 as published by the Free Software Foundation, in version 3 of the
13 License.
14
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, see <https://www.gnu.org/licenses>.
22
23 SPDX-License-Identifier: GPL-3.0-only
24-->
25
26<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
27
28<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
29
30 <!--
31 Initial (first) installation.
32 -->
33
34 <!-- Create host-only interfaces on first-time install -->
35 <Custom Action="ca_CreateHostOnlyInterfaceNetAdpArgs" Before="ca_CreateHostOnlyInterfaceNetAdp"
36 Condition="(NOT Installed) AND ($cp_NetAdp6Driver=3)" />
37
38 <Custom Action="ca_CreateHostOnlyInterfaceNetAdp" Before="InstallFinalize"
39 Condition="(NOT Installed) AND ($cp_NetAdp6Driver=3)" />
40
41 <!--
42 Update (from a former Version of VirtualBox).
43 -->
44
45 <!-- Stop the host-only interfaces on update only. Driver still has to be
46 uninstalled, and the creation of interfaces in the new installer will
47 do the actual upgrading, preserving the interfaces. -->
48 <Custom Action="ca_StopHostOnlyInterfacesNetAdp" Before="ca_VBoxSupDrvInst"
49 Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE=&quot;ALL&quot;)" />
50
51 <!-- Uninstall the driver only on package upgrade, as for uninstall it is
52 included in ca_RemoveHostOnlyInterfaces.
53 @todo r=klaus Clean up this inconsistency by changing what the
54 install helper DLL does. It's very surprising behavior and needs
55 digging through a lot of code to understand the where and why. -->
56 <Custom Action="ca_UninstallNetAdpArgs" Before="ca_UninstallNetAdp"
57 Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE=&quot;ALL&quot;)" />
58
59 <!-- Needs to be uninstalled before VBoxSUP gets removed. -->
60 <Custom Action="ca_UninstallNetAdp" Before="ca_VBoxSupDrvUninst"
61 Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE=&quot;ALL&quot;)" />
62
63 <!--
64 Uninstallation
65 -->
66
67 <!-- Remove the host-only interfaces on uninstall only. Includes
68 VBoxNetAdp6 driver uninstall.
69 @todo r=klaus Clean up this inconsistency by changing what the
70 install helper DLL does. It's very surprising behavior and needs
71 digging through a lot of code to understand the where and why. -->
72 <!-- Needs to be uninstalled before VBoxSUP gets removed. -->
73 <Custom Action="ca_RemoveHostOnlyInterfacesNetAdp" Before="ca_VBoxSupDrvUninst"
74 Condition="NOT (UPGRADINGPRODUCTCODE) AND (Installed) AND (REMOVE=&quot;ALL&quot;)" />
75
76<?endif?>
77
78</Include>
Note: See TracBrowser for help on using the repository browser.

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