Forum Discussion
Upgrade from 18356.16 to 18362.1 fails
Update to my previous replyI might've found a solution. I've upgraded successfully to 18362.1 just now. This potential solution might cause trouble later down the road though, but everything looks ok for me for now. DISM and SFC checks look good.
I downloaded the upgrade package using the UUP dump tool. The tool downloads the files necessary and converts it into an ISO file. You can try the normal setup first by mounting the ISO file and running the setup executable. If it fails, use SetupDiag and see if the error is the same. If it's the same, you could try what I did. Here's where it could get tedious.
I searched the sources folder and found a manifest file which contains some lines of configuration that look like this:
<plugin
classId="{AE27C1A6-25F2-45FD-9A28-081B81F29E0A}"
critical="Yes"
file="Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll"
offlineGather="Yes"
offlineApply="Yes"
/>
So I figured I should try and modify that a bit. Particularly the "critical" value. Here, "critical" is set to "Yes". I think that states if the process is critical and if it fails somewhere, the whole setup needs to abort. If it's set to "No" instead, the process is not critical and if it fails somewhere, the setup just moves on. That's why this might not be 100% safe. Keep that in mind.
I extracted the ISO file and located the manifest file. The manifest file is "\sources\replacementmanifests\appxdeploymentserver-replacement.man". I opened the file with Notepad++ and changed the "'Yes'" in front of "critical=" to "'No'", and saved the file. Then I use some ISO maker program (that allows me to do this for free) to make a new (barely) modified version of the installation ISO.
It's time to install it. I paused Windows Update so that it doesn't interrupt the process (by automatically rebooting the PC which I don't want). I restarted my PC for good measure, and I mounted the new ISO and ran the setup executable. After a while (and after a buggy looking "Working on Updates" screen), my computer got past the error and upgraded successfully.
I did a DISM and an SFC scan, and both resulted fine. But I'll see if there are any issues in UWP programs.
Let me know if this works for any of you. Before doing this though, make sure you have a plan just in case the setup fails midway and can't roll back (such as a backup and a rescue media).
Edit: UWP apps are not working. Settings app works, but a lot of other UWP apps are not working (including the store which is worrying). Can't fix it using PowerShell. Might want to roll back. I fixed the UWP situation. After searching for answers on the internet, broken apps are usable again. I took ownership of the WindowsApps folder inside Program Files and grant full control for my account and "ALL APPLICATION PACKAGES". This fixed the Microsoft Store. Then I opened Regedit and deleted all Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateChange subkeys (which I think acts as a blacklist for apps which failed the migration). This fixed the rest of the UWP apps.
Edit: People have reported that the workaround is not fail-proof. Your UWP apps could get screwed up really bad. Microsoft has pulled 18362 from Windows Update. Please don't do the workaround as it is risky and might even raise the probability of doing a clean install later in the future. Thank you.
So, I managed to Upgrade to 18362.1 after having had the same problem everyone discussed but now I seem to have messed up my WindowsApps beyond repair - at least none of the solutions listed worked for me so far.
What I did was: Used https://www.uupdump.ml/ to get a dump of the update, edit the manifest file as described in the thread, repackage the ISO, mount it, install the update et voila. So far so good.
Now, my UWP got messed up, so I ran
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
as an admin and this fixed SOME of the problems.
Still, Microsoft Store wasn't working, e.g. the Calculator app among others wasn't starting (only getting vague error messages like "There’s a problem with Calculator. Contact your system administrator about repairing or reinstalling it.") and so on.
Changing permissions (taking ownership, modifying access control) on WindowsApps didn't help.
Modifying the registry (deleting everything under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateChange) as described above seems to have made the situation worse - some apps that were working before stopped working and now I basically have to re-apply the PowerShell-command I mentioned every time to semi-fix everything.
Microsoft Store and all non-working apps are greyed-out in the Start Menu... Tried purging the MS Store cache but it gives me an error that it cannot start the Store. Creating another user account didn't fix it either.
DISM and SFC don't recognize any problems...
I'm slowly running out of ideas how to fix the apps.
- TheNerdBoyApr 02, 2019Copper Contributor
I was certainly wrong as well. I did get it to upgrade and did get some windows apps to work again. But still couldn't get the Store to work. Plus from that, it messed up a few other things as well - all things Abode. I ended up having to do a fresh install to just get things working again. That was a pain.
Though this new build did present some really nice things, like the file folder sorting is much much displayed. But for anyone reading, I HIGHLY recommend DO NOT upgrade to this new build, wait for MS to fix it. They did pull the build from the servers already.
- ChaeskaApr 02, 2019Copper Contributor
TheNerdBoy Thanks for the confirmation that I wasn't being the only silly person to have failed in such a way.
Isn't there any way of getting the Windows Store package from a healthy installation and then installing it manually? I feel that would solve the problem.
Meanwhile I rolled back to the previous version of Windows and needless to say that didn't help either...
Update: Something very weird is going on with the WindowsApps folder. No matter what permissions I set on it I cannot do anything with it - create, modify files or anything...
- TheNerdBoyApr 02, 2019Copper Contributor
I have tried the windows folder permission, auditing, etc. I even went as far as deleting the WindowsApps folder and copying it from a laptop, as well as the registry key. I ran Ubuntu from a flash drive to do that.
Rolling back to the previous build did nothing but make things worse for me.
There is something in the code of the OS that is written differently than before that is cause this.
For now, updates are on pause.