1 | ; $Id: VBoxGuest.inf 106487 2024-10-18 18:53:10Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; INF file for installing the VirtualBox Windows guest driver, XP and later.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2006-2024 Oracle and/or its affiliates.
|
---|
8 | ;
|
---|
9 | ; This file is part of VirtualBox base platform packages, as
|
---|
10 | ; available from https://www.virtualbox.org.
|
---|
11 | ;
|
---|
12 | ; This program is free software; you can redistribute it and/or
|
---|
13 | ; modify it under the terms of the GNU General Public License
|
---|
14 | ; as published by the Free Software Foundation, in version 3 of the
|
---|
15 | ; License.
|
---|
16 | ;
|
---|
17 | ; This program is distributed in the hope that it will be useful, but
|
---|
18 | ; WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | ; General Public License for more details.
|
---|
21 | ;
|
---|
22 | ; You should have received a copy of the GNU General Public License
|
---|
23 | ; along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | ;
|
---|
25 | ; The contents of this file may alternatively be used under the terms
|
---|
26 | ; of the Common Development and Distribution License Version 1.0
|
---|
27 | ; (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
28 | ; in the VirtualBox distribution, in which case the provisions of the
|
---|
29 | ; CDDL are applicable instead of those of the GPL.
|
---|
30 | ;
|
---|
31 | ; You may elect to license modified versions of this file under the
|
---|
32 | ; terms and conditions of either the GPL or the CDDL or both.
|
---|
33 | ;
|
---|
34 | ; SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
35 | ;
|
---|
36 |
|
---|
37 | [Version]
|
---|
38 | Signature="$WINDOWS NT$"
|
---|
39 | Provider=%ORACLE%
|
---|
40 | ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
|
---|
41 | Class=System
|
---|
42 | DriverPackageType=PlugAndPlay
|
---|
43 | ;edit-DriverVer=08/26/2008,2.00.0000
|
---|
44 | ;cat CatalogFile=VBoxGuest.cat
|
---|
45 | ;PnpLockdown=1
|
---|
46 |
|
---|
47 | [SourceDisksNames]
|
---|
48 | 1 = %VBoxGuest_MediaDesc%,,,
|
---|
49 |
|
---|
50 | [SourceDisksFiles]
|
---|
51 | VBoxGuest.sys = 1
|
---|
52 | VBoxControl.exe = 1
|
---|
53 | VBoxTray.exe = 1
|
---|
54 |
|
---|
55 | [DestinationDirs]
|
---|
56 | VBoxGuest_CopyFiles = 12 ; drivers
|
---|
57 | VBoxTray_CopyFiles = 11 ; system32
|
---|
58 |
|
---|
59 | [Manufacturer]
|
---|
60 | %ORACLE%=VBoxGuest@COMMA-NT-ARCH@
|
---|
61 |
|
---|
62 | [VBoxGuest@DOT-NT-ARCH@]
|
---|
63 | %VBoxGuest_DeviceDesc%=VBoxGuest,PCI\VEN_80ee&DEV_cafe
|
---|
64 | CopyFiles = VBoxGuest_CopyFiles
|
---|
65 | CopyFiles = VBoxTray_CopyFiles ; Separate CopyFiles directive to make InfVerif.exe happy. Bug?
|
---|
66 | AddReg = VBoxTray_Registry
|
---|
67 |
|
---|
68 | [VBoxGuest@DOT-NT-ARCH@.Services]
|
---|
69 | AddService = VBoxGuest, 0x00000002, VBoxGuest_AddService
|
---|
70 | DelService = VBoxTray, 0x00000004
|
---|
71 |
|
---|
72 | [VBoxGuest_CopyFiles]
|
---|
73 | VBoxGuest.sys,,,0x4000 ; COPYFLG_IN_USE_TRY_RENAME
|
---|
74 |
|
---|
75 | [VBoxTray_CopyFiles]
|
---|
76 | VBoxTray.exe,,,0x4000 ; COPYFLG_IN_USE_TRY_RENAME
|
---|
77 | VBoxControl.exe,,,0x4000 ; COPYFLG_IN_USE_TRY_RENAME
|
---|
78 |
|
---|
79 | [VBoxGuest_AddService]
|
---|
80 | DisplayName = %VBoxGuest_SvcDesc%
|
---|
81 | ServiceType = %SERVICE_TYPE_KERNEL_DRIVER%
|
---|
82 | StartType = %SERVICE_STARTTYPE_BOOT%
|
---|
83 | ErrorControl = %SERVICE_ERRORCTL_NORMAL%
|
---|
84 | LoadOrderGroup = Base
|
---|
85 | ServiceBinary = %12%\VBoxGuest.sys
|
---|
86 |
|
---|
87 | [DefaultUninstall@DOT-NT-ARCH@.Services]
|
---|
88 | DelService = VBoxGuest,0x00000200
|
---|
89 | DelReg = VBoxTray_Registry
|
---|
90 | LegacyUninstall=1
|
---|
91 |
|
---|
92 | [VBoxTray_Registry]
|
---|
93 | HKLM, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, VBoxTray, 0x00020000, %%SystemRoot%%\system32\VBoxTray.exe
|
---|
94 |
|
---|
95 | [ClassInstall32]
|
---|
96 | ; This should fix the error 0xe0000101 (The required section was not found in the INF).
|
---|
97 |
|
---|
98 | [Strings]
|
---|
99 | ORACLE = "Oracle Corporation"
|
---|
100 | VBoxGuest_DeviceDesc = "VirtualBox Guest Device"
|
---|
101 | VBoxGuest_SvcDesc = "VirtualBox Guest Driver"
|
---|
102 | VBoxTray_SvcDesc = "VirtualBox Guest Tray"
|
---|
103 | VBoxGuest_MediaDesc = "VirtualBox Guest Driver Installation Disk"
|
---|
104 |
|
---|
105 | ; Useful constants
|
---|
106 | SERVICE_TYPE_KERNEL_DRIVER = 1
|
---|
107 | SERVICE_STARTTYPE_BOOT = 0
|
---|
108 | SERVICE_STARTTYPE_DEMAND = 3
|
---|
109 | SERVICE_ERRORCTL_IGNORE = 0
|
---|
110 | SERVICE_ERRORCTL_NORMAL = 1
|
---|
111 |
|
---|