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.215389.xyz.
|
---|
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 | <!-- Merge modules need to be independent from other modules, so this module can't use any action from other modules. -->
|
---|
46 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
47 | <!-- Stop the host-only interfaces on update only. Driver still has to be
|
---|
48 | uninstalled, and the creation of interfaces in the new installer will
|
---|
49 | do the actual upgrading, preserving the interfaces. -->
|
---|
50 | <Custom Action="ca_StopHostOnlyInterfacesNetAdp" Before="InstallInitialize"
|
---|
51 | Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")" />
|
---|
52 |
|
---|
53 | <!-- Uninstall the driver only on package upgrade, as for uninstall it is
|
---|
54 | included in ca_RemoveHostOnlyInterfaces.
|
---|
55 | @todo r=klaus Clean up this inconsistency by changing what the
|
---|
56 | install helper DLL does. It's very surprising behavior and needs
|
---|
57 | digging through a lot of code to understand the where and why. -->
|
---|
58 | <Custom Action="ca_UninstallNetAdpArgs" Before="ca_UninstallNetAdp"
|
---|
59 | Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")" />
|
---|
60 |
|
---|
61 | <!-- Needs to be uninstalled after it has been stopped. -->
|
---|
62 | <Custom Action="ca_UninstallNetAdp" After="ca_StopHostOnlyInterfacesNetAdp"
|
---|
63 | Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")" />
|
---|
64 | <?else?>
|
---|
65 | <!-- Stop the host-only interfaces on update only. Driver still has to be
|
---|
66 | uninstalled, and the creation of interfaces in the new installer will
|
---|
67 | do the actual upgrading, preserving the interfaces. -->
|
---|
68 | <Custom Action="ca_StopHostOnlyInterfacesNetAdp" Before="ca_VBoxSupDrvInst"
|
---|
69 | Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")" />
|
---|
70 |
|
---|
71 | <!-- Uninstall the driver only on package upgrade, as for uninstall it is
|
---|
72 | included in ca_RemoveHostOnlyInterfaces.
|
---|
73 | @todo r=klaus Clean up this inconsistency by changing what the
|
---|
74 | install helper DLL does. It's very surprising behavior and needs
|
---|
75 | digging through a lot of code to understand the where and why. -->
|
---|
76 | <Custom Action="ca_UninstallNetAdpArgs" Before="ca_UninstallNetAdp"
|
---|
77 | Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")" />
|
---|
78 |
|
---|
79 | <!-- Needs to be uninstalled before VBoxSUP gets removed. -->
|
---|
80 | <Custom Action="ca_UninstallNetAdp" Before="ca_VBoxSupDrvUninst"
|
---|
81 | Condition="(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")" />
|
---|
82 | <?endif?>
|
---|
83 |
|
---|
84 | <!--
|
---|
85 | Uninstallation
|
---|
86 | -->
|
---|
87 |
|
---|
88 | <!-- Merge modules need to be independent from other modules, so this module can't use any action from other modules. -->
|
---|
89 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
90 | <!-- Remove the host-only interfaces on uninstall only. Includes
|
---|
91 | VBoxNetAdp6 driver uninstall.
|
---|
92 | @todo r=klaus Clean up this inconsistency by changing what the
|
---|
93 | install helper DLL does. It's very surprising behavior and needs
|
---|
94 | digging through a lot of code to understand the where and why. -->
|
---|
95 | <!-- Needs to be uninstalled before VBoxSUP gets removed. -->
|
---|
96 | <Custom Action="ca_RemoveHostOnlyInterfacesNetAdp" Before="InstallFinalize"
|
---|
97 | Condition="NOT (UPGRADINGPRODUCTCODE) AND (Installed) AND (REMOVE="ALL")" />
|
---|
98 | <?else?>
|
---|
99 | <!-- Remove the host-only interfaces on uninstall only. Includes
|
---|
100 | VBoxNetAdp6 driver uninstall.
|
---|
101 | @todo r=klaus Clean up this inconsistency by changing what the
|
---|
102 | install helper DLL does. It's very surprising behavior and needs
|
---|
103 | digging through a lot of code to understand the where and why. -->
|
---|
104 | <!-- Needs to be uninstalled before VBoxSUP gets removed. -->
|
---|
105 | <Custom Action="ca_RemoveHostOnlyInterfacesNetAdp" Before="ca_VBoxSupDrvUninst"
|
---|
106 | Condition="NOT (UPGRADINGPRODUCTCODE) AND (Installed) AND (REMOVE="ALL")" />
|
---|
107 | <?endif?>
|
---|
108 |
|
---|
109 | <?endif?>
|
---|
110 |
|
---|
111 | </Include>
|
---|