diff options
author | Simon Rozman <simon@rozman.si> | 2020-11-16 20:06:40 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-16 20:07:27 +0100 |
commit | 572b823dd674abb1fdb0ded3aa57f5a8600b802f (patch) | |
tree | 4bb0b2a881975cdb859a696d22dfdb8577ff3c15 /installer/wireguard.wxs | |
parent | installer: add missing thread handle close (diff) | |
download | wireguard-windows-572b823dd674abb1fdb0ded3aa57f5a8600b802f.tar.xz wireguard-windows-572b823dd674abb1fdb0ded3aa57f5a8600b802f.zip |
installer: launch GUI before attempting a reinstall
With the recently introduced wireguard-installer.exe an issue in MSI
internal caching appeared. With the temporary MSI file used at install
time gone, the MSI was unable to load our custom actions in the
reinstall attempt.
Rather than attempting to reinstall the product and fail, the MSI was
upgraded to launch GUI early in the reinstall attempt and cancel the
execute sequence then.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | installer/wireguard.wxs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/installer/wireguard.wxs b/installer/wireguard.wxs index 71445560..2757c882 100644 --- a/installer/wireguard.wxs +++ b/installer/wireguard.wxs @@ -108,6 +108,14 @@ </InstallExecuteSequence> <!-- + Launch wireguard.exe on product reconfiguration (starting same MSI again) + --> + <CustomAction Id="LaunchApplicationAndAbort" BinaryKey="customactions.dll" DllEntry="LaunchApplicationAndAbort" /> + <InstallExecuteSequence> + <Custom Action="LaunchApplicationAndAbort" After="CostFinalize">ProductState=5 AND NOT REMOVE AND NOT DO_NOT_LAUNCH</Custom> + </InstallExecuteSequence> + + <!-- Evaluate WireGuard services and populate ServiceControl table --> <CustomAction Id="EvaluateWireGuardServices" BinaryKey="customactions.dll" DllEntry="EvaluateWireGuardServices" /> @@ -154,13 +162,5 @@ <InstallExecuteSequence> <Custom Action="LaunchApplication" Before="InstallFinalize">(&WireGuardFeature = 3) AND NOT DO_NOT_LAUNCH</Custom> </InstallExecuteSequence> - - <!-- - Launch wireguard.exe on product reconfiguration (starting same MSI again) - --> - <CustomAction Id="LaunchApplicationAsOrdinaryUser" HideTarget="yes" FileKey="wireguard.exe" ExeCommand="" Return="asyncNoWait" /> - <InstallExecuteSequence> - <Custom Action="LaunchApplicationAsOrdinaryUser" After="InstallFinalize">(&WireGuardFeature = -1) AND (!WireGuardFeature = 3) AND NOT DO_NOT_LAUNCH</Custom> - </InstallExecuteSequence> </Product> </Wix> |