From e24447a70d78bd13248c7428edf893ecdbd11a40 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 07:30:49 +0000 Subject: [PATCH] feat(installer): register Open CAD Studio as a default-app candidate for .dwg/.dxf Adds a DefaultPrograms component publishing Capabilities and a RegisteredApplications entry under HKLM. This makes Open CAD Studio appear in Settings > Default Apps and the shell "Open with" list, so users can set it as the default handler for .dwg and .dxf files. Modern Windows guards the actual default behind a per-user UserChoice hash that an installer cannot forge, so this is the supported path to becoming the default rather than silently overwriting the association. https://claude.ai/code/session_01DFVSKgViFaxEjZD2KsTdtt --- packaging/windows/main.wxs | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/packaging/windows/main.wxs b/packaging/windows/main.wxs index 5487c2b7..9183c8bd 100644 --- a/packaging/windows/main.wxs +++ b/packaging/windows/main.wxs @@ -14,6 +14,9 @@ * File associations for .dwg and .dxf via a single ProgID; both route through `OpenCADStudio.exe "%1"` so the OS hands the file path to the app as argv[1] (consumed in OpenCADStudio::boot). + * Default Programs registration (Capabilities + RegisteredApplications) + so the app shows up in Settings > Default Apps and can be set as the + default handler for .dwg / .dxf. * Standard Add/Remove Programs entry with icon. * MajorUpgrade — installing a newer MSI replaces the old version. --> @@ -98,6 +101,50 @@ + + + + + + + + + @@ -119,6 +166,7 @@ +