I need that in the installer window when installing on a computer, in the additional software parameters, the item to install the server was displayed, and if the user ticked the box (the server would be installed, it would appear as a launch shortcut on the desktop.
And if you do not tick, then only the icon of the main game on the desktop is installed.
It seems to me that this function is located in [Task]
Since after adding this line:

 Name: "desktopicon"; Description: "Установить сервер"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked 

There was an additional menu as I need it, but how to connect it with [Icon] If the user does NOT put a check mark, I need the server icon NOT to appear on the desktop, if he puts that so that the exe file is displayed and launched as additional files in inno setup

My current code is:

 [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "desktopicon"; Description: "Установить сервер"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] Source: "D:\Inno Setup 5.5.5 Rus Portable\Inno Setup 5.5.5 Rus Portable\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion [Icons] Name: "{group}\Моя программа"; Filename: "{app}\MyProg.exe" Name: "{commondesktop}\Моя программа"; Filename: "{app}\MyProg.exe"; Tasks: desktopicon Name: "{group}\Запустить сервер"; Filename: "{app}\MyProg.exe" Name: "{commondesktop}\Запустить сервер"; Filename: "{app}\MyProg.exe"; Tasks: desktopicon 

enter image description here

  • one
    It seems to me that the server installation checkbox should be moved to the [Components] stage, and the [Tasks] stage should be skipped in the CurStepChanged method if the installation of the server has not been selected. In general, the step with the icon on the desktop, you can safely throw. - VTT
  • thank you, kiss) - Annet

0