From e4e9a1a25ad250d3875d8bb23aea0c0419e0349f Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Thu, 30 May 2024 21:28:47 +0100 Subject: [PATCH] fix(edgeCheck): deny option (#1091) --- .../AtlasModules/Scripts/edgeCheck.cmd | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/playbook/Executables/AtlasModules/Scripts/edgeCheck.cmd b/src/playbook/Executables/AtlasModules/Scripts/edgeCheck.cmd index ce2307e82e..55d7c7c1a8 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/edgeCheck.cmd +++ b/src/playbook/Executables/AtlasModules/Scripts/edgeCheck.cmd @@ -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 (