Change: Convert Wix UI extension authoring to WiX Toolset v5

Due to limitations of the xml.etree.ElementTree library, add the items in the root element as a dictionary
This commit is contained in:
JKarasti 2024-09-23 21:21:00 +03:00 committed by Alex Pyrgiotis
parent abb71e0fe5
commit 4eadc30605
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -114,7 +114,13 @@ def main():
) )
# Add the Wix root element # Add the Wix root element
wix_el = ET.Element("Wix", xmlns="http://wixtoolset.org/schemas/v4/wxs") wix_el = ET.Element(
"Wix",
{
"xmlns": "http://wixtoolset.org/schemas/v4/wxs",
"xmlns:ui": "http://wixtoolset.org/schemas/v4/wxs/ui",
},
)
# Add the Package element # Add the Package element
package_el = ET.SubElement( package_el = ET.SubElement(
@ -153,12 +159,8 @@ def main():
Value="https://freedom.press", Value="https://freedom.press",
) )
ET.SubElement( ET.SubElement(
package_el, package_el, "ui:WixUI", Id="WixUI_InstallDir", InstallDirectory="INSTALLFOLDER"
"Property",
Id="WIXUI_INSTALLDIR",
Value="INSTALLFOLDER",
) )
ET.SubElement(package_el, "UIRef", Id="WixUI_InstallDir")
ET.SubElement(package_el, "UIRef", Id="WixUI_ErrorProgressText") ET.SubElement(package_el, "UIRef", Id="WixUI_ErrorProgressText")
ET.SubElement( ET.SubElement(
package_el, package_el,