1 | <!--
|
---|
2 | VirtualBox Windows Installation Script (WiX), preprocessor defines.
|
---|
3 | -->
|
---|
4 | <!--
|
---|
5 | Copyright (C) 2014-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 | <!-- TODO: Add "VBox" prefix! -->
|
---|
29 | <?define Property_RegKey = "Software\$(env.VBOX_VENDOR_SHORT)\VirtualBox" ?>
|
---|
30 | <?define Property_RegKeyInstall = "Software\$(env.VBOX_VENDOR_SHORT)\VirtualBox\Install" ?>
|
---|
31 | <?define Property_Upgrade = "yes" ?>
|
---|
32 | <?define Property_Version = "$(env.VBOX_VERSION_STRING_RAW)" ?>
|
---|
33 | <?define Property_VersionExt = "$(env.VBOX_VERSION_STRING)" ?>
|
---|
34 |
|
---|
35 | <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
|
---|
36 | <?define VBoxProperty_MsiInstallerVersion = "200" ?>
|
---|
37 | <?define Property_ProgramFiles = "StandardDirectory" ?>
|
---|
38 | <?define Property_Platform = "x64" ?>
|
---|
39 | <?define Property_IsWin64 = "yes" ?>
|
---|
40 | <?define Property_Bitness = "always64" ?>
|
---|
41 |
|
---|
42 | <?if $(env.VBOX_SIGNING_MODE) != "none" ?>
|
---|
43 | <?define Property_DriverLegacy = "no" ?>
|
---|
44 | <?else?>
|
---|
45 | <?define Property_DriverLegacy = "yes" ?>
|
---|
46 | <?endif?>
|
---|
47 | <?endif?>
|
---|
48 |
|
---|
49 | <?if $(env.KBUILD_TARGET_ARCH) = "arm64" ?>
|
---|
50 | <?define VBoxProperty_MsiInstallerVersion = "500" ?>
|
---|
51 | <?define Property_ProgramFiles = "StandardDirectory" ?>
|
---|
52 | <!-- Property_Platform = "Arm64" - doesn't seem to be used anywhere. -->
|
---|
53 | <!-- Property_IsWin64 = "yes" - doesn't seem to be used anywhere. -->
|
---|
54 | <?define Property_Bitness = "always64" ?>
|
---|
55 | <!-- Property_DriverLegacy = "no" - doesn't seem to be used anywhere. -->
|
---|
56 | <?endif?>
|
---|
57 |
|
---|
58 | <?if $(env.KBUILD_TARGET_ARCH) = "x86" ?>
|
---|
59 | <?define VBoxProperty_MsiInstallerVersion = "200" ?>
|
---|
60 | <?define Property_ProgramFiles = "ProgramFilesFolder" ?>
|
---|
61 | <?define Property_Platform = "x86" ?>
|
---|
62 | <?define Property_IsWin64 = "no" ?>
|
---|
63 | <?define Property_Bitness = "always32" ?>
|
---|
64 |
|
---|
65 | <?if $(env.VBOX_SIGNING_MODE) != "none" ?>
|
---|
66 | <!-- Note: Settings this to 'no' breaks Windows 2000 installs (!) -->
|
---|
67 | <?define Property_DriverLegacy = "yes" ?>
|
---|
68 | <?else?>
|
---|
69 | <?define Property_DriverLegacy = "yes" ?>
|
---|
70 | <?endif?>
|
---|
71 |
|
---|
72 | <?endif?>
|
---|
73 |
|
---|
74 | <!-- If we build a combined installer (32- and 64-bit in one installer), we
|
---|
75 | use two installer "disks": One for all platform-specific stuff and one which
|
---|
76 | contains all common (platform independent) stuff (like manuals, bitmaps etc) -->
|
---|
77 | <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
|
---|
78 | <?define Property_DiskIdCommon = "2" ?>
|
---|
79 | <?else?>
|
---|
80 | <?define Property_DiskIdCommon = "1" ?>
|
---|
81 | <?endif?>
|
---|
82 |
|
---|
83 | </Include>
|
---|