summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dist-assets/windows/installer.nsh24
-rw-r--r--gui/tasks/distribution.js2
2 files changed, 21 insertions, 5 deletions
diff --git a/dist-assets/windows/installer.nsh b/dist-assets/windows/installer.nsh
index 03c5de1e98..c9ff304c0b 100644
--- a/dist-assets/windows/installer.nsh
+++ b/dist-assets/windows/installer.nsh
@@ -44,6 +44,10 @@
# Windows error codes
!define ERROR_SERVICE_DEPENDENCY_DELETED 1075
+# Override electron-builder generated application settings key.
+# electron-builder uses a GUID here rather than the application name.
+!define INSTALL_REGISTRY_KEY "Software\${PRODUCT_NAME}"
+
#
# BreakInstallation
#
@@ -467,21 +471,33 @@
!macro customInit
Push $0
-
- registry::MoveKey "HKLM\SOFTWARE\8fa2c331-e09e-5709-bc74-c59df61f0c7e" "HKLM\SOFTWARE\Mullvad VPN"
+
+ # Application settings key
+ # Migrate 2018.(x<6) to current
+ registry::MoveKey "HKLM\SOFTWARE\8fa2c331-e09e-5709-bc74-c59df61f0c7e" "HKLM\SOFTWARE\${PRODUCT_NAME}"
+
+ # Discard return value
+ Pop $0
+ Pop $0
+
+ # Application uninstall key
+ # Migrate 2018.(x<6) to current
+ registry::MoveKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8fa2c331-e09e-5709-bc74-c59df61f0c7e" "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{${APP_GUID}}"
# Discard return value
Pop $0
Pop $0
- registry::MoveKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\8fa2c331-e09e-5709-bc74-c59df61f0c7e" "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mullvad VPN"
+ # Application uninstall key
+ # Migrate 2018.6 through 2019.7 to current
+ registry::MoveKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mullvad VPN" "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{${APP_GUID}}"
# Discard return value
Pop $0
Pop $0
Pop $0
-
+
!macroend
#
diff --git a/gui/tasks/distribution.js b/gui/tasks/distribution.js
index 5e08455b45..16bdd4f811 100644
--- a/gui/tasks/distribution.js
+++ b/gui/tasks/distribution.js
@@ -60,7 +60,7 @@ const config = {
},
nsis: {
- guid: 'Mullvad VPN',
+ guid: '2A356FD4-03B7-4F45-99B4-737BE580DC82',
oneClick: false,
perMachine: true,
allowElevation: true,