mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-26 16:36:14 -05:00
fix(windows): resolve notification helper assemblies explicitly
This commit is contained in:
1 file changed
+2
-1
@@ -146,7 +146,8 @@ function Set-MachineState {
|
|||||||
|
|
||||||
function Set-ShortcutAppUserModelId([string]$Path, [string]$ApplicationId) {
|
function Set-ShortcutAppUserModelId([string]$Path, [string]$ApplicationId) {
|
||||||
if (-not ('GPConnect.Installer.ShortcutIdentity' -as [type])) {
|
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;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user