我想向Inno安装程序添加一个名为SetupMessageID[msgButtonNotify]的新安装消息ID。
我还需要使用.isl文件(如msgButtonNotify=Notify )来修改它的文本。
如何在不收到任何异常消息的情况下添加新的安装消息ID?
如果可能的话,我应该把它添加到它的源代码中,包括MsgIDs.pas
如何更新MessageHdrID中的Struct.pas以添加新的设置消息ID?
因为,Jordan Russel在MsgIDs.pas__:{ Note: When any messages are added/deleted/changed, MessagesHdrID needs to be updated in Struct.pas }上给出了这个警告
我不明白我应该在Struct.pas中更新什么。
与此警告相关的线路可以在Struct.pas中看到:
TMessagesHdrID = array[0..63] of AnsiChar;和
MessagesHdrID: TMessagesHdrID = 'Inno Setup Messages (5.5.3)'{$IFDEF UNICODE}+' (u)'{$ENDIF};
这些行中应更新哪些内容?
Update是什么意思?
我是否应该增加AnsiChar数组或其他任何东西的值?
我之所以这样问,是因为当我将名为msgButtonNotify的新安装消息ID添加到MsgIDs.pas并将TMessagesHdrID的AnsiChar数组长度增加到65时,在Default.isl中添加新的安装消息ID,然后编译项目并尝试使用Inno安装编译器进行测试编译,Setup表示Message name "ButtonNotify" in Default.isl is not recognized by this version of Inno Setup。
为什么会出现这种异常?
在Inno安装编译器的源代码中添加新的安装消息ID时,是否还需要更新其他单元?
提前谢谢。
发布于 2016-07-25 14:52:25
我看不出重新编译Inno安装程序以添加新消息的意义。
使用.isl或.iss中的.iss添加新消息。
[CustomMessages]
ButtonNotify=&Notify然后使用 function (或 constant)加载消息。
procedure InitializeWizard();
var
NotifyButton: TNewButton;
begin
NotifyButton := TNewButton.Create(WizardForm);
NotifyButton.Parent := WizardForm;
NotifyButton.Caption := CustomMessage('ButtonNotify');
...
end;https://stackoverflow.com/questions/38560783
复制相似问题