How do you make Inno Setup disable CreateUninstallRegKey
via code?
My setup.exe file created in Inno Setup accepts parameters, e.g.:
setup.exe -a
or
setup.exe -b
If -a
parameter is supplied, then enable CreateUninstallRegKey
, or if -b
parameter is supplied, then disable CreateUninstallRegKey
.
Is there anyway to set CreateUninstallRegKey
via code or do I have to make a function then call the function in script section?
This help page explains about using {code:...}
constants, but unfortunately I got this error:
Thanks