I would like to know if it is possible to replace, or change, the icon that appears on various pages of Inno Setup install routine (eg: Select Destination Location, Select Start Menu Folder,...), when using the SetupIconFile=MyProgSetup.ico
directive.
I am asking this because when using the above directive, the icon displayed in the Select Destination Location page is poorly rendered becoming unrecognizable.
Is it possible to use the original image, like not using SetupIconFile=MyProgSetup.ico
directive?
Below the code snippet.
#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppExeName "MyProg.exe"
[Setup]
AppId={{8AAA5113-D0B7-4C6B-84F1-7015709E191C}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
DefaultDirName={autopf}\{#MyAppName}
OutputBaseFilename=mysetup
Compression=lzma
SolidCompression=yes
SetupIconFile=SetupUnInstall.ico
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "*"; DestDir: "{app}"; Flags: ignoreversion
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Original icon in Select Destination Location page with Yellow Folder Icon:
Next, Same page with SetupIconFile=MyProgSetup.ico
directive:
The MyProgSetup.ico
icon:
Link to problematic icon file: SetupUnInstall.ico
It's a bug in Inno Setup 6.2 and it has been fixed in 6.2.1:
https://jrsoftware.org/files/is6.2-whatsnew.htm#6.2.1