View Single Post
  #6  
Old 23-09-2024, 08:58
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,337 Times in 2,839 Posts
KaktoR is on a distinguished road
You could add something like this if you want to change subfolder name in just one line of script instead of several lines

Code:
#define Subfolder "System\"

[Setup]
.........


[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#Subfolder}{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#Subfolder}{#MyAppExeName}"; Tasks: desktopicon
__________________
Haters gonna hate
Reply With Quote