我浏览了其他图标/ stackoverflow帖子,觉得自己做得正确,但是却遇到以下错误:
Compiler engine version: Inno Setup 5.5.5 (a)
[ISPP] Preprocessing.
Error on line 30 in <stdin>: Column 42:
[ISPP] Undeclared identifier: "DefaultGroupName".
Compile aborted.
gmake: *** [Makefile:139: releaseapp] Error 2
[Setup]
AppName=SimModeler
AppVerName=SimModeler __BUILD__
AppVersion=__BUILD__
AppPublisher=Simmetrix Inc.
DefaultDirName={pf}\SimModeler 7.0-__BUILD__
DefaultGroupName=SimModeler 7.0-__BUILD__
Compression=lzma
SolidCompression=yes
SourceDir=__SOURCE_DIR__
ArchitecturesInstallIn64BitMode=x64
[Files]
Source: "*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
[Icons]
Name: "{group}\SimModeler 7.0"; Filename: "{app}\simmodeler.bat" ; Comment: "SimModeler"; WorkingDir: "{userdocs}"; IconFilename: "{app}\simmetrix.ico"
Name: "{commondesktop}\{#DefaultGroupName}"; Filename: "{app}\simmodeler.bat" ; Comment: "SimModeler"; WorkingDir: "{userdocs}"; IconFilename: "{app}\simmetrix.ico"
__BUILD__
在程序编译时定义,并解析为一个日期(今天为190128)。效果很好,创建了正确的目录结构,并且正确命名了我的最终exe。我只是想现在在桌面上安装的图标包含相同的BUILD代码,所以说SimModeler 7.0-190128而不是SimModeler 7.0。
我什至尝试删除__BUILD__
,并且仅对DefaultGroupName使用SimModeler 7.0-test,但是看到相同的错误。
任何帮助将不胜感激!