Reputation:
I have to launch 32-bit icon module and in 64-bit also 32-bit icon module but the path is one issue while using JNLP/ws.
InnoSetup, how can i set if its 64-bit PC use c:\program files (x86)\
not (x64)
even. And for normal general 32-bit use 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"""
Upvotes: 2
Views: 2277
Reputation: 837
you can also use the constant {pf32}
[Setup]
DefaultDirName={pf32}\ProgramName
Upvotes: 3