Do you know the right method to get the installer path in Inno Setup?
I want to catch that value inside the [Code]
section.
Inno Setup is a free software script-driven installation system created in Delphi by Jordan Russell. The first version was released in 1997. Inno Setup. Screenshot of the Inno Setup IDE running on Windows 7. Developer(s)
{srcexe}
will give you the path and filename of the setup.{src}
will give you just the installer path.
You should use the {srcexe}
constant. In Pascal scripting, you can obtain the values of constants using the ExpandConstant
function, as in
path := ExpandConstant('{srcexe}');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With