File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/electron-builder/templates/nsis Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,12 @@ StrCpy $appExe "$INSTDIR\${APP_EXECUTABLE_FILENAME}"
166
166
# create shortcuts in the start menu and on the desktop
167
167
# shortcut for uninstall is bad cause user can choose this by mistake during search, so, we don't add it
168
168
CreateShortCut " $startMenuLink" " $appExe" " " " $appExe" 0 " " " " " ${APP_DESCRIPTION}"
169
- CreateShortCut " $desktopLink" " $appExe" " " " $appExe" 0 " " " " " ${APP_DESCRIPTION}"
169
+
170
+ ${GetParameters} $R0
171
+ ${GetOptions} $R0 " --no-desktop-shortcut" $R1
172
+ ${If} ${Errors}
173
+ CreateShortCut " $desktopLink" " $appExe" " " " $appExe" 0 " " " " " ${APP_DESCRIPTION}"
174
+ ${EndIf}
170
175
171
176
WinShell::SetLnkAUMI " $startMenuLink" " ${APP_ID}"
172
177
WinShell::SetLnkAUMI " $desktopLink" " ${APP_ID}"
You can’t perform that action at this time.
0 commit comments