Fix: Make generated WiX authoring pass WixCop checks

WixCop.exe is a built in formatting tool that comes with WiX toolset v3. This fixes `wix convert` command not beins able to run
This commit is contained in:
JKarasti 2024-09-23 20:07:52 +03:00 committed by Alex Pyrgiotis
parent 3bcf5fc147
commit 8e57d81a74
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -234,10 +234,10 @@ def main():
ET.SubElement(feature_el, "ComponentRef", Id=component_id) ET.SubElement(feature_el, "ComponentRef", Id=component_id)
ET.SubElement(feature_el, "ComponentRef", Id="ApplicationShortcuts") ET.SubElement(feature_el, "ComponentRef", Id="ApplicationShortcuts")
print('<?xml version="1.0" encoding="windows-1252"?>') print('<?xml version="1.0" encoding="utf-8"?>')
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) ET.indent(root_el, space=" ")
print(ET.tostring(root_el).decode()) print(ET.tostring(root_el).decode())