1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 | VirtualBox Windows Installation Script (WiX)
|
---|
4 | -->
|
---|
5 | <!--
|
---|
6 | Copyright (C) 2006-2020 Oracle Corporation
|
---|
7 |
|
---|
8 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | available from http://www.virtualbox.org. This file is free software;
|
---|
10 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | General Public License (GPL) as published by the Free Software
|
---|
12 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | -->
|
---|
16 |
|
---|
17 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
---|
18 | xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
|
---|
19 |
|
---|
20 | <?include Defines.wxi ?>
|
---|
21 |
|
---|
22 | <Module Id="msm_VBoxNetworkLwf"
|
---|
23 | Language="!(loc.LANG)"
|
---|
24 | Version="$(var.Property_Version)">
|
---|
25 |
|
---|
26 | <Package Id="5aca0331-4936-4c1b-820a-8359965d49a4"
|
---|
27 | Keywords="Installer, Setup"
|
---|
28 | Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) NetLwf installation package"
|
---|
29 | Comments="$(env.VBOX_PRODUCT) NetLwf installation package"
|
---|
30 | Manufacturer="$(env.VBOX_VENDOR)"
|
---|
31 | InstallerVersion="200"
|
---|
32 | AdminImage="yes"
|
---|
33 | InstallPrivileges="elevated"
|
---|
34 | Platform="$(var.Property_Platform)"
|
---|
35 | SummaryCodepage="1252"/>
|
---|
36 |
|
---|
37 | <?include CommonProperties.wxi ?>
|
---|
38 | <?include PublicProperties.wxi ?>
|
---|
39 |
|
---|
40 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
41 | <Property Id="localMSMNetworkType" Value="NDIS6" />
|
---|
42 | <Configuration Name="passedNetworkType" Format="Text" DefaultValue="Not passed"/>
|
---|
43 | <Substitution Table="CustomAction" Row="setNetworkTypeLWF" Column="Target" Value="[=passedNetworkType]"/>
|
---|
44 | <CustomAction Id="setNetworkTypeLWF" Property="localMSMNetworkType" Value="[localMSMNetworkType]" Execute="immediate" />
|
---|
45 | <CustomAction Id="correctNetworkTypeLWF" Property="localMSMNetworkType" Value="NDIS5" Execute="immediate" />
|
---|
46 | <?endif ?>
|
---|
47 |
|
---|
48 | <!-- Here comes the file/directory list -->
|
---|
49 | <Directory Id="TARGETDIR" Name="SourceDir">
|
---|
50 | <Directory Id="msm_VBoxNetworkLwfFolder" FileSource=".">
|
---|
51 |
|
---|
52 | <?include VBoxMergeNetLwf.wxi ?>
|
---|
53 |
|
---|
54 | </Directory> <!-- msm_VBoxNetworkLwfFolder -->
|
---|
55 | </Directory> <!-- TARGETDIR -->
|
---|
56 |
|
---|
57 | <!-- Custom actions -->
|
---|
58 | <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
|
---|
59 | <?include VBoxMergeNetLwfCA.wxi ?>
|
---|
60 |
|
---|
61 | <InstallExecuteSequence>
|
---|
62 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
63 | <Custom Action="setNetworkTypeLWF" After="CostInitialize"/>
|
---|
64 | <Custom Action="correctNetworkTypeLWF" After="setNetworkTypeLWF">
|
---|
65 | <![CDATA[(VersionNT < 600)]]>
|
---|
66 | </Custom>
|
---|
67 | <?endif ?>
|
---|
68 | <?include VBoxMergeNetLwfSeq.wxi ?>
|
---|
69 | </InstallExecuteSequence>
|
---|
70 |
|
---|
71 | </Module>
|
---|
72 | </Wix>
|
---|