【问题标题】:How to update the InnoSetup Wizard GUI status text from PascalScript code during uninstall如何在卸载期间从 Pascal 脚本代码更新 Inno Setup Wizard GUI 状态文本
【发布时间】:2010-08-05 17:08:46
【问题描述】:

在安装期间,可以使用以下代码 (How to update the InnoSetup Wizard GUI status text from PascalScript code) 从 PascalScript 事件处理程序“CurStepChanged(ssPostInstall)”内部更新 InnoSetup 向导状态文本:

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 中可见...

【问题讨论】:

    标签: installation inno-setup


    【解决方案1】:

    我找到了解决办法:

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

    【讨论】:

      猜你喜欢
      • 2011-01-31
      • 1970-01-01
      • 2016-06-23
      • 2017-02-12
      • 2019-03-23
      • 2017-08-15
      • 2021-01-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多