Skip to content

Commit

Permalink
Add option to skip Bing results when searching in the Start menu or t…
Browse files Browse the repository at this point in the history
…he search box

#118
  • Loading branch information
cschneegans committed Dec 5, 2024
1 parent f2ceb5e commit 263a4b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public record class Configuration(
bool LaunchToThisPC,
bool DisableWindowsUpdate,
bool DisablePointerPrecision,
bool DisableBingResults,
TaskbarSearchMode TaskbarSearch,
IStartPinsSettings StartPinsSettings,
IStartTilesSettings StartTilesSettings,
Expand Down Expand Up @@ -397,6 +398,7 @@ CompactOsModes CompactOsMode
LaunchToThisPC: false,
DisableWindowsUpdate: false,
DisablePointerPrecision: false,
DisableBingResults: false,
TaskbarSearch: TaskbarSearchMode.Box,
StartPinsSettings: new DefaultStartPinsSettings(),
StartTilesSettings: new DefaultStartTilesSettings(),
Expand Down
6 changes: 6 additions & 0 deletions modifier/Optimizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -482,5 +482,11 @@ void SetStartTiles(string xml)
""");
}
}
{
if (Configuration.DisableBingResults)
{
DefaultUserScript.Append(@"reg.exe add ""HKU\DefaultUser\Software\Policies\Microsoft\Windows\Explorer"" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f;");

This comment has been minimized.

Copy link
@Hrxn

Hrxn Dec 6, 2024

HKU -> HKCU

This comment has been minimized.

Copy link
@cschneegans

cschneegans Dec 7, 2024

Author Owner

That command is correct – the goal is to modify the default user's registry hive (which will be mounted to the HKU\DefaultUser key).

}
}
}
}

0 comments on commit 263a4b5

Please sign in to comment.