Inno Setup:选择组件后创建自定义向导页面
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系...我想我找到了解决方案:
我现在就尝试一下
编辑:
是的,它有效,我将 AfterID 设置为 wpSelectComponents
我现在需要找到一种方法来测试端口 80...
Never mind... I think I found the solution:
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...