如何在卸载期间从 PascalScript 代码更新 InnoSetup Wizard GUI 状态文本

发布于 2024-09-13 03:34:34 字数 591 浏览 0 评论 0原文

在安装过程中,可以使用以下代码从 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 技术交流群。

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

发布评论

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

评论(1

满身野味 2024-09-20 03:34:34

我找到了解决方案:

UninstallProgressForm.StatusLabel.Caption := 'status update';

I found the solution:

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