[Inno Setup] 如何读取命令行输入的参数
以 /verysilent 为例
[Code] var isVerySilent: Boolean; function InitializeSetup(): Boolean; var j: Integer; begin isVerySilent := False; for j := 1 to ParamCount do if CompareText(ParamStr(j), '/verysilent') = 0 then begin isVerySilent := True; Break; end; if isVerySilent then Log ('VerySilent') else Log ('not VerySilent'); end;