diff options
author | 2019-06-12 16:30:34 +0200 | |
---|---|---|
committer | 2019-06-12 16:40:33 +0200 | |
commit | 09d42461a071d0cae9eeb417264b1260883f96de (patch) | |
tree | 320acd8804f412fc359f70b27aaeaa1511b66994 /installer/customactions.js | |
parent | mod: bump wireguard-go (diff) | |
download | wireguard-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.js | 4 |
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); } |