basierend auf einer FAQ-Frage in der c't "UWP App per Kommandozeile starten" ergibt sich für mich folgender Prozesssierungsansatz:
a) lokaler download einer Liste von applications mittels Powershell in eine Ausgabedatei
b) parsen der Ausgabedatei nach den Werten der Schlüssel 'PackageFamilyName' und 'InstallLocation'
c) parsen der Datei: '<InstallLocation>\AppxManifest.xml' nach dem Schlüsselwert für '<Application Id='
d) concatinierte Ausgabe aller Treffer mit 'Application Id="App"'
Run,% "powershell.exe Get-AppxPackage | Out-File -FilePath " . A_ScriptDir . "\_appx.txt
C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2020.20090.1002.0_x64__8wekyb3d8bbwe\AppxManifest.xmlName : Microsoft.Windows.Photos
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 2020.20090.1002.0
PackageFullName : Microsoft.Windows.Photos_2020.20090.1002.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2020.20090.1002.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.Windows.Photos_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
Dependencies : {Microsoft.Photos.MediaEngineDLC_1.0.0.0_x64__8wekyb3d8bbwe,
Microsoft.UI.Xaml.2.3_2.32002.13001.0_x64__8wekyb3d8bbwe,
Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe,
Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe...}
IsPartiallyStaged : False
SignatureKind : Store
Status : OK
Ich gehe mal davon aus das sich der jeweilige 'Parsing'-Teil b) & c) mit RegEx fassen lässt?? Nur nicht von mir Help!!<Applications>
<Application Id="App" Executable="Microsoft.Photos.exe" EntryPoint="AppStubCS.Windows.App" ResourceGroup="AppGroup">
Nachtrag: c) geht scheints auch mit PowerShell's Get-AppxPackageManifest. JFTR.
Final lässt sich dann eine UWP-app wie folgt starten: Run,% "Explorer shell:appsFolder\Microsoft.Windows.Photos_8wekyb3d8bbwe!App"