aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/installer/customactions.js
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-12 16:30:34 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-12 16:40:33 +0200
commit09d42461a071d0cae9eeb417264b1260883f96de (patch)
tree320acd8804f412fc359f70b27aaeaa1511b66994 /installer/customactions.js
parentmod: bump wireguard-go (diff)
downloadwireguard-windows-jd/programdata.tar.xz
wireguard-windows-jd/programdata.zip
conf: move to C:\ProgramDatajd/programdata
It's not deleted after OS upgrades.
Diffstat (limited to 'installer/customactions.js')
-rw-r--r--installer/customactions.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/installer/customactions.js b/installer/customactions.js
index a7ebc95d..30854ee7 100644
--- a/installer/customactions.js
+++ b/installer/customactions.js
@@ -93,9 +93,7 @@ function EvaluateWireGuardServices() {
function RemoveConfigFolder() {
try {
- var path = wsh.RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\S-1-5-18\\ProfileImagePath");
- path = wsh.ExpandEnvironmentStrings(path.toString());
- fso.DeleteFolder(fso.BuildPath(path, "AppData\\Local\\WireGuard"), true);
+ fso.DeleteFolder(fso.BuildPath(Session.Property("CommonAppDataFolder"), "WireGuard"), true);
} catch(e) {
logMessage("Failed to remove configuration on uninstall: " + e.message);
}