VirtualBox

Ignore:
Timestamp:
Sep 12, 2022 10:43:02 AM (2 years ago)
Author:
vboxsync
Message:

Add/Nt/Installer: Simplified the $g_bInstallTimestampCA stuff. (untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r96694 r96696  
    316316  ;
    317317
    318   ; NSIS only supports global vars, even in functions -- great ;; @todo r=bird: why don't you just change $g_bInstallTimestampCA?
    319   Var /GLOBAL bDoInstallCA
    320   StrCpy $bDoInstallCA "false" ; Set a default value
    321 
    322318  ; If not explicitly specified, let the detected Windows version decide what to do.
    323   ${If} $g_bInstallTimestampCA == "unset"
    324     ${If} $g_strWinVersion != "10"
    325       ; On guest OSes < Windows 10 we always go for the PreW10 drivers and install our legacy timestamp CA.
    326       StrCpy $bDoInstallCA "true"
    327     ${EndIf}
    328   ${Else}
    329     StrCpy $bDoInstallCA $g_bInstallTimestampCA
    330   ${EndIf}
    331 
    332   ${If} $bDoInstallCA == "true"
     319  ; On guest OSes < Windows 10 we always go for the PreW10 drivers and install our legacy timestamp CA.
     320  ${If}    $g_bInstallTimestampCA == "unset"
     321  ${AndIf} $g_strWinVersion != "10"
     322      StrCpy $g_bInstallTimestampCA "true"
     323  ${EndIf}
     324
     325  ${If} $g_bInstallTimestampCA == "true"
    333326    ${LogVerbose} "Installing legacy timestamp CA certificate ..."
    334327    ${CmdExecute} "$\"$INSTDIR\cert\VBoxCertUtil.exe$\" add-root $\"$INSTDIR\cert\vbox-legacy-timestamp-ca.cer$\"" 'non-zero-exitcode=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