I am building the installer of my application with Inno setup. But I have the problem that the installer.exe dont have any icon (uses the default) even though I specify one with SetupIconFile. Here is the full script:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "TFGplay"
#define MyAppVersion "1.0.0"
#define MyAppPublisher "TFGPlayCompany"
#define MyAppExeName "05TFGPlay-0.0.1-SNAPSHOT.jar"
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{2733F2A1-246B-4D80-8EE4-B37B2BADFD87}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
; Donde instalar x defecto
DefaultDirName={autopf}TFGPlay
DefaultGroupName={#MyAppName}
; Not show select start menu folder. We wont create a start menu folder
DisableProgramGroupPage=yes
AllowNoIcons=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
; Change this if you want the exe to install in other folder. By default it will be installed in the same folder as the script
OutputDir={#SourcePath}
; Name of the installer
OutputBaseFilename=TFGPlay-installer
; Icon for the .exe and the whole process. Descomentar si conseguimos un logo
SetupIconFile="C:UserstestDownloadsdescarga.ico"
; /questions/20792468/inno-setup-installer-icon-does-not-show-in-control-panel-or-settings.
UninstallDisplayIcon="C:UserstestDownloadsdescarga.ico"
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "spanish"; MessagesFile: "compiler:LanguagesSpanish.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
[Files]
Source: "C:UsersmiroDesktopTFGPlay*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
; falta añdir el IconFilename despues del filename
Name: "{autodesktop}{#MyAppName}"; Filename: "{app}{#MyAppExeName}"; IconFilename: "C:UserstestDownloadsdescarga.ico"; Tasks: desktopicon
[Run]
Filename: "{app}{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec postinstall skipifsilent unchecked
I have also found that if I check the properties of the installer, the icon is shown