Skip to content

Commit bb3f25f

Browse files
committed
v1.2
1 parent e78c8eb commit bb3f25f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# DSBS Changelog
2+
- v1.2
3+
Bug fix (maybe)
4+
25
- v1.1
36
Added Command Line Arguments
47
Bug fixes

DisableSearchBoxSuggestions/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22
using System.Diagnostics;
3-
using System.IO;
3+
using System.Reflection;
44
using System.Security.Principal;
55
using System.Threading;
66
using Microsoft.Win32;
@@ -9,7 +9,7 @@ namespace DisableSearchBoxSuggestions
99
{
1010
internal class Program
1111
{
12-
public static string version = "1.1";
12+
public static string version = "1.2";
1313
public static string githubLink = "https://github.com/KilLo445/DisableSearchBoxSuggestions";
1414
public static string changeLink = "https://github.com/KilLo445/DisableSearchBoxSuggestions/blob/main/Changelog.md";
1515

@@ -120,7 +120,7 @@ public static void DSBS()
120120
Console.WriteLine("Restarting...");
121121
Thread.Sleep(200);
122122
Process dsbs = new Process();
123-
dsbs.StartInfo.FileName = Path.Combine(Directory.GetCurrentDirectory()) + "\\" + "DisableSearchBoxSuggestions.exe";
123+
dsbs.StartInfo.FileName = Assembly.GetExecutingAssembly().CodeBase;
124124
dsbs.StartInfo.Arguments = " -dsbs";
125125
dsbs.Start();
126126
Environment.Exit(0);
@@ -218,6 +218,7 @@ public static void ExceptionMSG(Exception ex)
218218
{
219219
Console.WriteLine();
220220
Console.WriteLine("An error occured...");
221+
Console.WriteLine("Restarting the program my help.");
221222
Console.WriteLine($"{ex}");
222223
PressAnyKeyToExit();
223224
}

DisableSearchBoxSuggestions/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following

0 commit comments

Comments
 (0)