diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-06-11 21:07:48 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-06-11 21:07:48 +0100 |
| commit | d4a6e0b411b72f9e14eb6caee6c91dd31b612acf (patch) | |
| tree | 750fc0eca4e50b85df82491ee129dc59e0596c20 /windows/nsis-plugins/src/cleanup/cleaningops.cpp | |
| parent | 63ebe7ac2f4602bcd1cf9439c6ba5fe177ef028e (diff) | |
| parent | 3f1a27e0581d54ec20ae40ee5ce9296626f6c578 (diff) | |
| download | mullvadvpn-d4a6e0b411b72f9e14eb6caee6c91dd31b612acf.tar.xz mullvadvpn-d4a6e0b411b72f9e14eb6caee6c91dd31b612acf.zip | |
Merge branch 'installer-remove-relay-list'
Diffstat (limited to 'windows/nsis-plugins/src/cleanup/cleaningops.cpp')
| -rw-r--r-- | windows/nsis-plugins/src/cleanup/cleaningops.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/windows/nsis-plugins/src/cleanup/cleaningops.cpp b/windows/nsis-plugins/src/cleanup/cleaningops.cpp index 3a0764d91c..dec5ec198f 100644 --- a/windows/nsis-plugins/src/cleanup/cleaningops.cpp +++ b/windows/nsis-plugins/src/cleanup/cleaningops.cpp @@ -272,4 +272,18 @@ void RemoveSettingsServiceUser() RemoveDirectoryW(std::wstring(L"\\\\?\\").append(mullvadAppData).c_str()); } +void RemoveRelayCacheServiceUser() +{ + const auto localAppData = GetSystemUserLocalAppData(); + const auto mullvadAppData = std::experimental::filesystem::path(localAppData).append(L"Mullvad VPN"); + + common::fs::ScopedNativeFileSystem nativeFileSystem; + + common::security::AddAdminToObjectDacl(mullvadAppData, SE_FILE_OBJECT); + + const auto cacheFile = std::experimental::filesystem::path(mullvadAppData).append(L"relays.json"); + + std::experimental::filesystem::remove(cacheFile); +} + } |
