Inno Setup:选择组件后创建自定义向导页面

发布于 2024-09-05 21:55:12 字数 403 浏览 2 评论 0原文

我正在 Inno Setup 中构建一个安装程序。安装的软件是一个Web应用服务器,它检查80端口是否空闲,如果被占用,则提示用户另一个端口用于Web服务器。

我希望在文件复制之前将其显示在自定义向导页面上。原因是用户可能在安装开始时没有选择“Web 服务器”组件,在这种情况下不应显示此提示(因为它没有用)。

我只设法创建一个自定义向导页面,该页面出现在安装开始时,然后用户才能选择他想要安装的组件。我希望它出现在组件选择页面之后。

我目前正在考虑使用消息框而不是自定义向导页面。它不是那么花哨,但应该做到。还考虑回到 InstallJammer,这是我以前的平台。我知道 InstallJammer 非常酷(特别是在这些情况下 - 创建自定义窗格和操作),但有些事情让我把目光投向其他地方。 感谢您的阅读!

I'm building an installer in Inno Setup. The installed software is a web application server, it checks whether port 80 is free, if it is taken, then it prompts user for another port to use for the web server.

I want this to be shown on a custom wizard page, just before file copying. The reason is that it is possible that the user has not selected the "Web server" component at the beginning of the installation, in which case this prompt should not be shown (since it is useless).

I have only managed to create a custom wizard page that appears at the beginning of the install, before the user gets to select what components he wants to install. I want it to appear after the component selection page.

I'm currently looking into using a messagebox instead of a custom wizard page. It's not as fancy but should do it. Also considering going back to InstallJammer, which was my previous platform. I know InstallJammer can be pretty cool (especially in these cases - that is creating custom panes and actions) but some things made me look elsewhere.
Thanks for reading!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

澜川若宁 2024-09-12 21:55:12

没关系...我想我找到了解决方案:

原型:函数
创建输入查询页面(const
AfterID:整数; const ACaption、ADescription、ASubCaption:字符串):
TInputQueryWizardPage;

我现在就尝试一下

编辑:
是的,它有效,我将 AfterID 设置为 wpSelectComponents

我现在需要找到一种方法来测试端口 80...

Never mind... I think I found the solution:

Prototype: function
CreateInputQueryPage(const
AfterID: Integer; const ACaption, ADescription, ASubCaption: String):
TInputQueryWizardPage;

I'll give it a try now

Edit:
Yep it works I set AfterID to wpSelectComponents

I now need to find a way to test port 80...

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