문제 설명
Inno Setup의 WizardForm 페이지에서 레이블 텍스트 변경 (Changing label texts on WizardForm page in Inno Setup)
WizardForm
에 의해 노출되지 않는 설치 프로그램의 WizardForm
에 있는 특정 레이블의 텍스트를 (코드에서) 변경하고 싶습니다.
예:
ReadyLabel2a=Click Install to continue with the installation, or click Back if you want to review or change any settings.
컴파일러가 알 수 없는 식별자 ReadyLabel2a
에 대해 불평하므로 WizardForm.ReadyLabel2a.Caption := 'BLAH';
를 수행할 수 없습니다.
할 수 있는 방법이 있나요?
감사합니다
참조 솔루션
방법 1:
All components of the installer wizard form are exposed.
The label is ReadyLabel
, not ReadyLabel2a
. The ReadyLabel2a
is ID of the message. The installer uses either message ReadyLabel2a
or ReadyLabel2b
for the ReadyLabel
, depending on the setup configuration.
WizardForm.ReadyLabel.Caption := 'BLAH';
See TWizardForm
class declaration.
You can find how the messages are used in controls in Inno Setup source code
If you need to have an installer specific texts for certain standard messages, modify the texts using Messages
section:
[Messages]
ReadyLabel2a=Click Install to continue with the installation, or click Back if you want to review or change any settings.
(by ababeel、Martin Prikryl)