Is there a way to run a [Code]
procedure or PowerShell script in the Inno Setup compiler before the installation executable is generated?
相关问题
- How to Debug/Register a Permanent WMI Event Which
- How can I do variable substitution in a here-strin
- How to use a default value with parameter sets in
- Does powershell have a method_missing()?
- Invoking Mirth Connect CLI with Powershell script
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- C#调用PowerShell的问题
- EscapeDataString having differing behaviour betwee
- PowerShell Change owner of files and folders
- In inno setup how to set the unins000.exe with pro
- Command line escaping single quote for PowerShell
- Is there a simple way to pass specific *named* Pow
- How do I access an element with xpath with a names
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
ISCC.exe
from the PowerShell script itself)Another way to run some script before compilation is using
Exec
preprocessor function.or
See also Is it possible to call a batch file while compiling an Inno Setup script?
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.