diff --git a/templates/nsis/installSection.nsh b/templates/nsis/installSection.nsh index d75c1c70bdb..e7fbc4c128d 100644 --- a/templates/nsis/installSection.nsh +++ b/templates/nsis/installSection.nsh @@ -75,12 +75,12 @@ SetCompress "${COMPRESS}" File "/oname=${UNINSTALL_FILENAME}" "${UNINSTALLER_OUT_FILE}" -!insertmacro registryAddInstallInfo - StrCpy $startMenuLink "$SMPROGRAMS\${PRODUCT_FILENAME}.lnk" StrCpy $desktopLink "$DESKTOP\${PRODUCT_FILENAME}.lnk" StrCpy $appExe "$INSTDIR\${APP_EXECUTABLE_FILENAME}" +!insertmacro registryAddInstallInfo + # create shortcuts in the start menu and on the desktop # shortcut for uninstall is bad cause user can choose this by mistake during search, so, we don't add it CreateShortCut "$startMenuLink" "$appExe" "" "$appExe" 0 "" "" "${APP_DESCRIPTION}"