VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsVista.nsh@ 35753

Last change on this file since 35753 was 35753, checked in by vboxsync, 14 years ago

various nits.

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1; $Id: $
2;; @file
3; VBoxGuestAdditionsVista.nsh - Guest Additions installation for Windows Vista/7.
4;
5
6;
7; Copyright (C) 2006-2011 Oracle Corporation
8;
9; This file is part of VirtualBox Open Source Edition (OSE), as
10; available from http://www.virtualbox.org. This file is free software;
11; you can redistribute it and/or modify it under the terms of the GNU
12; General Public License (GPL) as published by the Free Software
13; Foundation, in version 2 as it comes in the "COPYING" file of the
14; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16;
17
18Function Vista_CopyFiles
19
20 SetOutPath "$INSTDIR"
21 SetOverwrite on
22
23 ; The files are for Vista only, they go into the application directory
24
25 ; VBoxNET drivers are not tested yet - commented out until officially supported and released
26 ;FILE "$%PATH_OUT%\bin\additions\VBoxNET.inf"
27 ;FILE "$%PATH_OUT%\bin\additions\VBoxNET.sys"
28
29
30FunctionEnd
31
32Function Vista_InstallFiles
33
34 DetailPrint "Installing drivers for Vista / Windows 7 ..."
35
36 SetOutPath "$INSTDIR"
37 ; Nothing here yet
38 Goto done
39
40error:
41 Abort "ERROR: Could not install files for Vista / Windows 7! Installation aborted."
42
43done:
44
45FunctionEnd
46
47Function Vista_Main
48
49 Call Vista_CopyFiles
50 Call Vista_InstallFiles
51
52FunctionEnd
53
54!macro Vista_UninstallInstDir un
55Function ${un}Vista_UninstallInstDir
56
57!if $%BUILD_TARGET_ARCH% == "x86" ; 32-bit
58 Delete /REBOOTOK "$INSTDIR\netamd.inf"
59 Delete /REBOOTOK "$INSTDIR\pcntpci5.cat"
60 Delete /REBOOTOK "$INSTDIR\PCNTPCI5.sys"
61!endif
62
63FunctionEnd
64!macroend
65!insertmacro Vista_UninstallInstDir ""
66!insertmacro Vista_UninstallInstDir "un."
67
68!macro Vista_Uninstall un
69Function ${un}Vista_Uninstall
70
71 ; Remove credential provider
72 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}"
73 DeleteRegKey HKCR "CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}"
74 Delete /REBOOTOK "$g_strSystemDir\VBoxCredProv.dll"
75
76FunctionEnd
77!macroend
78!insertmacro Vista_Uninstall ""
79!insertmacro Vista_Uninstall "un."
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette