From 693a619659fe3740747a8c639acc56d55b32485b Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Wed, 18 Nov 2026 19:39:10 +0800 Subject: [PATCH] fix(windows): resolve notification helper assemblies explicitly --- packaging/windows/machine-install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/windows/machine-install.ps1 b/packaging/windows/machine-install.ps1 index 2e2ba32..1c53508 100644 --- a/packaging/windows/machine-install.ps1 +++ b/packaging/windows/machine-install.ps1 @@ -146,7 +146,8 @@ function Set-MachineState { function Set-ShortcutAppUserModelId([string]$Path, [string]$ApplicationId) { if (-not ('GPConnect.Installer.ShortcutIdentity' -as [type])) { - Add-Type @' + # NSIS also extracts a native System.dll; reference the loaded .NET assembly explicitly. + Add-Type -ReferencedAssemblies ([System.Uri].Assembly.Location) -TypeDefinition @' using System; using System.Runtime.InteropServices;