VirtualBox

Ignore:
Timestamp:
Jul 20, 2022 12:20:35 PM (3 years ago)
Author:
vboxsync
Message:

Windows Guest Additions installer: Added switches /[no_]install_timestamp_ca to (not) force installation of the timestamp CA. Note: When not specified explicitly, this does not change the default behaviour of only installing the CA only on guests < Windows 10. bugref:8691

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

Legend:

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

    r95649 r95753  
    244244Var g_bOnlyExtract                      ; Cmd line: Only extract all files, do *not* install them. Only valid with param "/D" (target directory)
    245245Var g_bPostInstallStatus                ; Cmd line: Post the overall installation status to some external program (VBoxTray)
     246Var g_bInstallTimestampCA               ; Cmd line: Force installing the timestamp CA on the system
    246247
    247248; Platform parts of this installer
     
    365366        ${Break}
    366367!endif
     368
     369      ${Case} '/install_timestamp_ca' ; Not officially documented
     370        StrCpy $g_bInstallTimestampCA "true"
     371        ${Break}
     372
     373      ${Case} '/no_install_timestamp_ca' ; Ditto
     374        StrCpy $g_bInstallTimestampCA "false"
     375        ${Break}
    367376
    368377      ${Case} '/reboot'
     
    939948  StrCpy $g_bCapWDDM "false"
    940949  StrCpy $g_bPostInstallStatus "false"
     950  StrCpy $g_bInstallTimestampCA "unset" ; Tri-state: "unset", "true" and "false"
    941951
    942952  ; We need a special directory set to SysWOW64 because some
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r95731 r95753  
    169169
    170170!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"
     171  ; NSIS only supports global vars, even in functions -- great
     172  Var /GLOBAL bDoInstallCA
     173  StrCpy $bDoInstallCA "false" ; Set a default value
     174
     175  ; If not explicitly specified, let the detected Windows version decide what to do.
     176  ${If} $g_bInstallTimestampCA == 'unset':
     177    ${If} $g_strWinVersion != "10"
     178      ; On guest OSes < Windows 10 we always go for the PreW10 drivers and install our legacy timestamp CA.
     179      StrCpy $bDoInstallCA "true"
     180    ${EndIf}
     181  ${Else}
     182    StrCpy $bDoInstallCA $g_bInstallTimestampCA
     183  ${EndIf}
     184
     185  ${If} $bDoInstallCA == "true"
    173186    ${LogVerbose} "Installing legacy timestamp CA certificate ..."
    174187    SetOutPath "$INSTDIR\cert"
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