From 79c7f820e458dd9eeaa777624f296104775355a3 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Tue, 10 Jan 2023 14:56:30 +0100 Subject: [PATCH] Fix file association At least an attempt to. Contribute to CURA-9157 --- packaging/msi/UltiMaker-Cura.wxs.jinja | 66 +++++++++++++++++++------- packaging/msi/create_windows_msi.py | 2 + 2 files changed, 50 insertions(+), 18 deletions(-) diff --git a/packaging/msi/UltiMaker-Cura.wxs.jinja b/packaging/msi/UltiMaker-Cura.wxs.jinja index 0bc2593398..b6a44ac0b3 100644 --- a/packaging/msi/UltiMaker-Cura.wxs.jinja +++ b/packaging/msi/UltiMaker-Cura.wxs.jinja @@ -88,30 +88,60 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/msi/create_windows_msi.py b/packaging/msi/create_windows_msi.py index a13238f836..1952584c54 100644 --- a/packaging/msi/create_windows_msi.py +++ b/packaging/msi/create_windows_msi.py @@ -96,6 +96,8 @@ def build(dist_path: Path, filename: Path): link_command = ["light", f"{build_loc.joinpath(wxs_loc.name).with_suffix('.wixobj')}", f"{build_loc.joinpath(heat_loc.name).with_suffix('.wixobj')}", f"{build_loc.joinpath(manageoldcuradlg_loc.name).with_suffix('.wixobj')}", + "-sw1076", + "-dcl:high", "-ext", "WixUIExtension", "-ext", "WixFirewallExtension", "-out", f"{work_loc.joinpath(filename.name)}"]