From 791444cd5dd983f87696c4d16313f2d3a6af515d Mon Sep 17 00:00:00 2001 From: JKarasti Date: Fri, 6 Sep 2024 14:46:11 +0300 Subject: [PATCH] Windows installer: Allow choosing installation directory during install Switch to using `WixUI_InstallDir` dialog set in the windows installer and add the `WIXUI_INSTALLDIR` property it needs to let user choose where Dangerzone is installed. resolves #148 --- install/windows/build-wxs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install/windows/build-wxs.py b/install/windows/build-wxs.py index 0cf685e59..14aa92deb 100644 --- a/install/windows/build-wxs.py +++ b/install/windows/build-wxs.py @@ -199,7 +199,13 @@ def main(): Id="ARPURLINFOABOUT", Value="https://freedom.press", ) - ET.SubElement(product_el, "UIRef", Id="WixUI_Minimal") + ET.SubElement( + product_el, + "Property", + Id="WIXUI_INSTALLDIR", + Value="INSTALLDIR", + ) + ET.SubElement(product_el, "UIRef", Id="WixUI_InstallDir") ET.SubElement(product_el, "UIRef", Id="WixUI_ErrorProgressText") ET.SubElement( product_el,