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 registry is:
"C:\Program Files (x86)\Microsoft\Edge Dev\Application\77.0.218.4\Installer\setup.exe" --uninstall --msedge-dev --system-level --verbose-logging
But when run it prompts to clear your browsing data
Is there a way to make this silent and unattended?
When you run setup.exe /? it gives no info on command line options
TIA
- abbodi1406Steel 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
- JDICopper 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.
- Steve Rugh
Microsoft
Simon Kennerley you should be able to achieve silent uninstall by using the --force-uninstall flag. Hope that helps!
- JimmyTheExploderCopper Contributor
Steve Rugh Hi, I'm also trying to figure out a silent uninstall for Edge (actually Edge Dev in this case).
The --force-uninstall parameter doesn't seem to work. Setup.exe appears to launch as I watch task manager, but then it immediately stops running. I don't get any prompts or error messages.'
Here's the command line I'm using, which with the exception of the suggested --force-uninstall parameter, I've taken straight from the Uninstall key in the registry:
"C:\Program Files (x86)\Microsoft\Edge Dev\Application\81.0.403.1\Installer\setup.exe" --force-uninstall --msedge-dev --system-level --verbose-loggingAny ideas? I've also tried --silent-uninstall and --quiet-uninstall, but those didn't work, either.- balimidiCopper Contributor
setup.exe" --uninstall --system-level --verbose-logging --force-uninstall it worked for me