1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 | VirtualBox Windows Installation Script (WiX)
|
---|
4 |
|
---|
5 | Copyright (C) 2006-2016 Oracle Corporation
|
---|
6 |
|
---|
7 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | available from http://www.virtualbox.org. This file is free software;
|
---|
9 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | General Public License (GPL) as published by the Free Software
|
---|
11 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | -->
|
---|
15 |
|
---|
16 | <Include xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
---|
17 | xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
|
---|
18 |
|
---|
19 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
20 | <!-- Create host-only interfaces on first-time install -->
|
---|
21 | <Custom Action="ca_CreateHostOnlyInterfaceArgs" Before="ca_CreateHostOnlyInterface" >
|
---|
22 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
23 | <![CDATA[(NOT Installed) AND ($cp_NetAdpDriver=3)]]>
|
---|
24 | <?else ?>
|
---|
25 | <![CDATA[(NOT Installed) AND ($cp_NetAdpDriver=3)]]>
|
---|
26 | <?endif ?>
|
---|
27 | </Custom>
|
---|
28 | <Custom Action="ca_CreateHostOnlyInterface" Before="InstallFinalize" >
|
---|
29 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
30 | <![CDATA[(NOT Installed) AND ($cp_NetAdpDriver=3)]]>
|
---|
31 | <?else ?>
|
---|
32 | <![CDATA[(NOT Installed) AND ($cp_NetAdpDriver=3)]]>
|
---|
33 | <?endif ?>
|
---|
34 | </Custom>
|
---|
35 | <!-- Remove the host-only interfaces on uninstall only. Includes
|
---|
36 | VBoxNetAdp 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. -->
|
---|
40 | <Custom Action="ca_RemoveHostOnlyInterfaces" After="InstallInitialize" >
|
---|
41 | <![CDATA[NOT (UPGRADINGPRODUCTCODE) AND (Installed) AND (REMOVE="ALL")]]>
|
---|
42 | </Custom>
|
---|
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. -->
|
---|
46 | <Custom Action="ca_StopHostOnlyInterfaces" After="InstallInitialize" >
|
---|
47 | <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
|
---|
48 | </Custom>
|
---|
49 |
|
---|
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. -->
|
---|
55 | <Custom Action="ca_UninstallNetAdpArgs" Before="ca_UninstallNetAdp" >
|
---|
56 | <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
|
---|
57 | </Custom>
|
---|
58 | <Custom Action="ca_UninstallNetAdp" After="ca_StopHostOnlyInterfaces" >
|
---|
59 | <![CDATA[(UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]>
|
---|
60 | </Custom>
|
---|
61 |
|
---|
62 | <?endif ?>
|
---|
63 |
|
---|
64 | </Include>
|
---|