Skip to content

Commit

Permalink
Attempt to fix font install
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed Aug 12, 2024
1 parent 6286321 commit f3ad21d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 12 additions & 3 deletions Rectify11.Phase2/Helper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.VisualBasic;
using Microsoft.Win32;
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using static Rectify11.Phase2.Program;
Expand Down Expand Up @@ -103,7 +103,16 @@ public static void ImportReg(string path)
{
try
{
Interaction.Shell(Path.Combine(Variables.sys32Folder, "reg.exe") + " import " + path, AppWinStyle.Hide, true);
Process proc = new Process();
proc.StartInfo.FileName = Path.Combine(Variables.sys32Folder, "reg.exe");
proc.StartInfo.Arguments = "import \"" + path + "\"";
proc.StartInfo.CreateNoWindow = true;
proc.Start();

if (proc.ExitCode != 0)
{
Console.WriteLine(path + " failed with exit code " +proc.ExitCode);
}
}
catch (Exception ex)
{
Expand Down
1 change: 0 additions & 1 deletion Rectify11.Phase2/Rectify11.Phase2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
</ItemGroup>

<PropertyGroup>
Expand Down

0 comments on commit f3ad21d

Please sign in to comment.