Mangle dashes as needed by WiX.

pull/11875/merge
Jussi Pakkanen 1 year ago
parent d7b25662ce
commit 9bccc96c4e
  1. 2
      packaging/createmsi.py

@ -291,7 +291,7 @@ class PackageGenerator:
}) })
for dirname in cur_node.dirs: for dirname in cur_node.dirs:
dir_id = os.path.join(current_dir, dirname).replace('\\', '_').replace('/', '_') dir_id = os.path.join(current_dir, dirname).replace('\\', '_').replace('/', '_').replace('-', '_')
dir_node = ET.SubElement(parent_xml_node, 'Directory', { dir_node = ET.SubElement(parent_xml_node, 'Directory', {
'Id': dir_id, 'Id': dir_id,
'Name': dirname, 'Name': dirname,

Loading…
Cancel
Save