如何从 PascalScript 代码更新 InnoSetup Wizard GUI 状态文本
我在 CurStepChanged(ssPostInstall) PascalScripting 事件处理程序的 InnoSetup 脚本中执行了许多自定义操作。由于这些操作需要一些时间才能完成,我想更新 InnoSetup Wizard GUI 状态文本并告诉用户幕后发生了什么。在 [Run] 部分中使用“StatusMsg”参数可以实现类似的操作。我知道我可以使用 TOutputProgressWizardPage/CreateOutputProgressPage(),而且我在之前的项目中也这样做了,但这对我来说有点过分了...
是否有更简单的方法可以从 PascalScripting 代码更新 InnoSetup Wizard GUI 状态文本与 StatusMsg 参数效果相同吗?
I execute a lot of custom actions in my InnoSetup script in the CurStepChanged(ssPostInstall) PascalScripting event handler. As these actions take some time to finish, I'd like to update the InnoSetup Wizard GUI status text and tell the user what is going on behind the scenes. Something similar that is possible in the [Run] section using the "StatusMsg" parameter. I know that I could use the TOutputProgressWizardPage/CreateOutputProgressPage(), and I did in a previous project, but it's a bit too much overkill to my liking...
Is there a simpler possibility to update the InnoSetup Wizard GUI status text from PascalScripting code with the same effect as the StatusMsg parameter?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 CurStepChanged 处理程序中使用它:
Use this from your CurStepChanged handler: