diff --git a/build/win/installer.nsh b/build/win/installer.nsh index 381790b6..6f054a26 100644 --- a/build/win/installer.nsh +++ b/build/win/installer.nsh @@ -17,3 +17,7 @@ DeleteRegKey HKCU "Software\Classes\Directory\shell\Hyper" DeleteRegKey HKCU "Software\Classes\Drive\shell\Hyper" !macroend + +!macro customInstallMode + StrCpy $isForceCurrentInstall "1" +!macroend diff --git a/electron-builder.json b/electron-builder.json index 5c8766ef..abc10d86 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -54,7 +54,10 @@ "rfc3161TimeStampServer": "http://timestamp.comodoca.com" }, "nsis": { - "include": "build/win/installer.nsh" + "include": "build/win/installer.nsh", + "oneClick": false, + "perMachine": false, + "allowToChangeInstallationDirectory": true }, "mac": { "target": {