Changed: shell execute processes as default + help URL in resource

This commit is contained in:
Ray 2021-11-07 18:47:56 +00:00
parent 4e0e028bfb
commit 614f0fc613
4 changed files with 19 additions and 2 deletions

View File

@ -60,6 +60,15 @@ namespace FizzyLauncher {
}
}
/// <summary>
/// Looks up a localized string similar to https://www.hiimray.co.uk/software-fizzy-launcher.
/// </summary>
internal static string AppHelpURL {
get {
return ResourceManager.GetString("AppHelpURL", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View File

@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AppHelpURL" xml:space="preserve">
<value>https://www.hiimray.co.uk/software-fizzy-launcher</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="folder_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\folder_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

View File

@ -4,6 +4,7 @@ using RyzStudio.Windows.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
@ -674,7 +675,11 @@ namespace FizzyLauncher
{
try
{
System.Diagnostics.Process.Start("https://www.hiimray.co.uk/software-fizzy-launcher");
System.Diagnostics.Process.Start(new ProcessStartInfo()
{
FileName = AppResource.AppHelpURL,
UseShellExecute = true
});
}
catch
{

View File

@ -360,6 +360,7 @@ namespace FizzyLauncher.Windows.Forms
ProcessStartInfo p = new ProcessStartInfo();
p.FileName = model.CleanProcessFilename;
p.WindowStyle = model.ProcessWindowStyle;
p.UseShellExecute = true;
if (!string.IsNullOrWhiteSpace(model.CleanProcessArgument))
{
@ -373,7 +374,6 @@ namespace FizzyLauncher.Windows.Forms
if (model.ProcessAsAdmin)
{
p.UseShellExecute = true;
p.Verb = "runas";
}