VirtualBox

Changeset 95648 in vbox


Ignore:
Timestamp:
Jul 14, 2022 12:59:06 PM (2 years ago)
Author:
vboxsync
Message:

Additions/WINNT/Installer: Remove the VBoxFakeWHQL tool which requires AutoIt and needs to be activated by a special CLI switch and is probably unused for a long time now, bugref:8515 [reverted]

Location:
trunk
Files:
1 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk

    r95647 r95648  
    6666PACKING     += $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
    6767OTHER_CLEAN += \
    68         $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
     68        $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe \
     69        $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe
    6970
    7071## @todo r=andy Rename DRIVER_FILES to INST_FILES or something, as those files are not strictly driver-related files.
     
    8182        $(PATH_STAGE_BIN)/additions/VBoxTray.exe \
    8283        $(PATH_STAGE_BIN)/additions/VBoxControl.exe \
     84        $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe \
    8385        $(PATH_STAGE_BIN)/additions/VBoxService.exe
    8486ifeq ($(KBUILD_TARGET_ARCH),amd64)
     
    219221        $(call VBOX_SIGN_FILE_FN,$@)
    220222endif
     223
     224WHQLFAKE := $(PATH_SUB_CURRENT)/VBoxWHQLFake.au3
     225
     226$(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe:
     227        $(call MSG_L1,Creating $@, from $<)
     228        $(QUIET)$(EXEC_X86_WIN32) $(VBOX_PATH_AUTOIT3)/Aut2Exe/Aut2exe.exe \
     229                /in $(WHQLFAKE) \
     230                /out $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe \
     231                /icon $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
     232                /comp 4 \
     233                /unicode
    221234
    222235ifdef VBOX_GA_ATTESTATION_SIGNING
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r95647 r95648  
    3333
    3434; Defines for special functions
     35!define WHQL_FAKE                   ; Enables faking of non WHQL signed / approved drivers
     36                                    ; Needs the VBoxWHQLFake.exe in the additions output directory!
    3537!define WFP_FILE_EXCEPTION          ; Enables setting a temporary file exception for WFP proctected files
    3638
     
    226228; Command line parameters - these can be set/modified
    227229; on the command line
     230Var g_bFakeWHQL                         ; Cmd line: Fake Windows to install non WHQL certificated drivers (only for W2K and XP currently!!) ("/unsig_drv")
    228231Var g_bForceInstall                     ; Cmd line: Force installation on unknown Windows OS version
    229232Var g_bUninstall                        ; Cmd line: Just uninstall any previous Guest Additions and exit
     
    377380        StrCpy $g_iSfOrder $5
    378381        ${Break}
     382
     383!ifdef WHQL_FAKE
     384      ${Case} '/unsig_drv'
     385        StrCpy $g_bFakeWHQL "true"
     386      ${Break}
     387!endif
    379388
    380389      ${Case} '/uninstall'
     
    919928  StrCpy $g_bIgnoreUnknownOpts "false"
    920929  StrCpy $g_bLogEnable "false"
     930  StrCpy $g_bFakeWHQL "false"
    921931  StrCpy $g_bForceInstall "false"
    922932  StrCpy $g_bUninstall "false"
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r95647 r95648  
    207207!ifdef VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST
    208208  FILE "$%PATH_OUT%\bin\additions\VBoxAudioTest.exe"
     209!endif
     210
     211  ; WHQL fake
     212!ifdef WHQL_FAKE
     213  FILE "$%PATH_OUT%\bin\additions\VBoxWHQLFake.exe"
    209214!endif
    210215
     
    282287FunctionEnd
    283288
     289!ifdef WHQL_FAKE
     290
     291Function W2K_WHQLFakeOn
     292
     293  StrCmp $g_bFakeWHQL "true" do
     294  Goto exit
     295
     296do:
     297
     298  ${LogVerbose} "Turning off WHQL protection..."
     299  ${CmdExecute} "$\"$INSTDIR\VBoxWHQLFake.exe$\" $\"ignore$\"" "true"
     300
     301exit:
     302
     303FunctionEnd
     304
     305Function W2K_WHQLFakeOff
     306
     307  StrCmp $g_bFakeWHQL "true" do
     308  Goto exit
     309
     310do:
     311
     312  ${LogVerbose} "Turning back on WHQL protection..."
     313  ${CmdExecute} "$\"$INSTDIR\VBoxWHQLFake.exe$\" $\"warn$\"" "true"
     314
     315exit:
     316
     317FunctionEnd
     318
     319!endif
    284320
    285321Function W2K_InstallFiles
     
    393429  Call W2K_Prepare
    394430  Call W2K_CopyFiles
     431
     432!ifdef WHQL_FAKE
     433  Call W2K_WHQLFakeOn
     434!endif
     435
    395436  Call W2K_InstallFiles
     437
     438!ifdef WHQL_FAKE
     439  Call W2K_WHQLFakeOff
     440!endif
     441
    396442  Call W2K_SetVideoResolution
    397443
     
    465511!endif ; $%VBOX_WITH_WDDM% == "1"
    466512
     513  ; WHQL fake
     514!ifdef WHQL_FAKE
     515  Delete /REBOOTOK "$INSTDIR\VBoxWHQLFake.exe"
     516!endif
     517
    467518  ; Log file
    468519  Delete /REBOOTOK "$INSTDIR\install.log"
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