From eaf409d6d3521db2d65c55bcdb60f276bfca3779 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk Date: Wed, 13 Dec 2023 15:16:40 -0500 Subject: [PATCH] msi-installer: reformat xml Switches formatter to one not dependant on JDK - https://github.com/DotJoshJohnson/vscode-xml - { "xmlTools.xmlFormatterImplementation": "v2", "xmlTools.splitAttributesOnFormat": true, } Gitlab: #1453 Gitlab: #1865 Change-Id: I82e65d3097ac366f7873ac4c0e1d5beed3ee486e --- JamiInstaller/JamiInstaller.wax | 3 +- JamiInstaller/Localization.wxl | 12 +- JamiInstaller/Product.wxs | 295 +++++++++++++++++++++++--------- 3 files changed, 224 insertions(+), 86 deletions(-) diff --git a/JamiInstaller/JamiInstaller.wax b/JamiInstaller/JamiInstaller.wax index a3b03657..060f03ee 100644 --- a/JamiInstaller/JamiInstaller.wax +++ b/JamiInstaller/JamiInstaller.wax @@ -1,5 +1,6 @@ - + diff --git a/JamiInstaller/Localization.wxl b/JamiInstaller/Localization.wxl index a649d175..ede934f0 100644 --- a/JamiInstaller/Localization.wxl +++ b/JamiInstaller/Localization.wxl @@ -2,6 +2,14 @@ By installing this software you agree to the terms in the license agreement - - + + diff --git a/JamiInstaller/Product.wxs b/JamiInstaller/Product.wxs index bd947eb8..16cfa45a 100644 --- a/JamiInstaller/Product.wxs +++ b/JamiInstaller/Product.wxs @@ -1,25 +1,44 @@ - - + + - - + + - + - - - + + + - + - - + + @@ -29,118 +48,187 @@ - + - + - + NOT Installed AND NOT WIX_UPGRADE_DETECTED AND NOT WIX_DOWNGRADE_DETECTED - + WIX_UPGRADE_DETECTED AND NOT (REMOVE="ALL") - - (REMOVE="ALL") AND UPGRADINGPRODUCTCODE + (REMOVE="ALL") AND UPGRADINGPRODUCTCODE - + Installed AND (REMOVE="ALL") AND NOT (WIX_UPGRADE_DETECTED OR UPGRADINGPRODUCTCODE) - + Installed AND NOT Upgrading AND NOT Uninstalling AND NOT UPGRADINGPRODUCTCODE - APPLICATIONFOLDER="" - + APPLICATIONFOLDER="" + - - - - + + + + + Directory="APPLICATIONFOLDER" + ExeCommand="cmd /c "del vc_redist.x64.exe; del uninstall.exe; del WinSparkle.dll;"" + Execute="deferred" + Return="ignore" + HideTarget="no" + Impersonate="no"/> + Value='"[APPLICATIONFOLDER]/$(var.ExeName).exe" --term'/> + BinaryKey="WixCA" + DllEntry="CAQuietExec" + Execute="immediate" + Return="ignore"/> - + - + - + - + + Directory="APPLICATIONFOLDER"> + Guid="*"> + KeyPath="yes" + Source="$(var.ReleaseDir)\$(var.ExeName).exe" /> - - - - + + + + FirstInstall - - - - + + + + - - + + - - - - + + + + - + - + @@ -149,47 +237,88 @@ - + - + - 1 - 1 - 1 - 1 - 1 + 1 + 1 + 1 + 1 + 1 - WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed + WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed - NOT AbortInstall = 1 - + NOT AbortInstall = 1 + - - - WIXNONUILAUNCH - + + + WIXNONUILAUNCH + - - + + - - + + - - - - + + + + - +