-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script not working any more! #9
Comments
I have seen some systems that have a corrupted setup.exe file. Using Revo Uninstaller will remove it. I use it at least 3 times a day on fully updated systems. Windows 8-11, and haven't had any issues. (Mix of new and customer machines). Just tried it now, and was successful.
I have never seen it work from there, except on Windows 7.... maybe 8? When you run my .bat script. does it show Removing Microsoft Edge a bunch of times, in a row, on the screen? I'll do some further investigating. |
Windows 10 x86-x64 (21H1), I see this problem in the 21H1 version |
I suspect Microsoft pushed out an Edge update between 2022-May and 2022-Oct which caused the removal script to stop working. Another script also stopped working that used to work for Win 10 Pro 21H2. See here: AveYo/fox#26 |
Strange. I wonder if it's just certain systems, or if there is something else installed. |
To make testing faster, I also use VMs. The install of Windows is a vanilla factory install with the following changes:
I just tested your "Remove-Edge.bat" on Win 10 Pro 21H2 with latest updates to 2022-May and it works to uninstall Edge version 101.0.1210.32 . On the same Windows VM with full windows updates to 2022-Oct, the script fails to remove Edge version 105.0.1343.53. What version of Edge are you testing with? |
I tested again this morning on: |
I ran two more tests with the manually installed Edge Business version (installed over the top of the OS provided version): On Win10 Pro 21H2 with windows updates to 2022-May, it has the OS provided/Win updated Edge ver 101.0.1210.32 (which is removable). I booted the VM without network (so it doesn't try to do any updates) and manually installed "MicrosoftEdgeEnterpriseX64.msi" (Edge for Business) ver 107.0.1418.42. Then I ran your script and Edge gets removed. On Win10 Pro 21H2 (the same VM as above) with windows updates to 2022-Oct, it has the OS provided/Win updated Edge ver 105.0.1343.53 (which does not remove). I booted the VM without network (so it doesn't try to do any updates) and manually installed "MicrosoftEdgeEnterpriseX64.msi" (Edge for Business) ver 107.0.1418.42. Then I ran your script and Edge does NOT get removed. |
Another test starting from Win10 Pro 21H2 with windows updates to 2022-May:
So, from this I conclude that it isn't just the version of Edge that prevents removing but something that changed in the Windows updates. |
Just ran fine on a new HP Z Workstation. Factory image. Fully updated. |
|
@baaannnaaannn wrote: Simply deleting program files, folders, and shortcuts is a naive way to "uninstall" software. The "removeedge.bat" script referenced in the video also removes a single registry key and its values. ( HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components{9459C573-B17A-45AE-9F64-1857B5D58CEE ) But software installers can do many other things that need to be undone. The can install scheduled tasks, services, drivers, Explorer extensions, and perform other system state modifications like register COM objects and type libraries and other registry changes. Considering the above, deleting the Edge program files actually works better than I expected. A proper uninstaller process is definitely the preferred way to remove software. But if one cannot be found, then a brute force method is better than nothing. The script is a proof of concept, but there is more to be done. Here are some items I noticed when running:
|
I have an idea. Does anyone have an old setup.exe from reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /t REG_DWORD /v NoRemove /d 0 /f Need to copy the old setup.exe and run the uninstall command |
HA-HA. BINGOOOOO!!! We just need to put old exe in installer directory and it's WORKING!!! |
I tested this using a setup.exe from 2022-May (Win10 Pro 21H2) (which works for uninstall at that point in time) . I copied to my Win10 Pro VM updated 2022-Oct (also 21H2) and replaced the installers here: "C:\Program Files (x86)\Microsoft\Edge\Application\105.0.1343.53\Installer\setup.exe" From an admin command prompt I ran: setup.exe --uninstall --system-level --force-uninstall Sadly, it does not work for me when running from either location. |
After run setup.exe check "Edge\Application" direcrtory. Is still present? You can try to give system updating edge to last version and after try to uninstall using old exe |
For the first tests I used setup.exe from Edge 101.0.1210.32 which did not work. So I went back further and got setup.exe from Edge 89.0.774.77. I replaced both setup.exe files with the older version in these folders: "C:\Program Files (x86)\Microsoft\Edge\Application\105.0.1343.53\Installer\setup.exe" Then I ran the Edge removal script and it worked. Thank you. EDIT: I also tested the removal script using setup.exe from Edge 96.0.1054.34 and this also works. I think it is better to use the newest setup.exe that works. |
For my testing using the older Edge setup.exe to remove a newer Edge, I thought the Edge Updater did not get uninstalled. But I was mistaken. The uninstaller was just taking longer because I have my VM blocked from accessing the internet and the Edge installers / uninstallers send data to MS quite a bit and these connections were stuck and slowing down the uninstall process. So there is NOT a problem with Edge Updater, it is uninstalling along with the other Edge applications. |
so, adding the removal of the edge using old setups, it will solve that problem. |
maybe adding the edge 89.x setup.exe and run with parameters will be a good idea i will launch an update for my project after in detail testing. |
Problem is most of use have already deleted older version of Edge, I'm also locked out of this solution because of Edge 108 overrided my older Edge, so no setup.exe for me to use... Is there a way to easily get the official setup.exe to uninstall Edge, I'll back it up very carefully this time and write a full fledged uninstaller from it, it's much safer than writting Edge Uninstaller from scratch. P/s: Installing Windows 10 21H2 to a Virtual Machine then copy and backup setup.exe seems to be my only choice, will take time. |
"setup.exe" file from the Microsoft Edge 96.0.1054.34 installation on Windows 10 VirusTotal.com report: File was located here: The exact same file is also here: |
Thank you a lot, time to nuke Egde out of my computer and block their update server forever, free 500MB of hard drive is good. |
Good news! I finally got a system in that was erroring out. .exe has been updated, and working. |
Hi! In new version of Edge this command not working any more.
setup.exe --uninstall --system-level --force-uninstall
Also, the program is not uninstalled through "Programs and Features" and "Applications and features"
The text was updated successfully, but these errors were encountered: