如何在卸载期间从 PascalScript 代码更新 InnoSetup Wizard GUI 状态文本
在安装过程中,可以使用以下代码从 PascalScript 事件处理程序“CurStepChanged(ssPostInstall)”内部更新 InnoSetup 向导状态文本(如何更新来自 PascalScript 代码的 InnoSetup 向导 GUI 状态文本):
WizardForm.StatusLabel.Caption := 'status update';
这不适用于卸载。从“CurUninstallStepChanged(usUninstall)”内部访问此属性失败,并出现以下错误:
"Runtime Error: Line 526: Exception: Internal Error: An attempt was made to access WizardForm before it has been created."
知道如何在卸载过程中更改 InnoSetup 向导状态文本吗?也许“usUninstall”还为时过早?但标签已经存在并且在卸载程序的 GUI 中可见......
During installation, it's possible to update the InnoSetup wizard status text from inside the PascalScript event handler "CurStepChanged(ssPostInstall)" with the following code (How to update the InnoSetup Wizard GUI status text from PascalScript code):
WizardForm.StatusLabel.Caption := 'status update';
This does not work for uninstall. Accessing this property from inside "CurUninstallStepChanged(usUninstall)" fails with the following error:
"Runtime Error: Line 526: Exception: Internal Error: An attempt was made to access WizardForm before it has been created."
Any idea how the InnoSetup wizard status text can be changed during uninstall? Maybe "usUninstall" is too early? But the label is already there and visible in the uninstaller's GUI...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案:
I found the solution: