Skip to content

Commit

Permalink
Added LaunchUWPApp(UwpApp) (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Aug 30, 2023
1 parent 67a05a3 commit d27b667
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PeyrSharp.Env/Sys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ public static void LaunchUWPApp(string packageFamilyName, string applicationID)
Process.Start("explorer.exe", $@"shell:appsFolder\{packageFamilyName}!{applicationID}"); // Synthax to launch UWP apps
}

/// <summary>
/// Launches an UWP application using information from a <see cref="UwpApp"/> object.
/// </summary>
/// <param name="uwpApp">The UWP application to launch.</param>
public static void LaunchUWPApp(UwpApp uwpApp)
{
string[] info = uwpApp.AppID.Split("!");
LaunchUWPApp(info[0], info[1]);
}

/// <summary>
/// Executes a program in administrator mode.
/// </summary>
Expand Down

0 comments on commit d27b667

Please sign in to comment.