Добавить значок рабочего стола в установщик inno setup для приложения C# winform
Привет я создаю установочный файл моего настольного приложения c# с помощью inno setup теперь я хочу, когда я устанавливаю эту установку на любой компьютер, то он автоматически создает значок рабочего стола для моего приложения, пожалуйста, помогите мне, как я могу это сделать
это моя сумочка для установки inno
Что я уже пробовал:
; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "EPOS" #define MyAppVersion "1.0" #define MyAppPublisher "EWEB Solution" #define MyAppURL "http://www.example.com/" #define MyAppExeName "RetailShop_POS.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={{366A6B24-7328-45E9-8A8F-A5C75DABAF68} AppName={#MyAppName} AppVersion={#MyAppVersion} ;AppVerName={#MyAppName} {#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={pf}\{#MyAppName} DefaultGroupName={#MyAppName} InfoAfterFile=C:\Users\Ali BaBa\Desktop\Supedian soft\Requirements.txt OutputDir=C:\Users\Ali BaBa\Desktop\Supedian soft\setup2 OutputBaseFilename=setup SetupIconFile=C:\Users\Ali BaBa\Desktop\icon.ico Compression=lzma SolidCompression=yes [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl" Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl" Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl" Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl" Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl" Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl" Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl" Name: "french"; MessagesFile: "compiler:Languages\French.isl" Name: "german"; MessagesFile: "compiler:Languages\German.isl" Name: "greek"; MessagesFile: "compiler:Languages\Greek.isl" Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl" Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl" Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl" Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl" Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl" Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl" Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl" Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl" Name: "scottishgaelic"; MessagesFile: "compiler:Languages\ScottishGaelic.isl" Name: "serbiancyrillic"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl" Name: "serbianlatin"; MessagesFile: "compiler:Languages\SerbianLatin.isl" Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl" Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl" Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl" Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; [Files] Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\RetailShop_POS.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\Bunifu_UI_v1.52.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.CrystalReports.Engine.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.ClientDoc.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.CommLayer.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.CommonControls.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.CommonObjectModel.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.Controllers.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.CubeDefModel.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.DataDefModel.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.DataSetConversion.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.ObjectFactory.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.Prompting.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.ReportDefModel.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportAppServer.XmlSerialize.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.ReportSource.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.Shared.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\CrystalDecisions.Windows.Forms.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\FlashControlV71.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\RetailShop_POS.exe.config"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\RetailShop_POS.pdb"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\ShockwaveFlashObjects.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\stdole.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\db\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Release\Reportss\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "C:\Users\Ali BaBa\Desktop\Supedian soft\Req fil\Local Db\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent