From 2552d46210f8b779c6cd1552ddb070a68b52fc58 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Sat, 16 May 2026 11:43:54 -0400 Subject: [PATCH] fix(installer): wrap shortcut Target in 'runas /trustlevel:0x20000' The in-process ShouldDeElevate check (commit 191b2c5) didn't fire on the test box because ParticipantPID resolution against Win32_Process can return null fast enough that the check skips before the elevated explorer-spawned TeamsISO has fully booted. Belt-and-braces: ALSO wrap the shortcut Target so the runas demotion happens at shell-launch time, before TeamsISO.exe even runs. Result on the dev box: clicking the Start Menu / Desktop shortcut now lands a working medium-integrity TeamsISO with NDI discovery succeeding, regardless of explorer's elevation. Uses [SystemFolder]runas.exe (resolved by MSI at install time) and Show='minimized' to hide the brief runas console flash. --- installer/Package.wxs | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/installer/Package.wxs b/installer/Package.wxs index 46b3de9..297911c 100644 --- a/installer/Package.wxs +++ b/installer/Package.wxs @@ -113,17 +113,39 @@ + Target="[SystemFolder]runas.exe" + Arguments="/trustlevel:0x20000 "[INSTALLFOLDER]TeamsISO.exe"" + WorkingDirectory="INSTALLFOLDER" + Icon="TeamsISOIcon" + Show="minimized" /> - + Icon="TeamsISOIcon" + Show="minimized" />