VirtualBox

Ignore:
Timestamp:
Mar 29, 2011 11:37:01 AM (14 years ago)
Author:
vboxsync
Message:

Windows Guest Additions installer: Try to replace WFP protected files on the fly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r36404 r36455  
    2727
    2828; Defines for special functions
    29 !define WHQL_FAKE    ; Turns on the faking of non WHQL signed / approved drivers
    30                      ; Needs the VBoxWHQLFake.exe in the additions output directory!
     29!define WHQL_FAKE                   ; Enables faking of non WHQL signed / approved drivers
     30                                    ; Needs the VBoxWHQLFake.exe in the additions output directory!
     31!define WFP_FILE_EXCEPTION          ; Enables setting a temporary file exception for WFP proctected files
    3132
    3233!define VENDOR_ROOT_KEY             "SOFTWARE\$%VBOX_VENDOR_SHORT%"
    3334
     35; Product defines
    3436!define PRODUCT_NAME                "$%VBOX_PRODUCT% Guest Additions"
    3537!define PRODUCT_DESC                "$%VBOX_PRODUCT% Guest Additions"
     
    730732
    731733  Pop $0
     734
     735!if $%VBOX_WITH_GUEST_INSTALL_HELPER% == "1"
     736  !ifdef WFP_FILE_EXCEPTION
     737    VBoxGuestInstallHelper::DisableWFP "$0"
     738    Pop $1 ; Get return value (ignored for now)
     739    DetailPrint "Setting WFP exception for '$0': $1"
     740  !endif
     741!endif
     742
    732743  IfFileExists "$g_strSystemDir\takeown.exe" 0 +2
    733744    nsExec::ExecToLog '"$g_strSystemDir\takeown.exe" /F "$0"'
     
    871882
    872883done:
     884
     885!ifndef WFP_FILE_EXCEPTION
    873886  MessageBox MB_ICONINFORMATION|MB_OK $(VBOX_WFP_WARN_REPLACE) /SD IDOK
     887!endif
    874888  Goto exit
    875889
Note: See TracChangeset for help on using the changeset viewer.

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