diff options
author | Simon Rozman <simon@rozman.si> | 2020-11-10 10:24:02 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-13 14:42:54 +0100 |
commit | 9b12d13c68eb95049cddf8abf24bba0349e8cfe6 (patch) | |
tree | 5303e27d733b08c150b812b55b7062533f8577a9 /installer/wireguard.wxs | |
parent | build: sign ARM and ARM64 binaries (diff) | |
download | wireguard-windows-9b12d13c68eb95049cddf8abf24bba0349e8cfe6.tar.xz wireguard-windows-9b12d13c68eb95049cddf8abf24bba0349e8cfe6.zip |
installer: clean-up adapters and Wintun driver on uninstall
Signed-off-by: Simon Rozman <simon@rozman.si>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'installer/wireguard.wxs')
-rw-r--r-- | installer/wireguard.wxs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/installer/wireguard.wxs b/installer/wireguard.wxs index 56d00163..8b18189f 100644 --- a/installer/wireguard.wxs +++ b/installer/wireguard.wxs @@ -100,11 +100,27 @@ </InstallExecuteSequence> <!-- + Evaluate WireGuard components + --> + <CustomAction Id="EvaluateWireGuardComponents" BinaryKey="customactions.dll" DllEntry="EvaluateWireGuardComponents" /> + <InstallExecuteSequence> + <Custom Action="EvaluateWireGuardComponents" After="ProcessComponents" /> + </InstallExecuteSequence> + + <!-- Clear out our config folder on uninstall --> <CustomAction Id="RemoveConfigFolder" BinaryKey="customactions.dll" DllEntry="RemoveConfigFolder" Execute="deferred" Impersonate="no" /> <InstallExecuteSequence> - <Custom Action="RemoveConfigFolder" After="DeleteServices">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom> + <Custom Action="RemoveConfigFolder" After="DeleteServices" /> + </InstallExecuteSequence> + + <!-- + Clear out our adapters on uninstall + --> + <CustomAction Id="RemoveAdapters" BinaryKey="customactions.dll" DllEntry="RemoveAdapters" Execute="deferred" Impersonate="no" /> + <InstallExecuteSequence> + <Custom Action="RemoveAdapters" Before="RemoveFiles" /> </InstallExecuteSequence> <!-- |