VBoxGuestAdditionsVista.nsh revision b711a01730152421a900e5f4e237cfb848c9c4fd
af062818b47340eef15700d2f0211576ba3506eevboxsync; VBoxGuestAdditionsVista.nsh - Guest Additions installation for Windows Vista/7.
af062818b47340eef15700d2f0211576ba3506eevboxsync; Copyright (C) 2006-2012 Oracle Corporation
af062818b47340eef15700d2f0211576ba3506eevboxsync; This file is part of VirtualBox Open Source Edition (OSE), as
af062818b47340eef15700d2f0211576ba3506eevboxsync; available from http://www.virtualbox.org. This file is free software;
af062818b47340eef15700d2f0211576ba3506eevboxsync; you can redistribute it and/or modify it under the terms of the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync; General Public License (GPL) as published by the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync; Foundation, in version 2 as it comes in the "COPYING" file of the
af062818b47340eef15700d2f0211576ba3506eevboxsync; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
af062818b47340eef15700d2f0211576ba3506eevboxsync; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
af062818b47340eef15700d2f0211576ba3506eevboxsyncFunction Vista_CheckForRequirements
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync DetailPrint "Checking for installation requirements for Vista / Windows 7 / Windows 8 ..."
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync ${If} $g_bForceInstall == "true"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync DetailPrint "Forcing installatoin, checking requirements skipped"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync goto success
af062818b47340eef15700d2f0211576ba3506eevboxsync ; Validate D3D files, regardless whether D3D support is selected or not
af062818b47340eef15700d2f0211576ba3506eevboxsync Call ValidateD3DFiles
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ${If} $0 == "1" ; D3D files are invalid, notify user
af062818b47340eef15700d2f0211576ba3506eevboxsync MessageBox MB_ICONSTOP|MB_OKCANCEL $(VBOX_COMPONENT_D3D_INVALID) /SD IDOK IDCANCEL failure
af062818b47340eef15700d2f0211576ba3506eevboxsync Goto success
af062818b47340eef15700d2f0211576ba3506eevboxsync Abort "ERROR: Requirements not met! Installation aborted."
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ; Nothing to do here right now
af062818b47340eef15700d2f0211576ba3506eevboxsyncFunction Vista_CopyFiles
af062818b47340eef15700d2f0211576ba3506eevboxsync SetOutPath "$INSTDIR"
af062818b47340eef15700d2f0211576ba3506eevboxsync SetOverwrite on
;FILE "$%PATH_OUT%\bin\additions\VBoxNET.inf"
;FILE "$%PATH_OUT%\bin\additions\VBoxNET.sys"
Delete /REBOOTOK "$INSTDIR\netamd.inf"
Delete /REBOOTOK "$INSTDIR\pcntpci5.cat"
Delete /REBOOTOK "$INSTDIR\PCNTPCI5.sys"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}"
Delete /REBOOTOK "$g_strSystemDir\VBoxCredProv.dll"