Is there a way to run a
[Code] procedure or PowerShell script in the Inno Setup compiler before the installation executable is generated?
Join Stack Overflow to learn, share knowledge, and build your career.
You may get better answers, if you explain what you need to run the code for. Anyway...
One way is to compile the script on command-line from a batch file:
(or you can call
Another way to run some script before compilation is using
If you need a GUI solution, there's ISTool, an Inno Setup extension, that has direct support for Pre Compilation and Post Compilation "Steps". But this project is unfortunately no longer maintained. You might be able to update it to the latest Inno Setup version, as it is open source.