项目文件夹

文件
wehub-resource-sync 3e779be6f3
CI / lint (push) Failing after 13m4s
CI / test (3.11, ubuntu-latest) (push) Failing after 2m4s
CI / test (3.13, ubuntu-latest) (push) Successful in 13m30s
CI / test (3.14, ubuntu-latest) (push) Successful in 17m21s
CI / test (3.12, ubuntu-latest) (push) Successful in 17m55s
CI / discover-apps-ps (push) Successful in 1m56s
CI / test (3.9, ubuntu-latest) (push) Successful in 13m17s
CI / test (3.10, ubuntu-latest) (push) Successful in 26m21s
CI / audit (push) Successful in 13m38s
Deploy site / deploy (push) Has been cancelled
CI / test (3.14, ubuntu-24.04-arm) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:37 +08:00

33 行
1.1 KiB
Plaintext

' SPDX-License-Identifier: MIT
' launch_uwp.vbs -- RemoteApp-friendly UWP launcher
'
' RemoteApp invokes a single program; this VBS is that program. wscript.exe
' has no console of its own, and WshShell.Run with intWindowStyle=0 spawns
' powershell.exe with SW_HIDE so launch_uwp.ps1 never flashes a console.
' launch_uwp.ps1 then activates the AUMID via IApplicationActivationManager
' and exits. The UWP frame becomes the visible RemoteApp window directly --
' no explorer.exe transition flash.
'
' Usage:
' wscript.exe launch_uwp.vbs <AUMID>
' RemoteApp wiring (xfreerdp):
' /app:program:wscript.exe,cmd:C:\OEM\launch_uwp.vbs <AUMID>
Option Explicit
If WScript.Arguments.Count = 0 Then
WScript.Quit 1
End If
Dim shell, aumid, cmd
Set shell = CreateObject("WScript.Shell")
aumid = WScript.Arguments(0)
cmd = "powershell.exe -NoProfile -ExecutionPolicy Bypass -File ""C:\Users\Public\winpodx\launchers\launch_uwp.ps1"" """ & aumid & """"
' 0 = SW_HIDE so the powershell.exe child also starts windowless. Don't wait
' on the call so wscript itself exits immediately and the UWP frame is the
' only window the RemoteApp client sees.
shell.Run cmd, 0, False