我必须启动32位图标模块和64位也是32位图标模块,但使用JNLP / ws时路径是一个问题。
InnoSetup,如果其64位PC使用c:\program files (x86)\
而不是(x64)
,我该怎么设置呢?对于普通的一般32位使用c:\program files\
ArchitecturesInstallIn64BitMode=x64
[Files]
; Install MyProg-x64.exe if running in 64-bit mode (x64; see above),
; MyProg.exe otherwise.
Source: "MyProg-x64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: Is64BitInstallMode
Source: "MyProg.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode
Source: "MyProg.chm"; DestDir: "{app}"
Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
[Icons]
; Java Jar to Icon
Name: "{userdesktop}\Iconname"; Filename: javaw.exe; WorkingDir: {app}\dist; IconFilename: {win}\firefox2.ico; IconIndex: 0; Parameters: "-jar ""{app}\dist\Jar.jar"""
答案 0 :(得分:5)
评论ArchitecturesInstallIn64BitMode=x64
。
答案 1 :(得分:4)
您也可以使用常量{pf32}
[Setup]
DefaultDirName={pf32}\ProgramName