diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Disable Web Search (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Disable Web Search (default).cmd index f83787ea7e..11f3fcb42a 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Disable Web Search (default).cmd +++ b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Disable Web Search (default).cmd @@ -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] diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Enable Web Search.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Enable Web Search.cmd index 5a3d82cc32..d0a72f2c06 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Enable Web Search.cmd +++ b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Web Search (includes Search Highlights)/Enable Web Search.cmd @@ -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 @@ -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...