Skip to content

Commit

Permalink
fix(edgeCheck): deny option (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed May 30, 2024
1 parent 1cb3414 commit e4e9a1a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/playbook/Executables/AtlasModules/Scripts/edgeCheck.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ if "%~1"=="/webview" set ___edge=1
set "___dashes=-----------------------------------------------------------------------------------------------------"
echo %___dashes%

if %___edge%==0 (
echo Microsoft Edge is required to use this script.
if %___edge%==0 echo In the future, if you no longer want to use this feature, you can use the disable script and uninstall Edge.
choice /c:yn /n /m "Would you like to install Edge? [Y/N] "
if %errorlevel%==2 (
echo]
echo Press any key to exit...
pause > nul
exit /b
)
) else (
if %___edge% neq 0 (
echo Updating Edge WebView 2...
goto main
)

echo Microsoft Edge is required to use this script.
if %___edge%==0 echo In the future, if you no longer want to use this feature, you can use the disable script and uninstall Edge.
choice /c:yn /n /m "Would you like to install Edge? [Y/N] "
if %errorlevel%==2 (
echo]
echo Press any key to exit...
pause > nul
exit /b
)

:main
echo]
set "___ps=powershell -nop -noni -c "^& """%windir%\AtlasModules\Scripts\ScriptWrappers\RemoveEdge.ps1""" -NonInteractive -InstallWebView"
if %___edge%==0 (
Expand Down

0 comments on commit e4e9a1a

Please sign in to comment.