Can I call a batch file when compiling an Inno Setup script?

I would like to invoke the batch file at the beginning of the Inno Setup compilation process. that is, before it starts compiling, do an external operation. Is this possible, or should my external activity wrap the Inno Setup compilation process?

+5
source share
1 answer

If you have ISPP installed with Inno (now it is built-in), you can use the preprocessor function Exec()to run your batch file. Compilation will be suspended until it returns (place it at the beginning of the file).

#expr Exec("c:\file.bat")

If your command accepts arguments, you should write it as:

#expr Exec('c:\my_cmd.exe','some_argument') 

, .

+9

All Articles