From c83eb1ce6dbdf0c400fb8e0f4efa5b349769fdf6 Mon Sep 17 00:00:00 2001 From: Sudhir Pola Date: Fri, 10 Jul 2026 14:23:52 +0530 Subject: [PATCH 1/4] fix(windows-installer): use ProgramData config for shortcuts and startup --- installers/windows/console.nsi | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/installers/windows/console.nsi b/installers/windows/console.nsi index deb94b3..3d79025 100644 --- a/installers/windows/console.nsi +++ b/installers/windows/console.nsi @@ -329,13 +329,23 @@ Section "Console Application" SecApp SectionEnd Section "Start Menu Shortcuts" SecStartMenu + ; Use the machine-wide config seed under ProgramData. + SetShellVarContext all + StrCpy $0 "$APPDATA\device-management-toolkit\config.yml" + SetShellVarContext current + CreateDirectory "$SMPROGRAMS\Device Management Toolkit" - CreateShortcut "$SMPROGRAMS\Device Management Toolkit\Console.lnk" "$INSTDIR\console.exe" "--tray" + CreateShortcut "$SMPROGRAMS\Device Management Toolkit\Console.lnk" "$INSTDIR\console.exe" "--tray --config $\"$0$\"" CreateShortcut "$SMPROGRAMS\Device Management Toolkit\Uninstall Console.lnk" "$INSTDIR\Uninstall.exe" SectionEnd Section "Desktop Shortcut" SecDesktop - CreateShortcut "$DESKTOP\DMT Console.lnk" "$INSTDIR\console.exe" "--tray" + ; Use the machine-wide config seed under ProgramData. + SetShellVarContext all + StrCpy $0 "$APPDATA\device-management-toolkit\config.yml" + SetShellVarContext current + + CreateShortcut "$DESKTOP\DMT Console.lnk" "$INSTDIR\console.exe" "--tray --config $\"$0$\"" SectionEnd Section /o "Add to PATH" SecPath @@ -355,8 +365,13 @@ Section /o "Add to PATH" SecPath SectionEnd Section /o "Run at Startup (System Tray)" SecStartup + ; Use the machine-wide config seed under ProgramData. + SetShellVarContext all + StrCpy $0 "$APPDATA\device-management-toolkit\config.yml" + SetShellVarContext current + ; Add to HKLM Run key so it launches with --tray on login - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "DMTConsole" '"$INSTDIR\console.exe" --tray' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "DMTConsole" '"$INSTDIR\console.exe" --tray --config "$0"' ; Record that we added startup entry WriteRegStr HKLM "Software\DeviceManagementToolkit\Console" "StartupInstalled" "1" From c5d7c5466291ceb948bd7f0d5c6aa4bce9f67e12 Mon Sep 17 00:00:00 2001 From: Sudhir Pola Date: Fri, 10 Jul 2026 14:25:23 +0530 Subject: [PATCH 2/4] chore(submodule): bump console to windows-installer-fix tray fix --- services/console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/console b/services/console index 9827f18..7b98ca4 160000 --- a/services/console +++ b/services/console @@ -1 +1 @@ -Subproject commit 9827f1807d419de476e26156408f337dd3846986 +Subproject commit 7b98ca450bf00c9cd1fd745a3afd9f93440c40c2 From 2884c14b0af7ec39a50918bcdd4eb0c0ea49b280 Mon Sep 17 00:00:00 2001 From: Sudhir Pola Date: Fri, 10 Jul 2026 14:31:37 +0530 Subject: [PATCH 3/4] chore(submodule): update console after rebase to latest main --- services/console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/console b/services/console index 7b98ca4..e4859b2 160000 --- a/services/console +++ b/services/console @@ -1 +1 @@ -Subproject commit 7b98ca450bf00c9cd1fd745a3afd9f93440c40c2 +Subproject commit e4859b244b97191b4ca2a25b8f5ec3941c634bd7 From a7dd14e2fd69de947b33b9415671e0a0f6bab344 Mon Sep 17 00:00:00 2001 From: Sudhir Pola Date: Fri, 10 Jul 2026 14:37:35 +0530 Subject: [PATCH 4/4] chore(submodule): point console back to pre-rebase commit --- services/console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/console b/services/console index e4859b2..7b98ca4 160000 --- a/services/console +++ b/services/console @@ -1 +1 @@ -Subproject commit e4859b244b97191b4ca2a25b8f5ec3941c634bd7 +Subproject commit 7b98ca450bf00c9cd1fd745a3afd9f93440c40c2