From 6199f1b02505d98d9d305bfafdc26b891c6e3018 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Thu, 11 Feb 2021 00:18:28 +0530 Subject: [PATCH] Allow changing installation directory on windows --- build/win/installer.nsh | 4 ++++ electron-builder.json | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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": {