Question inno setup exe icon is ok but desktop shortcut is not having icon

wasimking

Member
Joined
May 21, 2012
Messages
5
Programming Experience
1-3
hello i am using inno setup to create custom installer for my program(using inno setup wizard)
but when my exe is ready and i install it on my machine the desktop shortcut is created but it have no icon,,,,exe file,programm folder in startmenu,uninstaller entry all have icon only desktop shortcut not having icon
hasgdha.PNG




this is script code created by wizard




; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!


#define MyAppName "style chat"
#define MyAppVersion "1.1.0"
#define MyAppPublisher "galaxy softech solutions"
#define MyAppURL "https://sites.google.com/site/stylechatchatting2/"
#define MyAppExeName "Style Chat.exe"


[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={{97DEA376-A45D-4D24-A9C7-D9CEA20553AF}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputDir=C:\Users\Wasim\Desktop
OutputBaseFilename=Style Chat
SetupIconFile=C:\Users\Wasim\Desktop\styl..tion_0852c38267352162_0001.0000_a774216a8b9780b8\monster-blue.ico
Compression=lzma
SolidCompression=yes


[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"


[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1


[Files]
Source: "C:\Users\Wasim\Desktop\styl..tion_0852c38267352162_0001.0000_a774216a8b9780b8\Style Chat.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Wasim\Desktop\styl..tion_0852c38267352162_0001.0000_a774216a8b9780b8\Style Chat.cdf-ms"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Wasim\Desktop\styl..tion_0852c38267352162_0001.0000_a774216a8b9780b8\Style Chat.exe.cdf-ms"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Wasim\Desktop\styl..tion_0852c38267352162_0001.0000_a774216a8b9780b8\Style Chat.exe.manifest"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Wasim\Desktop\styl..tion_0852c38267352162_0001.0000_a774216a8b9780b8\Style Chat.manifest"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files


[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:programOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon


[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
 
Back
Top