VirtualBox

Changeset 107237 in vbox for trunk


Ignore:
Timestamp:
Dec 5, 2024 2:53:26 PM (2 months ago)
Author:
vboxsync
Message:

Windows Guest Additions installer: Fixed regression from r153570 within CmdExecute macro, where there was a double negation in the options checking as well as a bug which prevented the installation to abort if the caller told so via the given options.

File:
1 edited

Legend:

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

    r106061 r107237  
    4545
    4646  ; Check that the options are valid.
    47   ${IfNot}    ${options} != "exitcode=0"
    48   ${AndIfNot} ${options} != "ignore-exitcode"
     47  ${If}    ${options} != "non-zero-exitcode=log"
     48  ${AndIf} ${options} != "non-zero-exitcode=abort"
    4949    Abort "Internal error in _cmdExecute: options=${options} cmdline=${cmdline}"
    5050  ${EndIf}
     
    5858    Pop $0 ; Return value (exit code)
    5959    Pop $1 ; Stdout/stderr output (up to ${NSIS_MAX_STRLEN})
    60     ${LogVerbose} "$1"
     60    ${LogVerbose} "exit code=$0: $1"
    6161  ${Else}
    6262    nsExec::ExecToLog "${cmdline}"
     
    6969  ; Check if it failed and take action according to the 2nd argument.
    7070  ;
    71   ${If} $0 <> 0
    72     ${If} ${options} == "exitcode=0"
     71  ${If}   $0 <> 0
     72  ${OrIf} $0 == "error" ; Issued by the nsExec plugin if the DLL call failed (messy handling within nsExec, sigh).
     73    ${If} ${options} == "non-zero-exitcode=abort"
    7374      ${LogVerbose} "Error excuting $\"${cmdline}$\" (exit code: $0) -- aborting installation"
    7475      Abort "Error excuting $\"${cmdline}$\" (exit code: $0) -- aborting installation"
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