Skip to content

Commit

Permalink
feat(web search): reinstall Bing provider
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jul 16, 2024
1 parent 5020d14 commit c915919
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /hide search-permissions
taskkill /f /im explorer.exe
taskkill /f /im SearchHost.exe
start explorer.exe
powershell -NoP -NonI "Get-AppxPackage -AllUsers Microsoft.BingSearch* | Remove-AppxPackage -AllUsers"
) > nul 2>&1

echo]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ fltmc > nul 2>&1 || (
exit /b
)

echo]
echo Enabling Web Search ^& Search Highlights...
call "%windir%\AtlasModules\Scripts\wingetCheck.cmd" /nodashes
if %errorlevel% neq 0 exit /b 1

echo Enabling Web Search ^& Search Highlights...
call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide search-permissions /silent

(
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /f
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SearchSettings" /v "IsAADCloudSearchEnabled" /f
Expand All @@ -33,8 +33,12 @@ call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide search-permission
start explorer.exe
) > nul 2>&1

:: Enable search indexing to prevent a visual bug
for /f "tokens=6 delims=[.] " %%a in ('ver') do (if %%a GEQ 22000 sc query wsearch | find "STOPPED" > nul && call :searchIndexBug)

:: Install the Bing search provider
winget install -e --id 9NZBF4GT040C --uninstall-previous -h --accept-source-agreements --accept-package-agreements --force --disable-interactivity > nul

echo]
echo Finished, you should be able to use Web Search and Search Highlights.
echo Press any key to exit...
Expand Down

0 comments on commit c915919

Please sign in to comment.