-1
我有一個NSIS安裝程序,其中有一些選項可以很好地工作。但是我的「--quiet」選項不適用於卸載程序。如何爲NSIS卸載程序設置選項
uninst:
ClearErrors
${getOPtions} $CMDLINE "--quiet" $0
${IfNot} ${Errors}
StrLen $2 "\Uninstall.exe /S"
${Else}
StrLen $2 "\Uninstall.exe"
${EndIf}
StrCpy $3 $0 -$2 # remove "\Uninstall.exe"
ExecWait '$0 _?=$3' ;Do not copy the uninstaller to a temp file`
而不工作意味着什麼? GetOptions失敗或ExecWait失敗? – Anders
命令'「\ Uninstall.exe/S」'永遠不會執行,所以我認爲GetOptions失敗 – sovif
最後,我剛剛嘗試了'ExecWait「\ Uninstall.exe/S」',但出現錯誤並且卸載失敗 – sovif