Change: Update WiX schema namespace

Also rename `root_el` to `wix_el`.

WiX version 5 uses the same namespace.
This commit is contained in:
JKarasti 2024-09-23 20:18:58 +03:00 committed by Alex Pyrgiotis
parent adddb1ecb7
commit f349e16523
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -158,9 +158,10 @@ def main():
) )
) )
root_el = ET.Element("Wix", xmlns="http://schemas.microsoft.com/wix/2006/wi") # Add the Wix root element
wix_el = ET.Element("Wix", xmlns="http://wixtoolset.org/schemas/v4/wxs")
product_el = ET.SubElement( product_el = ET.SubElement(
root_el, wix_el,
"Product", "Product",
Name="Dangerzone", Name="Dangerzone",
Manufacturer="Freedom of the Press Foundation", Manufacturer="Freedom of the Press Foundation",
@ -236,8 +237,8 @@ def main():
print(f'<?define ProductVersion = "{version}"?>') print(f'<?define ProductVersion = "{version}"?>')
print('<?define ProductUpgradeCode = "12b9695c-965b-4be0-bc33-21274e809576"?>') print('<?define ProductUpgradeCode = "12b9695c-965b-4be0-bc33-21274e809576"?>')
ET.indent(root_el, space=" ") ET.indent(wix_el, space=" ")
print(ET.tostring(root_el).decode()) print(ET.tostring(wix_el).decode())
if __name__ == "__main__": if __name__ == "__main__":