File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
DisableSearchBoxSuggestions Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11# DSBS Changelog
2+ - v1.2
3+ Bug fix (maybe)
4+
25- v1.1
36Added Command Line Arguments
47Bug fixes
Original file line number Diff line number Diff line change 11using System ;
22using System . Diagnostics ;
3- using System . IO ;
3+ using System . Reflection ;
44using System . Security . Principal ;
55using System . Threading ;
66using 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 }
Original file line number Diff line number Diff line change 11using System . Reflection ;
2- using System . Runtime . CompilerServices ;
32using System . Runtime . InteropServices ;
43
54// General Information about an assembly is controlled through the following
You can’t perform that action at this time.
0 commit comments