You can read custom parameters with the {param} constant, example: if ExpandConstant('{param:Mode|DefaultMode}') = 'DefaultMode' then begin Log('Installing for default mode'); end else begin Log('Installing for different mode'); end; It works with syntax like /Name=Value. And can also be used within sections, such as: [Registry] Root: HKCU; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; \ ValueName: "Mode"; […]
The post How to pass custom command-lien parameters in InnoSetup appeared first on Query Admin.