Inno Setup:如何根据用户选项运行回发脚本?

发布于 2024-10-08 20:01:39 字数 275 浏览 0 评论 0原文

我试图在有人使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

歌入人心 2024-10-15 20:01:39

请参阅 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文