-2

One day I was angry with Microsoft Edge and I deleted its subfolders under C:\Windows\SystemApps, C:\Windows\WinSxS and %AppData% by using FastFind (which is an application for fast search on Windows). Therefore, there is no trace of it on my system.
Even PowerShell cannot reinstall it. (I checked all the methods I could find on Microsoft's website and Windows 10 forums.)

Can I download and reinstall Edge without resetting Windows?
Notice that even Windows Update cannot recover it.

Edit:
If I transfer the files from another computer, does it work? Which folders need to be copied?

Henke
  • 1,261

4 Answers4

0

There is no way for us to know what exactly you have deleted.

It's only clear that you have deleted some parts of Windows that should never have been deleted.

To return your system to a standard running state, I suggest running an in-place upgrade of Windows, which will keep installed applications, drivers and almost all Windows settings.

See the article Repair Install Windows 10 with an In-place Upgrade.

Read the article carefully before starting.

harrymc
  • 498,455
0

How to reinstall Microsoft Edge on Windows 10 1

Can I download and reinstall Edge without resetting Windows?

– Yes. In one of my current web browsers, I visited https://microsoft.com/en-us/edge,
which is the home page of Microsoft Edge.

The home page of Microsoft Edge.

^ click to enlarge

I clicked "DOWNLOAD EDGE", which linked me to :
https://www.microsoft.com/en-us/edge?form=MA13FJ#evergreen,
where I clicked Download for Windows 10.

The download page for Microsoft Edge | Windows 10.

I chose English (US) as my language, and then clicked Accept and download.

License terms for Microsoft Edge.

I downloaded and double-clicked the file MicrosoftEdgeSetup.exe. The downloading and installing that followed, took less than two minutes. Microsoft Edge starts automatically.

Microsoft Edge started automatically.


As you can see, installing Microsoft Edge is like installing any other web browser.

If I transfer from another computer, which folders need to be copied?

You'll need to copy all folders under C:\Program Files (x86)\Microsoft\ whose name start with Edge. You should find the following four folders: Edge, EdgeCore, EdgeUpdate EdgeWebView. It won't matter if the folder EdgeWebView is missing, as it should automatically and silently be created soon after you've started running Edge on the target machine. 2

How I removed Microsoft Edge from Windows 10

I removed Microsoft Edge prior to installing it. I started out by uninstalling according to my own instructions on how it can be done. As I want to mimic your situation as much as possible, I opened the command line as administrator, and went to C:\Windows\SystemApps, C:\Windows\WinSxS and %AppData%. In each of those three directories, I ran dir *edge*, and then moved or deleted all subfolders that matched the search. 3

References


1 When this question was asked in 2018, Windows 10 came with EdgeHTML, which Microsoft later renamed Edge Legacy.
I don't expect anyone to be interested in Edge Legacy these days, and I therefore answer how to install the current Edge Chromium only.

2 If it doesn't, see this rather detailed answer on how to install WebView2.

3 Press WinKey+r, type cmd, hold down Ctrl+Shift, and press Enter to open a command prompt as administrator. Then cd C:\Windows\SystemApps and dir *edge*. Do this also for C:\Windows\WinSxS and %AppData%. Some of these files and folders are owned by Trusted Installer, which makes it a bit complicated to delete or move them. But it can be done. All files and subfolders of those three directories belong to the old EdgeHTML.
Hence, there is not really any need to remove them.
I wouldn't say I've removed every trace of Microsoft Edge from my system, but I've mimicked what you say you did.

Henke
  • 1,261
0

I think it depends on exactly what you remove while uninstalling it. I ran into the same issue. I believe I even tried an in-place upgrade that didn't solve the problem. Could be remembering wrong, though. Either way, there is a portable installer by UndertakerBen on GitHub that can solve your problem much less invasively.

-1

I'm assuming that your question is "How do I install some browser onto my computer, because I deleted my only one".

Using some PowerShell code from Timothy Warner, we can copy paste the command from there directly into PowerShell.

It might take a while, and there's probably a better answer, but if you're in a rush this is a way to fix it.

$Path = $env:TEMP; $Installer = 'chrome_installer.exe'; Invoke-WebRequest -Uri 'http://dl.google.com/chrome/install/375.126/chrome_installer.exe' -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args '/silent /install' -Verb RunAs -Wait; Remove-Item -Path $Path\$Installer
TylerH
  • 631