VirtualBox

source: vbox/trunk/src/VBox/Installer/win/VBoxMergeAppCA.wxi

Last change on this file was 104162, checked in by vboxsync, 6 weeks ago

Windows/Host Installer: Check permissions of target directory when installing. Added a new testcase for this. bugref:10616

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1<?xml version="1.0"?>
2<!--
3 VirtualBox Windows Installation Script (WiX)
4-->
5<!--
6 Copyright (C) 2014-2023 Oracle and/or its affiliates.
7
8 This file is part of VirtualBox base platform packages, as
9 available from https://www.virtualbox.org.
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation, in version 3 of the
14 License.
15
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, see <https://www.gnu.org/licenses>.
23
24 SPDX-License-Identifier: GPL-3.0-only
25-->
26
27<Include xmlns="http://schemas.microsoft.com/wix/2006/wi"
28 xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
29
30<?if $(env.VBOX_WITH_CRT_PACKING) = "no" ?>
31 <CustomAction Id="ca_IsMSCRTInstalled" BinaryKey="VBoxInstallHelper"
32 DllEntry="IsMSCRTInstalled" Execute="immediate" Return="ignore" Impersonate="no" />
33<?endif?>
34
35 <CustomAction Id="ca_IsWindows10" BinaryKey="VBoxInstallHelper"
36 DllEntry="IsWindows10" Execute="immediate" Return="ignore" Impersonate="no" />
37
38 <!-- Makes sure we check if the chosen target directory is valid before allowing to install. See @bugref{10616} -->
39 <CustomAction Id="ca_CheckTargetDirPre" BinaryKey="VBoxInstallHelper"
40 DllEntry="CheckTargetDir" Execute="immediate" Return="ignore" Impersonate="no" />
41 <!-- Makes sure that the target directory we installed into still is valid. Rollback if it isn't. See @bugref{10616} -->
42 <CustomAction Id="ca_CheckTargetDirPost" BinaryKey="VBoxInstallHelper"
43 DllEntry="CheckTargetDir" Execute="immediate" Return="check" Impersonate="no" />
44</Include>
45
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use