fix(windows): resolve notification helper assemblies explicitly

This commit is contained in:
Kevin Yue committed 2026-11-18 19:39:10 +08:00
1 parent aa5b6e4163
commit 693a619659
1 file changed
+2 -1
+2 -1
View File
@@ -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;