开发者

How to get the installer path in Inno Setup?

开发者 https://www.devze.com 2023-02-16 16:24 出处:网络
D开发者_如何学运维o you know the right method to get the installer path in Inno Setup? I want to catch that value inside the [Code] section.{srcexe} will give you the path and filename of the setup.

D开发者_如何学运维o you know the right method to get the installer path in Inno Setup?

I want to catch that value inside the [Code] section.


{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}');
0

精彩评论

暂无评论...
验证码 换一张
取 消