diff options
author | Simon Rozman <simon@rozman.si> | 2019-08-08 09:31:42 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-08-09 11:56:01 +0200 |
commit | 87e722635423e11c68e93814f70fa4dfd9332e1e (patch) | |
tree | 448050f47add410ef7a75e39f676af910b915c87 /installer/wireguard.wxs | |
parent | installer: unify WIREGUARD_-specific WiX variables (diff) | |
download | wireguard-windows-87e722635423e11c68e93814f70fa4dfd9332e1e.tar.xz wireguard-windows-87e722635423e11c68e93814f70fa4dfd9332e1e.zip |
installer: port custom actions from JScript to C
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'installer/wireguard.wxs')
-rw-r--r-- | installer/wireguard.wxs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/wireguard.wxs b/installer/wireguard.wxs index dfd12ac5..492422dd 100644 --- a/installer/wireguard.wxs +++ b/installer/wireguard.wxs @@ -36,7 +36,7 @@ <MediaTemplate EmbedCab="yes" CompressionLevel="high" /> <Icon Id="wireguard.ico" SourceFile="..\ui\icon\wireguard.ico" /> - <Binary Id="customactions.js" SourceFile="customactions.js" /> + <Binary Id="customactions.dll" SourceFile="$(var.WIREGUARD_PLATFORM)\customactions.dll" /> <Property Id="ARPPRODUCTICON" Value="wireguard.ico" /> <Property Id="ARPURLINFOABOUT" Value="https://www.wireguard.com/" /> @@ -122,7 +122,7 @@ <!-- Evaluate WireGuard services and populate ServiceControl table --> - <CustomAction Id="EvaluateWireGuardServices" BinaryKey="customactions.js" JScriptCall="EvaluateWireGuardServices" /> + <CustomAction Id="EvaluateWireGuardServices" BinaryKey="customactions.dll" DllEntry="EvaluateWireGuardServices" /> <InstallExecuteSequence> <Custom Action="EvaluateWireGuardServices" After="FindRelatedProducts" /> </InstallExecuteSequence> @@ -130,7 +130,7 @@ <!-- Clear out our config folder on uninstall --> - <CustomAction Id="RemoveConfigFolder" BinaryKey="customactions.js" JScriptCall="RemoveConfigFolder" Execute="deferred" Impersonate="no" /> + <CustomAction Id="RemoveConfigFolder" BinaryKey="customactions.dll" DllEntry="RemoveConfigFolder" Execute="deferred" Impersonate="no" /> <InstallExecuteSequence> <Custom Action="RemoveConfigFolder" After="DeleteServices">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom> </InstallExecuteSequence> |