1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 | VirtualBox Windows Installation Script (WiX)
|
---|
4 |
|
---|
5 | Copyright (C) 2006-2012 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 | <?define Property_RegKey = "Software\$(env.VBOX_VENDOR_SHORT)\VirtualBox" ?>
|
---|
17 | <?define Property_RegKeyInstall = "Software\$(env.VBOX_VENDOR_SHORT)\VirtualBox\Install" ?>
|
---|
18 | <?define Property_Version = "$(env.VBOX_VERSION_STRING_RAW)" ?>
|
---|
19 | <?define Property_VersionExt = "$(env.VBOX_VERSION_STRING)" ?>
|
---|
20 | <?define Property_Upgrade = "yes" ?>
|
---|
21 |
|
---|
22 | <?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
|
---|
23 | <?define Property_ProgramFiles = "ProgramFiles64Folder" ?>
|
---|
24 | <?define Property_Platform = "x64" ?>
|
---|
25 | <?define Property_Win64 = "yes" ?>
|
---|
26 |
|
---|
27 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
28 | <?define Property_DriverLegacy = "no" ?>
|
---|
29 | <?else ?>
|
---|
30 | <?define Property_DriverLegacy = "yes" ?>
|
---|
31 | <?endif ?>
|
---|
32 |
|
---|
33 | <?else ?>
|
---|
34 | <?define Property_ProgramFiles = "ProgramFilesFolder" ?>
|
---|
35 | <?define Property_Platform = "x86" ?>
|
---|
36 | <?define Property_Win64 = "no" ?>
|
---|
37 |
|
---|
38 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
39 | <!-- Note: Settings this to 'no' breaks win2k installs (!) -->
|
---|
40 | <?define Property_DriverLegacy = "yes" ?>
|
---|
41 | <?else ?>
|
---|
42 | <?define Property_DriverLegacy = "yes" ?>
|
---|
43 | <?endif ?>
|
---|
44 |
|
---|
45 | <?endif ?>
|
---|
46 |
|
---|
47 | <!-- If we build a combined installer (32- and 64-bit in one installer), we
|
---|
48 | use two installer "disks": One for all platform-specific stuff and one which
|
---|
49 | contains all common (platform independent) stuff (like manuals, bitmaps etc). -->
|
---|
50 | <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
|
---|
51 | <?define Property_DiskIdCommon = "2" ?>
|
---|
52 | <?else ?>
|
---|
53 | <?define Property_DiskIdCommon = "1" ?>
|
---|
54 | <?endif ?>
|
---|
55 |
|
---|
56 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
---|
57 | xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
|
---|
58 |
|
---|
59 | <!-- Note: GUIDs in WiX *must* be uppercase! -->
|
---|
60 | <!-- Always include an upgrade ID or otherwise upgrade installation will not be possible. When doing
|
---|
61 | a major upgrade (more than just fixing a few files) change the product GUID. We always do a major
|
---|
62 | upgrade even for minor VBox updates. For that only change the product ID and the product version.
|
---|
63 | The upgrade code *never* must be changed! -->
|
---|
64 |
|
---|
65 | <!-- Update / Upgrade policies:
|
---|
66 | Update Type Package Code Product Version Product Code Upgrade Code
|
---|
67 | Small update change don't change don't change don't change
|
---|
68 | Minor update change change don't change don't change
|
---|
69 | Major upgrade change change change don't change -->
|
---|
70 |
|
---|
71 | <!-- Old product ID: <Product Id="B59FE77B-738F-4f1c-AB48-3104895AF676"
|
---|
72 | Old upgrade code of innotek: UpgradeCode="F5FFAEBF-97AE-4038-8F91-4DE719456127" -->
|
---|
73 |
|
---|
74 | <Product Id="*"
|
---|
75 | UpgradeCode="C4BAD770-BFE8-4D2C-A592-693028A7215B"
|
---|
76 | Name="$(env.VBOX_PRODUCT) $(env.VBOX_VERSION_STRING)"
|
---|
77 | Language="!(loc.LANG)"
|
---|
78 | Codepage="1252"
|
---|
79 | Version="$(var.Property_Version)"
|
---|
80 | Manufacturer="$(env.VBOX_VENDOR)">
|
---|
81 |
|
---|
82 | <Package Id="*" Keywords="Installer"
|
---|
83 | Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package"
|
---|
84 | Comments="$(env.VBOX_PRODUCT) installation package"
|
---|
85 | Manufacturer="$(env.VBOX_VENDOR)"
|
---|
86 | InstallerVersion="200"
|
---|
87 | Compressed="yes"
|
---|
88 | InstallPrivileges="elevated"
|
---|
89 | Platform="$(var.Property_Platform)"/>
|
---|
90 |
|
---|
91 | <!-- *************************** Upgrade packages only ******************************* -->
|
---|
92 | <!-- Minimum and Maximum specify the range of versions we are supposed to update with this upgrade.
|
---|
93 | IncludeMaximum and IncludeMinimum specify whether the bound value is actually included in the range or not
|
---|
94 | (IncludeMaximum = yes meaning to find versions below or equal to the version specified in Maximum while
|
---|
95 | IncludeMaximum = no only finds those below the Maximum).
|
---|
96 | OnlyDetect tells the installer not to remove the previous product. This is useful as long as we
|
---|
97 | only change files in the package. -->
|
---|
98 |
|
---|
99 | <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
|
---|
100 |
|
---|
101 | <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade. -->
|
---|
102 | <!--- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version. -->
|
---|
103 | <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" OnlyDetect="no" />
|
---|
104 |
|
---|
105 | <!-- Flag is set if the install will trigger an upgrade of an existing install -->
|
---|
106 | <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="yes" />
|
---|
107 |
|
---|
108 | </Upgrade>
|
---|
109 |
|
---|
110 | <!-- The product's icon table. -->
|
---|
111 | <Icon Id="IconVirtualBox" SourceFile="$(env.VBOX_WINDOWS_ICON_FILE)" />
|
---|
112 |
|
---|
113 | <!-- Global properties. -->
|
---|
114 | <Property Id="ARPPRODUCTICON">IconVirtualBox</Property>
|
---|
115 | <Property Id="ARPURLINFOABOUT">http://www.virtualbox.org</Property>
|
---|
116 | <Property Id="ARPURLUPDATEINFO">http://www.virtualbox.org</Property>
|
---|
117 | <Property Id="INSTALLDESKTOPSHORTCUT" Value="1"></Property>
|
---|
118 | <Property Id="INSTALLQUICKLAUNCHSHORTCUT" Value="1"></Property>
|
---|
119 | <Property Id="STARTVBOX" Value="1"></Property>
|
---|
120 |
|
---|
121 | <!-- Install the product for all users on the system -->
|
---|
122 | <Property Id="ALLUSERS"><![CDATA[1]]></Property>
|
---|
123 |
|
---|
124 | <!-- Make sure installation will not start on anything other but the NT family -->
|
---|
125 | <?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
|
---|
126 | <Condition Message="!(loc.Only64Bit)">
|
---|
127 | VersionNT64
|
---|
128 | </Condition>
|
---|
129 | <?else ?>
|
---|
130 | <Condition Message="!(loc.Only32Bit)">
|
---|
131 | NOT VersionNT64
|
---|
132 | </Condition>
|
---|
133 |
|
---|
134 | <Condition Message="!(loc.WrongOS)">
|
---|
135 | NOT VersionNT=500 AND NOT Version9X AND NOT VersionNT64
|
---|
136 | </Condition>
|
---|
137 |
|
---|
138 | <?endif ?>
|
---|
139 |
|
---|
140 | <Condition Message="!(loc.NeedAdmin)">
|
---|
141 | Privileged
|
---|
142 | </Condition>
|
---|
143 |
|
---|
144 | <!-- Force overwriting all files and re-create shortcuts to guarantee a working environment -->
|
---|
145 | <Property Id='REINSTALLMODE' Value='amus'/>
|
---|
146 |
|
---|
147 | <!-- Custom actions -->
|
---|
148 |
|
---|
149 | <!-- Figure out where a previous installation was, if any -->
|
---|
150 | <?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
|
---|
151 | <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
|
---|
152 |
|
---|
153 | <Property Id="EXISTINGINSTALLDIR" Secure="yes">
|
---|
154 | <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
155 | </Property>
|
---|
156 | <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
|
---|
157 | <?else ?>
|
---|
158 | <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
|
---|
159 |
|
---|
160 | <Property Id="EXISTINGINSTALLDIR" Secure="yes">
|
---|
161 | <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
162 | </Property>
|
---|
163 | <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
|
---|
164 | <?endif ?>
|
---|
165 |
|
---|
166 | <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
|
---|
167 | <CustomAction Id="ca_CheckSerial" BinaryKey="VBoxInstallHelper" DllEntry="CheckSerial" Impersonate="no"/>
|
---|
168 |
|
---|
169 | <CustomAction Id="ca_InstallPythonAPI" BinaryKey="VBoxInstallHelper" DllEntry="InstallPythonAPI" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
170 | <CustomAction Id="ca_InstallPythonAPIArgs" Property="ca_InstallPythonAPI" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
171 |
|
---|
172 | <CustomAction Id="ca_InstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="InstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
173 | <CustomAction Id="ca_InstallBrandingArgs" Property="ca_InstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
174 |
|
---|
175 | <CustomAction Id="ca_UninstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="UninstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
176 | <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
177 |
|
---|
178 | <CustomAction Id="ca_UninstallTAPInstances" BinaryKey="VBoxInstallHelper"
|
---|
179 | DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
180 |
|
---|
181 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
182 | <CustomAction Id="ca_CreateHostOnlyInterface" BinaryKey="VBoxInstallHelper" DllEntry="CreateHostOnlyInterface" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
183 | <CustomAction Id="ca_CreateHostOnlyInterfaceArgs" Property="ca_CreateHostOnlyInterface" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
184 |
|
---|
185 | <CustomAction Id="ca_RemoveHostOnlyInterfaces" BinaryKey="VBoxInstallHelper" DllEntry="RemoveHostOnlyInterfaces" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
186 | <CustomAction Id="ca_StopHostOnlyInterfaces" BinaryKey="VBoxInstallHelper" DllEntry="StopHostOnlyInterfaces" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
187 |
|
---|
188 | <CustomAction Id="ca_UpdateHostOnlyInterfaces" BinaryKey="VBoxInstallHelper" DllEntry="UpdateHostOnlyInterfaces" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
189 | <CustomAction Id="ca_UpdateHostOnlyInterfacesArgs" Property="ca_UpdateHostOnlyInterfaces" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
190 |
|
---|
191 | <CustomAction Id="ca_InstallNetFlt" BinaryKey="VBoxInstallHelper" DllEntry="InstallNetFlt" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
192 | <CustomAction Id="ca_InstallNetFltArgs" Property="ca_InstallNetFlt" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
193 |
|
---|
194 | <CustomAction Id="ca_RollbackInstallNetFlt" BinaryKey="VBoxInstallHelper" DllEntry="UninstallNetFlt" Execute="rollback" Impersonate="no"/>
|
---|
195 | <CustomAction Id="ca_RollbackInstallNetFltArgs" Property="ca_RollbackInstallNetFlt" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
196 |
|
---|
197 | <CustomAction Id="ca_UninstallNetFlt" BinaryKey="VBoxInstallHelper" DllEntry="UninstallNetFlt" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
198 | <CustomAction Id="ca_UninstallNetFltArgs" Property="ca_UninstallNetFlt" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
199 |
|
---|
200 | <CustomAction Id="ca_RollbackUninstallNetFlt" BinaryKey="VBoxInstallHelper" DllEntry="InstallNetFlt" Execute="rollback" Impersonate="no"/>
|
---|
201 | <CustomAction Id="ca_RollbackUninstallNetFltArgs" Property="ca_RollbackUninstallNetFlt" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
202 | <?endif ?>
|
---|
203 |
|
---|
204 | <CustomAction Id="ca_StartVBox" FileKey="file_VirtualBox.exe" ExeCommand="" Return="asyncNoWait" Impersonate="yes" />
|
---|
205 |
|
---|
206 | <!-- Detect old Sun installation -->
|
---|
207 | <!-- Force a manual uninstall of an already installed Sun VirtualBox version first -->
|
---|
208 | <!--<Property Id="VBOXSUN">
|
---|
209 | <RegistrySearch Id="RegSearchSunVersion" Root="HKLM" Key="SOFTWARE\Sun\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
210 | </Property>
|
---|
211 | <Condition Message="!(loc.SunFound)">
|
---|
212 | NOT VBOXSUN
|
---|
213 | </Condition>-->
|
---|
214 |
|
---|
215 | <!-- Detect old innotek installation -->
|
---|
216 | <!-- Force a manual uninstall of an already installed innotek VirtualBox version first -->
|
---|
217 | <Property Id="VBOXINNOTEK">
|
---|
218 | <RegistrySearch Id="RegSearchInnotekVersion" Root="HKLM" Key="SOFTWARE\Innotek\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
219 | </Property>
|
---|
220 | <Condition Message="!(loc.InnotekFound)">
|
---|
221 | NOT VBOXINNOTEK
|
---|
222 | </Condition>
|
---|
223 |
|
---|
224 | <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
|
---|
225 | <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
|
---|
226 | <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="high" />
|
---|
227 | <?endif ?>
|
---|
228 |
|
---|
229 | <!-- Here comes the file/directory list. -->
|
---|
230 | <Directory Id="TARGETDIR" Name="SourceDir">
|
---|
231 | <Directory Id="$(var.Property_ProgramFiles)" Name="PFiles">
|
---|
232 | <Directory Id="INSTALLDIR" Name="$(env.VBOX_PRODUCT)">
|
---|
233 |
|
---|
234 | <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
|
---|
235 | <Directory Id="dir_Documents" Name="doc">
|
---|
236 | <!-- The documentation is a separate component. This allows to split the install process
|
---|
237 | into pieces if ever necessary. Maintenance is easier, too. The following component
|
---|
238 | will be installed in the "doc" folder. -->
|
---|
239 | <Component Id="cp_Docs" Guid="40BD12C5-89A8-4B81-8A5E-5EEE2C2763C4">
|
---|
240 | <?include $(env.PATH_TARGET)\Files_Doc.wxi ?>
|
---|
241 | </Component>
|
---|
242 | </Directory>
|
---|
243 | <?endif ?>
|
---|
244 | <!-- Device driver directory -->
|
---|
245 | <Directory Id="dir_Drivers" Name="drivers">
|
---|
246 | <Directory Id="dir_VBoxDrv" Name="vboxdrv">
|
---|
247 | <Component Id="cp_VBoxDrv" Guid="D3E2F2BB-569F-46A2-836C-BDF30FF1EDF8" Win64="$(var.Property_Win64)">
|
---|
248 | <difxapp:Driver AddRemovePrograms="no" ForceInstall="yes"
|
---|
249 | Legacy="$(var.Property_DriverLegacy)" Sequence="2" PlugAndPlayPrompt="no"/>
|
---|
250 | <File Id="file_VBoxDrv.sys" Name="VBoxDrv.sys" KeyPath="yes"
|
---|
251 | Source="$(env.PATH_OUT)\bin\VBoxDrv.sys"/>
|
---|
252 | <File Id="file_VBoxDrv.inf" Name="VBoxDrv.inf"
|
---|
253 | Source="$(env.PATH_OUT)\bin\VBoxDrv.inf" />
|
---|
254 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
255 | <File Id="file_VBoxDrv.cat" Name="VBoxDrv.cat"
|
---|
256 | Source="$(env.PATH_OUT)\bin\VBoxDrv.cat" />
|
---|
257 | <?endif ?>
|
---|
258 | </Component>
|
---|
259 | </Directory>
|
---|
260 |
|
---|
261 | <Directory Id="dir_USB" Name="USB">
|
---|
262 | <Directory Id="dir_USBFilter" Name="filter">
|
---|
263 | <Component Id="cp_USBFilterDriver" Guid="B7D782D2-96DF-4775-A0E1-A76CF7B04B65" Win64="$(var.Property_Win64)">
|
---|
264 | <difxapp:Driver AddRemovePrograms="no" ForceInstall="yes"
|
---|
265 | Legacy="$(var.Property_DriverLegacy)" Sequence="0" PlugAndPlayPrompt="no"/>
|
---|
266 | <File Id="file_VBoxUSBMon.sys" Name="VBoxUSBMon.sys"
|
---|
267 | Source="$(env.PATH_OUT)\bin\VBoxUSBMon.sys" />
|
---|
268 | <File Id="file_VBoxUSBMon.inf" Name="VBoxUSBMon.inf"
|
---|
269 | Source="$(env.PATH_OUT)\bin\VBoxUSBMon.inf" />
|
---|
270 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
271 | <File Id="file_VBoxUSBMon.cat" Name="VBoxUSBMon.cat"
|
---|
272 | Source="$(env.PATH_OUT)\bin\VBoxUSBMon.cat" />
|
---|
273 | <?endif ?>
|
---|
274 | </Component>
|
---|
275 | </Directory>
|
---|
276 |
|
---|
277 | <Directory Id="dir_USBDevice" Name="device">
|
---|
278 | <Component Id="cp_USBDeviceDriver" Guid="010FE46A-E358-43E2-8BDC-38BC8BEC82E0" Win64="$(var.Property_Win64)">
|
---|
279 | <difxapp:Driver AddRemovePrograms="no" ForceInstall="yes"
|
---|
280 | Legacy="$(var.Property_DriverLegacy)" Sequence="0" PlugAndPlayPrompt="no"/>
|
---|
281 | <File Id="file_VBoxUSB.sys" Name="VBoxUSB.sys"
|
---|
282 | Source="$(env.PATH_OUT)\bin\VBoxUSB.sys" />
|
---|
283 | <File Id="file_VBoxUSB.inf" Name="VBoxUSB.inf"
|
---|
284 | Source="$(env.PATH_OUT)\bin\VBoxUSB.inf" />
|
---|
285 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
286 | <File Id="file_VBoxUSB.cat" Name="VBoxUSB.cat"
|
---|
287 | Source="$(env.PATH_OUT)\bin\VBoxUSB.cat" />
|
---|
288 | <?endif ?>
|
---|
289 | </Component>
|
---|
290 | </Directory>
|
---|
291 | </Directory>
|
---|
292 |
|
---|
293 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
294 | <Directory Id="dir_Network" Name="network">
|
---|
295 | <Directory Id="dir_NetFlt" Name="netflt">
|
---|
296 | <Component Id="cp_NetFltDriver" Guid="F0A02F6B-A349-42f8-A2EB-569DCAAAF846" Win64="$(var.Property_Win64)">
|
---|
297 | <File Id="file_VBoxNetFlt.sys" Name="VBoxNetFlt.sys" KeyPath="yes"
|
---|
298 | Source="$(env.PATH_OUT)\bin\VBoxNetFlt.sys" Checksum="yes"/>
|
---|
299 | <File Id="file_VBoxNetFltNobj.sys" Name="VBoxNetFltNobj.dll"
|
---|
300 | Source="$(env.PATH_OUT)\bin\VBoxNetFltNobj.dll" Checksum="yes"/>
|
---|
301 | <File Id="file_VBoxNetFltM.inf" Name="VBoxNetFltM.inf"
|
---|
302 | Source="$(env.PATH_OUT)\bin\VBoxNetFltM.inf" />
|
---|
303 | <File Id="file_VBoxNetFlt.inf" Name="VBoxNetFlt.inf"
|
---|
304 | Source="$(env.PATH_OUT)\bin\VBoxNetFlt.inf" />
|
---|
305 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
306 | <File Id="file_VBoxNetFlt.cat" Name="VBoxNetFlt.cat"
|
---|
307 | Source="$(env.PATH_OUT)\bin\VBoxNetFlt.cat" />
|
---|
308 | <?endif ?>
|
---|
309 | </Component>
|
---|
310 | </Directory>
|
---|
311 |
|
---|
312 | <Directory Id="dir_NetAdp" Name="netadp">
|
---|
313 | <Component Id="cp_NetAdpDriver" Guid="7adf3e12-af3c-4d36-8bec-36d5064cf84f" Win64="$(var.Property_Win64)">
|
---|
314 | <File Id="file_VBoxNetAdp.sys" Name="VBoxNetAdp.sys" KeyPath="yes"
|
---|
315 | Source="$(env.PATH_OUT)\bin\VBoxNetAdp.sys" Checksum="yes"/>
|
---|
316 | <File Id="file_VBoxNetAdp.inf" Name="VBoxNetAdp.inf"
|
---|
317 | Source="$(env.PATH_OUT)\bin\VBoxNetAdp.inf" />
|
---|
318 | <?if $(env.VBOX_SIGNING_MODE) != none ?>
|
---|
319 | <File Id="file_VBoxNetAdp.cat" Name="VBoxNetAdp.cat"
|
---|
320 | Source="$(env.PATH_OUT)\bin\VBoxNetAdp.cat" />
|
---|
321 | <?endif ?>
|
---|
322 | </Component>
|
---|
323 | </Directory>
|
---|
324 | </Directory>
|
---|
325 | <?endif ?>
|
---|
326 | </Directory> <!-- Directory "drivers" -->
|
---|
327 |
|
---|
328 |
|
---|
329 | <!-- National Language Support directory -->
|
---|
330 | <Directory Id="dir_NLS" Name="nls">
|
---|
331 | <Component Id="cp_NLS" Guid="D63517D7-1CF3-4D06-B3EE-C561E323069B" Win64="$(var.Property_Win64)">
|
---|
332 | <!-- Include the autogenerated NLS file list -->
|
---|
333 | <?include $(env.PATH_TARGET)\VBoxGuiNLS.wxi ?>
|
---|
334 | </Component>
|
---|
335 | </Directory>
|
---|
336 |
|
---|
337 | <!-- COM components have a separate entry mainly because of the KeyPath attribute (that hints the
|
---|
338 | TypeLib element where to take the TLB resource from) may appear only once per Component. -->
|
---|
339 | <Component Id="cp_MainCOM" Guid="CD4A3C6C-C2D5-428D-90A1-B6DA3D0777D6" Win64="$(var.Property_Win64)">
|
---|
340 |
|
---|
341 | <!-- File ID *must not* be changed because of our typelib template generation file! -->
|
---|
342 | <File Id="VBoxSVC" Name="VBoxSVC.exe"
|
---|
343 | Source="$(env.PATH_OUT)\bin\VBoxSVC.exe">
|
---|
344 | </File>
|
---|
345 |
|
---|
346 | <!-- We set KeyPath on this file to instruct TypeLib to read the TLB resource from it
|
---|
347 | and create appropriate Interface registry entries. Note that the same TLB is present
|
---|
348 | in VBoxSVC.exe - it's just a matter of choice which one to use -->
|
---|
349 | <!-- File ID *must not* be changed because of our typelib template generation file! -->
|
---|
350 | <File Id="VBoxC" Name="VBoxC.dll"
|
---|
351 | Source="$(env.PATH_OUT)\bin\VBoxC.dll" KeyPath="yes">
|
---|
352 | </File>
|
---|
353 |
|
---|
354 | <!-- Include the autogenerated TypeLib block -->
|
---|
355 | <?include $(env.PATH_TARGET)\VirtualBox_TypeLib.wxi ?>
|
---|
356 |
|
---|
357 | </Component>
|
---|
358 |
|
---|
359 | <!--
|
---|
360 |
|
---|
361 | <Component Id="Cp_StartMenuShortcut" Guid="1C137D24-E599-47BD-98D0-2F62F202A8EA" Win64="$(var.Property_Win64)">
|
---|
362 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
|
---|
363 | Value="installed" KeyPath="yes" />
|
---|
364 | <Shortcut Id="ShortcutStartMenuVBox" Directory="ProgramMenuDir"
|
---|
365 | Name="VirtualBox" WorkingDirectory="INSTALLDIR" Advertise="no" Target="VirtualBox.exe" />
|
---|
366 | <RemoveFolder Id="ShortcutStartMenuVBoxRemove" On="uninstall" />
|
---|
367 | </Component>-->
|
---|
368 |
|
---|
369 | <!---->
|
---|
370 |
|
---|
371 | <!-- All Binaries, DLLs (except COM) and drivers are in one component because they belong together. Additional
|
---|
372 | binaries e.g. test tools, utilities etc. should be in another component so they"re clearly separated. -->
|
---|
373 | <Component Id="cp_MainBinaries" Guid="5C8FE57A-F744-4DE0-AA3F-A563F486AD98" Win64="$(var.Property_Win64)">
|
---|
374 |
|
---|
375 | <!-- Set required environment variables. -->
|
---|
376 | <Environment Id="env_VBoxInstallDir" Action="set" Name="VBOX_INSTALL_PATH"
|
---|
377 | System="yes" Part="last" Permanent="no" Value="[INSTALLDIR]" />
|
---|
378 |
|
---|
379 | <!-- Register file extensions. Note: Extension Id's *must not* be changed! These specify the actual
|
---|
380 | file extension to handle. Also, here would be the place to add more fancy DDE stuff later.
|
---|
381 | Important: The IDs in "IconIndex" *must* be matching "Resources\resource.h". -->
|
---|
382 | <ProgId Id="progId_VirtualBox.Shell.vbox" Description="VirtualBox Machine Definition" Icon="file_VBoxRes.dll" IconIndex="-201">
|
---|
383 | <Extension Id="vbox" ContentType="application/x-virtualbox-vbox">
|
---|
384 | <Verb Id="open" Command="Open" TargetFile="file_VirtualBox.exe" Argument=""%1"" />
|
---|
385 | </Extension>
|
---|
386 | </ProgId>
|
---|
387 | <ProgId Id="progId_VirtualBox.Shell.vbox-extpack" Description="VirtualBox Extension Pack" Icon="file_VBoxRes.dll" IconIndex="-202">
|
---|
388 | <Extension Id="vbox-extpack" ContentType="application/x-virtualbox-vbox-extpack">
|
---|
389 | <Verb Id="open" Command="Open" TargetFile="file_VirtualBox.exe" Argument=""%1"" />
|
---|
390 | </Extension>
|
---|
391 | </ProgId>
|
---|
392 | <ProgId Id="progId_VirtualBox.Shell.ovf" Description="Open Virtualization Format" Icon="file_VBoxRes.dll" IconIndex="-301">
|
---|
393 | <Extension Id="ovf" ContentType="application/x-virtualbox-ovf">
|
---|
394 | <Verb Id="open" Command="Open" TargetFile="file_VirtualBox.exe" Argument=""%1"" />
|
---|
395 | </Extension>
|
---|
396 | </ProgId>
|
---|
397 | <ProgId Id="progId_VirtualBox.Shell.ova" Description="Open Virtualization Format Archive" Icon="file_VBoxRes.dll" IconIndex="-302">
|
---|
398 | <Extension Id="ova" ContentType="application/x-virtualbox-ova">
|
---|
399 | <Verb Id="open" Command="Open" TargetFile="file_VirtualBox.exe" Argument=""%1"" />
|
---|
400 | </Extension>
|
---|
401 | </ProgId>
|
---|
402 | <ProgId Id="progId_VirtualBox.Shell.vdi" Description="Virtual Disk Image" Icon="file_VBoxRes.dll" IconIndex="-303">
|
---|
403 | <Extension Id="vdi" ContentType="application/x-virtualbox-vdi" />
|
---|
404 | </ProgId>
|
---|
405 | <ProgId Id="progId_VirtualBox.Shell.vmdk" Description="Virtual Machine Disk Format" Icon="file_VBoxRes.dll" IconIndex="-304">
|
---|
406 | <Extension Id="vmdk" ContentType="application/x-virtualbox-vmdk" />
|
---|
407 | </ProgId>
|
---|
408 | <ProgId Id="progId_VirtualBox.Shell.vhd" Description="Virtual Hard Disk" Icon="file_VBoxRes.dll" IconIndex="-305">
|
---|
409 | <Extension Id="vhd" ContentType="application/x-virtualbox-vhd" />
|
---|
410 | </ProgId>
|
---|
411 | <ProgId Id="progId_VirtualBox.Shell.hdd" Description="Virtual Hard Disk" Icon="file_VBoxRes.dll" IconIndex="-306">
|
---|
412 | <Extension Id="hdd" ContentType="application/x-virtualbox-hdd" />
|
---|
413 | </ProgId>
|
---|
414 |
|
---|
415 | <!-- Files -->
|
---|
416 | <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
|
---|
417 | <!-- Include all user manual .CHM files (file is generated by makefile). -->
|
---|
418 | <?include $(env.PATH_TARGET)\Files_Main.wxi ?>
|
---|
419 | <?endif ?>
|
---|
420 | <!-- Include all license files (file is generated by makefile). -->
|
---|
421 | <?include $(env.PATH_TARGET)\Files_License.wxi ?>
|
---|
422 |
|
---|
423 | <!-- Frontends -->
|
---|
424 | <File Id="file_VBoxManage.exe" Name="VBoxManage.exe"
|
---|
425 | Source="$(env.PATH_OUT)\bin\VBoxManage.exe" />
|
---|
426 | <File Id="file_VBoxHeadless.exe" Name="VBoxHeadless.exe"
|
---|
427 | Source="$(env.PATH_OUT)\bin\VBoxHeadless.exe">
|
---|
428 | <!-- Create a simple shortcut for VBoxVRDP, which is not present anymore, pointing to VBoxHeadless.exe -->
|
---|
429 | <!-- <Shortcut Id="ShortcutVBoxVRDP" Directory="INSTALLDIR" Name="VBoxVRDP" Show="normal" WorkingDirectory="INSTALLDIR"/> -->
|
---|
430 | </File>
|
---|
431 | <File Id="file_VBoxBalloonCtrl.exe" Name="VBoxBalloonCtrl.exe"
|
---|
432 | Source="$(env.PATH_OUT)\bin\VBoxBalloonCtrl.exe"/>
|
---|
433 |
|
---|
434 | <!-- Misc tools -->
|
---|
435 | <File Id="file_VBoxNetDHCP.exe" Name="VBoxNetDHCP.exe"
|
---|
436 | Source="$(env.PATH_OUT)\bin\VBoxNetDHCP.exe"/>
|
---|
437 | <?if $(env.VBOX_WITH_EXTPACK) = "yes" ?>
|
---|
438 | <File Id="file_VBoxExtPackHelperApp.exe" Name="VBoxExtPackHelperApp.exe"
|
---|
439 | Source="$(env.PATH_OUT)\bin\VBoxExtPackHelperApp.exe"/>
|
---|
440 | <?endif ?>
|
---|
441 | <!-- VBox DLL files -->
|
---|
442 | <File Id="file_VBoxDD.dll" Name="VBoxDD.dll"
|
---|
443 | Source="$(env.PATH_OUT)\bin\VBoxDD.dll" />
|
---|
444 | <File Id="file_VBoxDD2.dll" Name="VBoxDD2.dll"
|
---|
445 | Source="$(env.PATH_OUT)\bin\VBoxDD2.dll" />
|
---|
446 | <File Id="file_VBoxDDU.dll" Name="VBoxDDU.dll"
|
---|
447 | Source="$(env.PATH_OUT)\bin\VBoxDDU.dll" />
|
---|
448 | <File Id="file_VBoxRT.dll" Name="VBoxRT.dll"
|
---|
449 | Source="$(env.PATH_OUT)\bin\VBoxRT.dll" />
|
---|
450 | <File Id="file_VBoxREM.dll" Name="VBoxREM.dll"
|
---|
451 | Source="$(env.PATH_OUT)\bin\VBoxREM.dll" />
|
---|
452 | <?if $(env.BUILD_TARGET_ARCH) = "x86" ?>
|
---|
453 | <File Id="file_VBoxREM32.dll" Name="VBoxREM32.dll"
|
---|
454 | Source="$(env.PATH_OUT)\bin\VBoxREM32.dll" />
|
---|
455 | <File Id="file_VBoxREM64.dll" Name="VBoxREM64.dll"
|
---|
456 | Source="$(env.PATH_OUT)\bin\VBoxREM64.dll" />
|
---|
457 | <?endif ?>
|
---|
458 | <File Id="file_VBoxVMM.dll" Name="VBoxVMM.dll"
|
---|
459 | Source="$(env.PATH_OUT)\bin\VBoxVMM.dll" />
|
---|
460 | <?if $(env.VBOX_WITH_VRDP) = "yes" ?>
|
---|
461 | <File Id="file_VBoxVRDP.dll" Name="VBoxVRDP.dll"
|
---|
462 | Source="$(env.PATH_OUT)\bin\VBoxVRDP.dll" />
|
---|
463 | <?endif ?>
|
---|
464 | <File Id="file_VBoxSharedFolders.dll" Name="VBoxSharedFolders.dll"
|
---|
465 | Source="$(env.PATH_OUT)\bin\VBoxSharedFolders.dll" />
|
---|
466 | <File Id="file_VBoxSharedClipboard.dll" Name="VBoxSharedClipboard.dll"
|
---|
467 | Source="$(env.PATH_OUT)\bin\VBoxSharedClipboard.dll" />
|
---|
468 | <?if $(env.VBOX_WITH_DRAG_AND_DROP)= "yes" ?>
|
---|
469 | <File Id="file_VBoxDragAndDropSvc.dll" Name="VBoxDragAndDropSvc.dll"
|
---|
470 | Source="$(env.PATH_OUT)\bin\VBoxDragAndDropSvc.dll" />
|
---|
471 | <?endif ?>
|
---|
472 | <?if $(env.VBOX_WITH_GUEST_PROPS) = "yes" ?>
|
---|
473 | <File Id="file_VBoxGuestPropSvc.dll" Name="VBoxGuestPropSvc.dll"
|
---|
474 | Source="$(env.PATH_OUT)\bin\VBoxGuestPropSvc.dll" />
|
---|
475 | <?endif ?>
|
---|
476 | <?if $(env.VBOX_WITH_GUEST_CONTROL) = "yes" ?>
|
---|
477 | <File Id="file_VBoxGuestControlSvc.dll" Name="VBoxGuestControlSvc.dll"
|
---|
478 | Source="$(env.PATH_OUT)\bin\VBoxGuestControlSvc.dll" />
|
---|
479 | <?endif ?>
|
---|
480 | <File Id="file_VBoxHostChannel.dll" Name="VBoxHostChannel.dll"
|
---|
481 | Source="$(env.PATH_OUT)\bin\VBoxHostChannel.dll" />
|
---|
482 | <File Id="file_VBoxAuth.dll" Name="VBoxAuth.dll"
|
---|
483 | Source="$(env.PATH_OUT)\bin\VBoxAuth.dll" />
|
---|
484 | <File Id="file_VBoxAuthSimple.dll" Name="VBoxAuthSimple.dll"
|
---|
485 | Source="$(env.PATH_OUT)\bin\VBoxAuthSimple.dll" />
|
---|
486 |
|
---|
487 | <!-- Include resource DLL (icons, ...). -->
|
---|
488 | <File Id="file_VBoxRes.dll" Name="VBoxRes.dll" DiskId="$(var.Property_DiskIdCommon)"
|
---|
489 | Source="$(env.PATH_OUT)\bin\VBoxRes.dll" />
|
---|
490 |
|
---|
491 | <File Id="file_VMMGC.gc" Name="VMMGC.gc"
|
---|
492 | Source="$(env.PATH_OUT)\bin\VMMGC.gc" />
|
---|
493 | <File Id="file_VBoxDDGC.gc" Name="VBoxDDGC.gc"
|
---|
494 | Source="$(env.PATH_OUT)\bin\VBoxDDGC.gc" />
|
---|
495 | <File Id="file_VBoxDD2GC.gc" Name="VBoxDD2GC.gc"
|
---|
496 | Source="$(env.PATH_OUT)\bin\VBoxDD2GC.gc" />
|
---|
497 |
|
---|
498 | <File Id="file_VMMR0.r0" Name="VMMR0.r0"
|
---|
499 | Source="$(env.PATH_OUT)\bin\VMMR0.r0" />
|
---|
500 | <File Id="file_VBoxDDR0.r0" Name="VBoxDDR0.r0"
|
---|
501 | Source="$(env.PATH_OUT)\bin\VBoxDDR0.r0" />
|
---|
502 | <File Id="file_VBoxDD2R0.r0" Name="VBoxDD2R0.r0"
|
---|
503 | Source="$(env.PATH_OUT)\bin\VBoxDD2R0.r0" />
|
---|
504 |
|
---|
505 | <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
|
---|
506 | <File Id="file_VBoxTestOGL.exe" Name="VBoxTestOGL.exe"
|
---|
507 | Source="$(env.PATH_OUT)\bin\VBoxTestOGL.exe" />
|
---|
508 | <?endif ?>
|
---|
509 | <!-- Qt frontend -->
|
---|
510 | <File Id="file_VirtualBox.exe" Name="VirtualBox.exe"
|
---|
511 | Source="$(env.PATH_OUT)\bin\VirtualBox.exe">
|
---|
512 | </File>
|
---|
513 | <File Id="file_QtCoreVBox4.dll" Name="QtCoreVBox4.dll"
|
---|
514 | Source="$(env.PATH_OUT)\bin\QtCoreVBox4.dll" />
|
---|
515 | <File Id="file_QtGuiVBox4.dll" Name="QtGuiVBox4.dll"
|
---|
516 | Source="$(env.PATH_OUT)\bin\QtGuiVBox4.dll" />
|
---|
517 | <File Id="file_QtNetworkVBox4.dll" Name="QtNetworkVBox4.dll"
|
---|
518 | Source="$(env.PATH_OUT)\bin\QtNetworkVBox4.dll" />
|
---|
519 | <?if $(env.VBOX_WITH_DEBUGGER_GUI) = "yes" ?>
|
---|
520 | <File Id="file_VBoxDbg.dll" Name="VBoxDbg.dll"
|
---|
521 | Source="$(env.PATH_OUT)\bin\VBoxDbg.dll" />
|
---|
522 | <?endif ?>
|
---|
523 | <?if $(env.VBOX_GUI_USE_QGL) = "yes" ?>
|
---|
524 | <File Id="file_QtOpenGLVBox4.dll" Name="QtOpenGLVBox4.dll"
|
---|
525 | Source="$(env.PATH_OUT)\bin\QtOpenGLVBox4.dll" />
|
---|
526 | <?endif?>
|
---|
527 |
|
---|
528 | <?if $(env.VBOX_VCC_TOOL_STEM) = "VCC100" ?>
|
---|
529 | <!-- MS C/C++ v10.0 Runtime DLL files. -->
|
---|
530 | <File Id="file_msvcr100.dll" Name="msvcr100.dll"
|
---|
531 | Source="$(env.PATH_OUT)\bin\msvcr100.dll" />
|
---|
532 | <File Id="file_msvcp100.dll" Name="msvcp100.dll"
|
---|
533 | Source="$(env.PATH_OUT)\bin\msvcp100.dll" />
|
---|
534 | <?endif?>
|
---|
535 | <?if $(env.VBOX_VCC_TOOL_STEM) = "VCC110" ?>
|
---|
536 | <!-- MS C/C++ v11.0 Runtime DLL files. -->
|
---|
537 | <File Id="file_msvcr110.dll" Name="msvcr110.dll"
|
---|
538 | Source="$(env.PATH_OUT)\bin\msvcr110.dll" />
|
---|
539 | <File Id="file_msvcp110.dll" Name="msvcp110.dll"
|
---|
540 | Source="$(env.PATH_OUT)\bin\msvcp110.dll" />
|
---|
541 | <?endif?>
|
---|
542 |
|
---|
543 | <!-- EFI firmware -->
|
---|
544 | <?if $(env.VBOX_WITH_EFIFW_PACKING) = "yes" ?>
|
---|
545 | <File Id="file_VBoxEFI32.fd" Name="VBoxEFI32.fd" DiskId="$(var.Property_DiskIdCommon)"
|
---|
546 | Source="$(env.PATH_OUT)\bin\VBoxEFI32.fd" />
|
---|
547 | <File Id="file_VBoxEFI64.fd" Name="VBoxEFI64.fd" DiskId="$(var.Property_DiskIdCommon)"
|
---|
548 | Source="$(env.PATH_OUT)\bin\VBoxEFI64.fd" />
|
---|
549 | <?endif?>
|
---|
550 | <!-- VBox guest additions -->
|
---|
551 | <?if $(env.VBOX_WITH_ADDITIONS_PACKING) = "yes" ?>
|
---|
552 | <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
|
---|
553 | <File Id="file_VBoxGuestAdditions.iso" Name="VBoxGuestAdditions.iso" DiskId="$(var.Property_DiskIdCommon)"
|
---|
554 | Source="$(env.PATH_MULTIARCH_GUEST_ADDITIONS_ISO)\VBoxGuestAdditions.iso" />
|
---|
555 | <?else ?>
|
---|
556 | <File Id="file_VBoxGuestAdditions.iso" Name="VBoxGuestAdditions.iso"
|
---|
557 | Source="$(env.PATH_OUT)\bin\additions\VBoxGuestAdditions.iso" />
|
---|
558 | <?endif ?>
|
---|
559 | <?endif ?>
|
---|
560 | <!-- Include key for VBox version -->
|
---|
561 | <?include $(env.PATH_TARGET)\VBoxKey.wxi ?>
|
---|
562 |
|
---|
563 | </Component> <!-- MainBinaries -->
|
---|
564 |
|
---|
565 | <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
|
---|
566 | <!-- Qt accessible plugins -->
|
---|
567 | <Directory Id="dir_Accessible" Name="accessible">
|
---|
568 | <Component Id="cp_QtAccessible" Guid="12040EF9-D4A8-4FB2-A69C-CA2F5C354A45" Win64="$(var.Property_Win64)">
|
---|
569 | <File Id="file_qtaccessiblewidgets4.dll" Name="qtaccessiblewidgets4.dll"
|
---|
570 | Source="$(env.PATH_OUT)\bin\accessible\qtaccessiblewidgets4.dll" />
|
---|
571 | </Component>
|
---|
572 | </Directory>
|
---|
573 | <?endif?>
|
---|
574 |
|
---|
575 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
576 | <!-- Python bindings -->
|
---|
577 | <Directory Id="dir_SDK" Name="sdk">
|
---|
578 | <Directory Id="dir_SDKInstall" Name="install">
|
---|
579 | <Component Id="cp_VBoxPyInst" Guid="C9A40306-5102-11DE-A7BA-C3C555D89593" Win64="$(var.Property_Win64)">
|
---|
580 | <File Id="file_vboxapisetup.py" Name="vboxapisetup.py" DiskId="$(var.Property_DiskIdCommon)"
|
---|
581 | Source="$(env.PATH_OUT)\bin\sdk\installer\vboxapisetup.py" />
|
---|
582 | </Component>
|
---|
583 | <Directory Id="dir_SDKVBoxAPI" Name="vboxapi">
|
---|
584 | <Component Id="cp_VBoxPyMod" Guid="DF19CB76-5102-11DE-943B-13C755D89593" Win64="$(var.Property_Win64)">
|
---|
585 | <File Id="file___init__.py" Name="__init__.py" DiskId="$(var.Property_DiskIdCommon)"
|
---|
586 | Source="$(env.PATH_OUT)\bin\sdk\installer\vboxapi\__init__.py" />
|
---|
587 | <File Id="file_VirtualBox_constants.py" Name="VirtualBox_constants.py" DiskId="$(var.Property_DiskIdCommon)"
|
---|
588 | Source="$(env.PATH_OUT)\bin\sdk\installer\vboxapi\VirtualBox_constants.py" />
|
---|
589 | </Component>
|
---|
590 | </Directory>
|
---|
591 | </Directory>
|
---|
592 | </Directory>
|
---|
593 | <?endif?>
|
---|
594 |
|
---|
595 | <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
|
---|
596 | <Component Id="cp_VBoxCROpenGL" Guid="874A1297-835A-491D-8A9D-7E723BC29EE7" Win64="$(var.Property_Win64)">
|
---|
597 | <File Id="file_VBoxOGLhostcrutil.dll" Name="VBoxOGLhostcrutil.dll"
|
---|
598 | Source="$(env.PATH_OUT)\bin\VBoxOGLhostcrutil.dll" />
|
---|
599 | <File Id="file_VBoxOGLhosterrorspu.dll" Name="VBoxOGLhosterrorspu.dll"
|
---|
600 | Source="$(env.PATH_OUT)\bin\VBoxOGLhosterrorspu.dll" />
|
---|
601 | <File Id="file_VBoxOGLrenderspu.dll" Name="VBoxOGLrenderspu.dll"
|
---|
602 | Source="$(env.PATH_OUT)\bin\VBoxOGLrenderspu.dll" />
|
---|
603 | <File Id="file_VBoxSharedCrOpenGL.dll" Name="VBoxSharedCrOpenGL.dll"
|
---|
604 | Source="$(env.PATH_OUT)\bin\VBoxSharedCrOpenGL.dll" />
|
---|
605 | </Component>
|
---|
606 | <?endif?>
|
---|
607 | <!-- SDL plugins -->
|
---|
608 | <Component Id="cp_VBoxSDLBinaries" Guid="F09D5FD9-E176-42B0-90A9-481BB18B0CB4" Win64="$(var.Property_Win64)">
|
---|
609 | <File Id="file_VBoxSDL.exe" Name="VBoxSDL.exe"
|
---|
610 | Source="$(env.PATH_OUT)\bin\VBoxSDL.exe" />
|
---|
611 | <File Id="file_SDL.dll" Name="SDL.dll"
|
---|
612 | Source="$(env.PATH_OUT)\bin\SDL.dll" />
|
---|
613 | <?if $(env.VBOX_WITH_SECURELABEL) = "yes" ?>
|
---|
614 | <File Id="file_SDL_ttf.dll" Name="SDL_ttf.dll"
|
---|
615 | Source="$(env.PATH_OUT)\bin\SDL_ttf.dll" />
|
---|
616 | <?endif?>
|
---|
617 | </Component> <!-- SDL plugins -->
|
---|
618 |
|
---|
619 | <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
|
---|
620 | <!-- Webservice -->
|
---|
621 | <Component Id="cp_VBoxWebService" Guid="DD404F04-9874-43E9-AEE2-7762924D922E">
|
---|
622 | <File Id="file_VBoxWebSrv.exe" Name="VBoxWebSrv.exe"
|
---|
623 | Source="$(env.PATH_OUT)\bin\vboxwebsrv.exe" />
|
---|
624 | </Component>
|
---|
625 | <?endif?>
|
---|
626 |
|
---|
627 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
628 | <Component Id="cp_VBoxPythonBinding" Guid="293D7E11-78DA-4C31-AEED-AE2FE42F6881">
|
---|
629 | <Condition>PYTHON_INSTALLED</Condition>
|
---|
630 | </Component>
|
---|
631 | <?endif?>
|
---|
632 | </Directory> <!-- Installation directory -->
|
---|
633 | </Directory> <!-- Windows program files directory -->
|
---|
634 |
|
---|
635 | <!-- Set up special directory IDs for referencing to the start menu
|
---|
636 | or the Quick Launch bar.
|
---|
637 | See: http://msdn.microsoft.com/en-us/library/aa368276.aspx
|
---|
638 | http://wix.mindcapers.com/wiki/Shortcuts_in_WiX -->
|
---|
639 | <Directory Id="ProgramMenuFolder">
|
---|
640 | <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)"/>
|
---|
641 | </Directory>
|
---|
642 |
|
---|
643 | <Directory Id="DesktopFolder" Name="Desktop"/>
|
---|
644 |
|
---|
645 | <Directory Id="AppDataFolder" Name="AppData">
|
---|
646 | <Directory Id="dir_AppDataMicrosoft" Name="Microsoft">
|
---|
647 | <Directory Id="dir_AppDataMSIE" Name="Internet Explorer">
|
---|
648 | <Directory Id="dir_QuicklaunchFolder" Name="Quick Launch"/>
|
---|
649 | </Directory>
|
---|
650 | </Directory>
|
---|
651 | </Directory>
|
---|
652 |
|
---|
653 | <!-- Shortcut(s) in start menu -->
|
---|
654 | <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
|
---|
655 | <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
|
---|
656 | Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
|
---|
657 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
|
---|
658 | Type="string" Value="installed" KeyPath="yes" />
|
---|
659 | <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
|
---|
660 | </Component>
|
---|
661 |
|
---|
662 | <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
|
---|
663 | <Condition>INSTALLDESKTOPSHORTCUT</Condition>
|
---|
664 | <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
|
---|
665 | Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
|
---|
666 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
|
---|
667 | Value="installed" KeyPath="yes" />
|
---|
668 | </Component>
|
---|
669 |
|
---|
670 | <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
|
---|
671 | <CreateFolder/>
|
---|
672 | <Condition>INSTALLQUICKLAUNCHSHORTCUT</Condition>
|
---|
673 | <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
|
---|
674 | Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
|
---|
675 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
|
---|
676 | Type="string" Value="installed" KeyPath="yes" />
|
---|
677 | </Component>
|
---|
678 | </Directory> <!-- TARGETDIR -->
|
---|
679 |
|
---|
680 | <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
|
---|
681 | otherwise this will break manual selection using the ADDLOCAL= syntax
|
---|
682 | when using the command line / scripts (see VBox manual). -->
|
---|
683 | <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1"
|
---|
684 | Description="!(loc.VB_App)"
|
---|
685 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
686 | Absent="disallow" AllowAdvertise="no" >
|
---|
687 |
|
---|
688 | <ComponentRef Id="cp_StartMenuVBox" />
|
---|
689 | <ComponentRef Id="cp_DesktopShortcut" />
|
---|
690 | <ComponentRef Id="cp_QuickLaunchVBox" />
|
---|
691 |
|
---|
692 | <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
|
---|
693 | <ComponentRef Id="cp_Docs" />
|
---|
694 | <?endif?>
|
---|
695 | <ComponentRef Id="cp_NLS" />
|
---|
696 | <ComponentRef Id="cp_MainCOM" />
|
---|
697 | <ComponentRef Id="cp_MainBinaries" />
|
---|
698 | <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
|
---|
699 | <ComponentRef Id="cp_QtAccessible" />
|
---|
700 | <?endif?>
|
---|
701 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
702 | <ComponentRef Id="cp_VBoxPyInst" />
|
---|
703 | <ComponentRef Id="cp_VBoxPyMod" />
|
---|
704 | <?endif?>
|
---|
705 |
|
---|
706 | <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
|
---|
707 | <ComponentRef Id="cp_VBoxCROpenGL" />
|
---|
708 | <?endif?>
|
---|
709 | <ComponentRef Id="cp_VBoxSDLBinaries" />
|
---|
710 | <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
|
---|
711 | <ComponentRef Id="cp_VBoxWebService" />
|
---|
712 | <?endif?>
|
---|
713 | <ComponentRef Id="cp_VBoxDrv" />
|
---|
714 |
|
---|
715 | <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
|
---|
716 | Description="!(loc.VB_USBDriver)"
|
---|
717 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
718 | Absent="allow" AllowAdvertise="no" >
|
---|
719 | <ComponentRef Id="cp_USBFilterDriver" />
|
---|
720 | <ComponentRef Id="cp_USBDeviceDriver" />
|
---|
721 | </Feature>
|
---|
722 |
|
---|
723 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
724 | <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1"
|
---|
725 | Description="!(loc.VB_Network)"
|
---|
726 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
727 | Absent="allow" AllowAdvertise="no" >
|
---|
728 | <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1"
|
---|
729 | Description="!(loc.VB_NetFltDriver)"
|
---|
730 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
731 | Absent="allow" AllowAdvertise="no" >
|
---|
732 | <ComponentRef Id="cp_NetFltDriver" />
|
---|
733 | </Feature>
|
---|
734 | <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1"
|
---|
735 | Description="!(loc.VB_NetAdpDriver)"
|
---|
736 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
737 | Absent="allow" AllowAdvertise="no" >
|
---|
738 | <ComponentRef Id="cp_NetAdpDriver" />
|
---|
739 | </Feature>
|
---|
740 | </Feature>
|
---|
741 | <?endif?>
|
---|
742 |
|
---|
743 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
744 | <Feature Id="VBoxPython" Title="VirtualBox Python 2.x Support" Level="1"
|
---|
745 | Description="!(loc.VB_Python)"
|
---|
746 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
747 | Absent="allow" AllowAdvertise="no" >
|
---|
748 | <ComponentRef Id="cp_VBoxPythonBinding" />
|
---|
749 | </Feature>
|
---|
750 | <?endif?>
|
---|
751 |
|
---|
752 | </Feature>
|
---|
753 |
|
---|
754 | <!-- Include user interface definition. -->
|
---|
755 | <?include UserInterface.wxi ?>
|
---|
756 |
|
---|
757 | <InstallExecuteSequence>
|
---|
758 |
|
---|
759 | <!--
|
---|
760 | To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
|
---|
761 |
|
---|
762 | InstallUISequence (client side) is:
|
---|
763 | AppSearch
|
---|
764 | LaunchConditions
|
---|
765 | ValidateProductID
|
---|
766 | CostInitialize
|
---|
767 | FileCost
|
---|
768 | CostFinalize
|
---|
769 | ExecuteAction -> will pass control over to "InstallExecuteSequence"
|
---|
770 |
|
---|
771 | The first six actions above will be repeated but skipped on the server
|
---|
772 | side if already run on the client side.
|
---|
773 |
|
---|
774 | InstallExecuteSequence (server side) is:
|
---|
775 | <First six action from InstallUISequence>
|
---|
776 | .
|
---|
777 | InstallInitialize
|
---|
778 | .
|
---|
779 | InstallFinalize
|
---|
780 |
|
---|
781 | The actions between InstallInitialize and InstallFinalize will be gone through twice:
|
---|
782 | - The first time the installer creates an installation script containing all actions in the right
|
---|
783 | sequence which need to get executed in a batch later. At this point the launch conditions for
|
---|
784 | custom actions must be met already!
|
---|
785 | - The second time the generated installation script will be run as-is.
|
---|
786 |
|
---|
787 | Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
|
---|
788 | need public properties (that is, UPPERCASE properties).
|
---|
789 | -->
|
---|
790 |
|
---|
791 | <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts". -->
|
---|
792 | <AppSearch Sequence="1"></AppSearch>
|
---|
793 | <LaunchConditions After="AppSearch" />
|
---|
794 |
|
---|
795 | <!-- First install the new version and then remove the old version. This is more efficient. -->
|
---|
796 | <RemoveExistingProducts Before="InstallValidate" />
|
---|
797 |
|
---|
798 | <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)]]></Custom>
|
---|
799 | <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT Installed AND (NOT INSTALLDIR) AND EXISTINGINSTALLDIR]]></Custom>
|
---|
800 |
|
---|
801 | <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" >1</Custom>
|
---|
802 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
803 | <!-- Create host-only interfaces on first-time install. -->
|
---|
804 | <Custom Action="ca_CreateHostOnlyInterfaceArgs" Before="ca_CreateHostOnlyInterface" ><![CDATA[&VBoxNetworkAdp=3]]></Custom>
|
---|
805 | <Custom Action="ca_CreateHostOnlyInterface" Before="InstallFinalize" ><![CDATA[&VBoxNetworkAdp=3]]></Custom>
|
---|
806 | <!-- Don't remove the host-only interfaces on update, only on uninstall. -->
|
---|
807 | <Custom Action="ca_RemoveHostOnlyInterfaces" After="ca_UninstallNetFlt" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
|
---|
808 | <!-- First stop the existing host-only interfaces on update ... -->
|
---|
809 | <Custom Action="ca_StopHostOnlyInterfaces" Before="ca_UpdateHostOnlyInterfaces" ><![CDATA[UPGRADINGPRODUCTCODE]]></Custom>
|
---|
810 | <!-- ... then do the actual driver update. -->
|
---|
811 | <Custom Action="ca_UpdateHostOnlyInterfacesArgs" Before="ca_UpdateHostOnlyInterfaces" ><![CDATA[Installed AND UPGRADINGPRODUCTCODE]]></Custom>
|
---|
812 | <Custom Action="ca_UpdateHostOnlyInterfaces" Before="InstallFiles" ><![CDATA[Installed AND UPGRADINGPRODUCTCODE]]></Custom>
|
---|
813 |
|
---|
814 | <Custom Action="ca_RollbackInstallNetFltArgs" Before="ca_RollbackInstallNetFlt" ><![CDATA[&VBoxNetworkFlt=3]]></Custom>
|
---|
815 | <Custom Action="ca_RollbackInstallNetFlt" Before="ca_InstallNetFlt" ><![CDATA[&VBoxNetworkFlt=3]]></Custom>
|
---|
816 | <Custom Action="ca_InstallNetFltArgs" Before="ca_InstallNetFlt" ><![CDATA[&VBoxNetworkFlt=3]]></Custom>
|
---|
817 | <Custom Action="ca_InstallNetFlt" Before="ca_CreateHostOnlyInterface" ><![CDATA[&VBoxNetworkFlt=3]]></Custom>
|
---|
818 |
|
---|
819 | <Custom Action="ca_RollbackUninstallNetFltArgs" Before="ca_RollbackUninstallNetFlt" ><![CDATA[&VBoxNetworkFlt=2]]></Custom>
|
---|
820 | <Custom Action="ca_RollbackUninstallNetFlt" Before="ca_UninstallNetFlt" ><![CDATA[&VBoxNetworkFlt=2]]></Custom>
|
---|
821 | <Custom Action="ca_UninstallNetFltArgs" Before="ca_UninstallNetFlt" ><![CDATA[&VBoxNetworkFlt=2]]></Custom>
|
---|
822 | <Custom Action="ca_UninstallNetFlt" After="InstallInitialize" ><![CDATA[&VBoxNetworkFlt=2]]></Custom>
|
---|
823 | <?endif?>
|
---|
824 | <Custom Action="ca_InstallPythonAPIArgs" Before="ca_InstallPythonAPI" ><![CDATA[&VBoxPython=3]]></Custom>
|
---|
825 | <Custom Action="ca_InstallPythonAPI" Before="InstallFinalize" ><![CDATA[&VBoxPython=3]]></Custom>
|
---|
826 |
|
---|
827 | <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
|
---|
828 | <Custom Action="ca_InstallBranding" Before="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>
|
---|
829 |
|
---|
830 | <!-- Uninstall branding on complete uninstall, not on update. -->
|
---|
831 | <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
|
---|
832 | <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
|
---|
833 |
|
---|
834 | </InstallExecuteSequence>
|
---|
835 |
|
---|
836 | </Product>
|
---|
837 | </Wix>
|
---|
838 |
|
---|