summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2018-08-06 17:54:35 +0200
committerOdd Stranne <odd@mullvad.net>2018-08-06 17:54:35 +0200
commit83ae95e38026c16703a50a78966d583280010f3d (patch)
tree996c63111ba657ee3b6d9fa1460595c1fc84e5d5
parentd70442516120eedb4df51419317d20caef1f1fdd (diff)
parent0daf795a6a08e7c9dcb7b1f8859c1ac33de0852b (diff)
downloadmullvadvpn-83ae95e38026c16703a50a78966d583280010f3d.tar.xz
mullvadvpn-83ae95e38026c16703a50a78966d583280010f3d.zip
Merge branch 'undo-installer-roaming'
-rw-r--r--dist-assets/windows/installer.nsh10
1 files changed, 10 insertions, 0 deletions
diff --git a/dist-assets/windows/installer.nsh b/dist-assets/windows/installer.nsh
index ba66c6650f..6e1a50873d 100644
--- a/dist-assets/windows/installer.nsh
+++ b/dist-assets/windows/installer.nsh
@@ -240,6 +240,16 @@
Push $R0
+ #
+ # The electron-builder NSIS logic, that runs before 'customInstall' is activated,
+ # makes a copy of the installer file:
+ # C:\Users\%CURRENTUSER%\AppData\Roaming\${PRODUCT_NAME}\__installer.exe
+ #
+ # Let's undo this and remove the entire "Mullvad" folder under "Roaming".
+ #
+ SetShellVarContext current
+ RMDir /r "$APPDATA\${PRODUCT_NAME}"
+
${ExtractDriver}
${InstallDriver}