How can I pass command line parameters with a value to the Inno Setup Compiler, so I can use them in my code?
问题 I have two possible build options. As I don't want my clients to start the installer with some parameters, I'd better pass them to the compiler and do all the job in my code. Let's say I have the variable UNION which may take two values: 0 and 1 . I have to analyze the value of that variable in my code and depending on the result to include some files or not. I know how to pass parameterrs to the installer itself, but how can I pass them to the compiler? Here's some code: procedure