开发者

Passing constants as arguments in INNO's Exec()

I have created an installer using Inno Setup in which I am executing an exe that I created to create a small service inside Windows XP. I need to pass two arguments to the exe - "-install" and the path of the in开发者_开发问答stallation directory. I have no way of expanding the constant {app} to pass the actual value inside of {app}. Is there some way of doing this?

Thanks


I do not really understand what you want, but maybe you are seeking the ExpandConstant function?


This should work:

[Run]
Filename: {app}\MyApp.exe; Parameters: "-install {app}";

I've done it before using InnoSetup and it puts the correct value for {app}.

If you are still having problems, please post your code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜