diff --git a/packages/electron-builder/templates/nsis/installSection.nsh b/packages/electron-builder/templates/nsis/installSection.nsh index bea7a87e8b4..61a1752f001 100644 --- a/packages/electron-builder/templates/nsis/installSection.nsh +++ b/packages/electron-builder/templates/nsis/installSection.nsh @@ -151,9 +151,8 @@ SetOutPath $INSTDIR File "/oname=${UNINSTALL_FILENAME}" "${UNINSTALLER_OUT_FILE}" -!insertmacro registryAddInstallInfo - StrCpy $appExe "$INSTDIR\${APP_EXECUTABLE_FILENAME}" +!insertmacro registryAddInstallInfo !insertmacro setLinkVars