diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-06 22:44:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-07 08:26:22 +0200 |
commit | baf30544c874a0d86901d93526e839ca947377b3 (patch) | |
tree | 71d0a5d673be863605bff25c444d029bb78784c8 /installer/wireguard.wxs | |
parent | ringlogger: export R/O handle for UI process (diff) | |
download | wireguard-windows-baf30544c874a0d86901d93526e839ca947377b3.tar.xz wireguard-windows-baf30544c874a0d86901d93526e839ca947377b3.zip |
installer: delete config file with custom action
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'installer/wireguard.wxs')
-rw-r--r-- | installer/wireguard.wxs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/installer/wireguard.wxs b/installer/wireguard.wxs index 986576d3..e92177c6 100644 --- a/installer/wireguard.wxs +++ b/installer/wireguard.wxs @@ -27,7 +27,7 @@ <MediaTemplate EmbedCab="yes" CompressionLevel="high"/> <Icon Id="wireguard.ico" SourceFile="..\ui\icon\wireguard.ico"/> - <Binary Id="serviceevaluation.js" SourceFile="serviceevaluation.js"/> + <Binary Id="customactions.js" SourceFile="customactions.js"/> <Property Id="ARPPRODUCTICON" Value="wireguard.ico"/> <Property Id="ARPURLINFOABOUT" Value="https://www.wireguard.com/"/> @@ -101,12 +101,20 @@ <!-- Evaluate WireGuard services and populate ServiceControl table --> - <CustomAction Id="EvaluateWireGuardServices" BinaryKey="serviceevaluation.js" JScriptCall="EvaluateWireGuardServices"/> + <CustomAction Id="EvaluateWireGuardServices" BinaryKey="customactions.js" JScriptCall="EvaluateWireGuardServices"/> <InstallExecuteSequence> <Custom Action="EvaluateWireGuardServices" After="FindRelatedProducts"/> </InstallExecuteSequence> <!-- + Clear out our config folder on uninstall + --> + <CustomAction Id="RemoveConfigFolder" BinaryKey="customactions.js" JScriptCall="RemoveConfigFolder" Execute="deferred" Impersonate="no"/> + <InstallExecuteSequence> + <Custom Action="RemoveConfigFolder" After="DeleteServices">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom> + </InstallExecuteSequence> + + <!-- Launch wireguard.exe after setup complete --> <CustomAction Id="LaunchApplication" HideTarget="yes" Impersonate="no" Execute="deferred" FileKey="wireguard.exe" ExeCommand="" Return="asyncNoWait"/> @@ -114,8 +122,5 @@ <!-- TODO: this should not launch when msiexec is called with whatever flag means it shouldn't launch. --> <Custom Action="LaunchApplication" After="PublishProduct">NOT Installed</Custom> </InstallExecuteSequence> - - <!-- TODO: On uninstall remove system32\config\wireguard. --> - <!-- TODO: On install and uninstall, kill services. --> </Product> </Wix> |