Inno Setup:如何根据用户选项运行回发脚本?
我试图在有人使用 Inno Setup 安装我的程序时运行一个回发脚本。据我所知,我可以使用 [Run] 部分来运行这样的 url 文件:
[Run]
Filename: "{app}\postback.url";
但是,如何根据用户在安装过程中选择的内容传递不同的回发脚本?我有一些组件,我想知道安装了哪些组件。有没有“if”语句之类的?
另外,有没有更好的方法来实现回发功能?我觉得应该有比运行 .url 文件更容易的事情。
多谢!
I'm trying to have a postback script run for when someone installs my program with Inno Setup. As far as I know, I can just use the [Run] section to run a url file like this:
[Run]
Filename: "{app}\postback.url";
However, how do I pass different postback scripts based on what the user chose during installation? I have a few components, and I'd like to know which components were installed. Are there any "if" statements or something?
Also, is there a better way to do the postback function? I feel like there should be something easier than running a .url file.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 Inno Setup 示例文件夹,特别是 CodeDlg.iss 和 CodeExample1.iss 脚本。它们都展示了如何使用
[Code]
部分,第一个展示了如何创建获取自定义用户反馈的对话框页面。另请参阅 Inno 安装帮助 页面上的
Pascal 脚本
部分。See the Inno Setup examples folder, in particular the CodeDlg.iss and CodeExample1.iss scripts. They both show how to use the
[Code]
section, and the first shows how to create dialog pages that get custom user feedback.Also see the
Pascal Scripting
section at the Inno Setup Help pages.