使用 WiX 时是否可以动态添加页面
我目前正在评估安装技术。我需要完成的主要任务之一是能够从用户那里获取号码并重复一组页面的次数。
我可以看到如何将新页面添加到 WiX 中,但无论如何都可以根据用户输入动态显示页面 - 这不是一个流程或另一个流程的选择。
谢谢
I am currently evaluating installer technology. One of the main tasks I need to complete is to be able to take a number from a user and to repeat a set of pages that number of times.
I can see how to add a new page into WiX but is there anyway to dynamically show pages according to user input - this is not a choice of one flow or another.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 Wimmel 所建议的,您可能希望在安装程序中放置最大数量的对话框,但随后根据用户输入仅显示其中的一些对话框。如果这不是一个可行的选择,那么也许您可以使用外部 UI 处理程序并用选择的语言编写整个 GUI。 (提示:我编写了一个名为 SharpSetup 的工具,它简化了 C# 的工作。)
As Wimmel suggested you may want to put a maximum number of dialogs in your installer but then display only some of them depending on user input. If that's not a viable option then maybe you can use external UI handler and write the whole GUI in language of choice. (Hint: I have written a tool called SharpSetup that simplifies the job for C#.)