VirtualBox

Changeset 95697 in vbox


Ignore:
Timestamp:
Jul 18, 2022 9:47:14 AM (2 years ago)
Author:
vboxsync
Message:

Windows Additions/Installer: Added VBoxCertUtil + legacy TS CA cert to the installer in case VBOX_SIGN_ADDITIONS and VBOX_WITH_VBOX_LEGACY_TS_CA are set. This then will be utilized by the installer automatically to install the certificate as a pre-requisite for guest OSes < Windows 10 (using the PreW10 .cat files). bugref:8691

Location:
trunk/src/VBox/Additions/WINNT/Installer
Files:
2 edited

Legend:

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

    r95649 r95697  
    206206                -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
    207207                        $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
     208                        $(if $(VBOX_WITH_VBOX_LEGACY_TS_CA),'/DVBOX_WITH_VBOX_LEGACY_TS_CA=1') \
    208209                        $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
    209210                        $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
     
    255256                        $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
    256257                        $(if $(VBOX_SIGNING_MODE),'/DEXTERNAL_UNINSTALLER=1') \
     258                        $(if $(VBOX_WITH_VBOX_LEGACY_TS_CA),'/DVBOX_WITH_VBOX_LEGACY_TS_CA=1') \
    257259                        $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
    258260                        $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r95649 r95697  
    167167  ; Delete old VBoxService.exe from install directory (replaced by VBoxTray.exe)
    168168  Delete /REBOOTOK "$INSTDIR\VBoxService.exe"
     169
     170!ifdef VBOX_SIGN_ADDITIONS && VBOX_WITH_VBOX_LEGACY_TS_CA
     171  ; On guest OSes < Windows 10 we always go for the PreW10 drivers and install our legacy timestamp CA.
     172  ${If} $g_strWinVersion != "10"
     173    ${LogVerbose} "Installing legacy timestamp CA certificate ..."
     174    SetOutPath "$INSTDIR\cert"
     175    FILE "$%PATH_OUT%\bin\additions\vbox-legacy-timestamp-ca.cer"
     176    FILE "$%PATH_OUT%\bin\additions\VBoxCertUtil.exe"
     177    ${CmdExecute} "$\"$INSTDIR\cert\VBoxCertUtil.exe$\" add-trusted-publisher $\"$INSTDIR\cert\vbox-legacy-timestamp-ca.cer$\"" "false"
     178    ${CmdExecute} "$\"$INSTDIR\cert\VBoxCertUtil.exe$\" display-all" "false"
     179  ${EndIf}
     180!endif
    169181
    170182FunctionEnd
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