【发布时间】: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 中可见...
【问题讨论】: