Forum Discussion
Simon Kennerley
Jul 22, 2019Copper Contributor
Silent and Unattended Uninstall for Edge Insider Browser?
Hi Looking for a command line to silently and unattended uninstall for the new Microsoft Edge Insider Browser as I need to create an SCCM uninstall command. The 'UninstallString' in the regis...
abbodi1406
Apr 08, 2020Steel Contributor
@echo off
reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&pause&exit)
set "u_path=%LocalAppData%\Microsoft"
set "s_path=%ProgramFiles(x86)%\Microsoft"
if /i %PROCESSOR_ARCHITECTURE%==x86 (if not defined PROCESSOR_ARCHITEW6432 (
set "s_path=%ProgramFiles%\Microsoft"
)
)
for /D %%i in ("%u_path%\Edge SxS\Application\*") do if exist "%%i\installer\setup.exe" (
start "" /w "%%i\installer\setup.exe" --uninstall --msedge-sxs --verbose-logging --force-uninstall --delete-profile
)
for /D %%i in ("%u_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --verbose-logging --force-uninstall --delete-profile
)
for /D %%i in ("%u_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --verbose-logging --force-uninstall --delete-profile
)
for /D %%i in ("%s_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --system-level --verbose-logging --force-uninstall --delete-profile
)
for /D %%i in ("%s_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --system-level --verbose-logging --force-uninstall --delete-profile
)
pause
- JDIAug 27, 2022Copper ContributorThat batch file is a nice piece of work, How few of us still no the inner mysteries of the Bat file script language, long may it live.