Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, December 25, 2015 11:15 AM | 1 vote
ill keep this short as I can; sometimes, when im cleaning my computer of misc files, the weather app doesn't load, it goes to a grey box, then crashes; I use the following command to fix it
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
whenever I run this app in powershell, it fixes the weather app problem (though I cannot suspect any-other factor that makes this happen nearly all the time), but it gives me this red error text
Add-AppxPackage : Cannot find path 'C:\AppXManifest.xml' because it does not exist.
At line:1 char:38
- ... | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\AppXManifest.xml:String) [Add-AppxPackage], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
though this error text happens, it still "fixes" it; how do I prevent this problem happening, or should I just ignore this?
All replies (12)
Friday, January 1, 2016 5:40 AM ✅Answered
I assume from this that if there was something wrong with the onenote app, the install location would be blank; the only ones blank are for Microsoft.WindowsMaps and Microsoft.WindowsCamera, and I believe I uninstalled them by right clicking their icons from my start menu and clicking uninstall, as I didn't feel like keeping them on my computer
I ran the dism /Online /Cleanup-Image /ScanHealth, Repair-WindowsImage -Online -ScanHealth (and their RestoreHealth commands as well), and sfc /scannow multiple times to make sure there wasn't any problems and everything said all clear
Don't know what else to do, unless maybe the bottom commands could help
Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd file:1 /limitaccess
Haven't used the source command yet, but I got a clean Windows 10 ISO downloaded in-case I needed it for something like this, but then again, no errors detected; what now?
You are better off using the WIM than the ESD (as described in the WIKI). You need to mount an ISO of the exact same version of the OS that is running on the computer for the "source" command to work. Since you are missing the XML file which is basically a configuration file you could always restore it from your backup. YOu do have a back up right>
Wanikiya and Dyami--Team Zigzag Windows IT-PRO (MS-MVP)
Saturday, December 26, 2015 11:22 PM | 1 vote
What are you using to 'clean' the files? I have seen posts regarding Windows 10 where CCleaner appears to cause issues.
Regarding the 'Get-AppXPackage -AllUsers | Foreach..' try adding a -Verbose to the end, so it becomes;
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -Verbose}
The verbose needing to be part of the last command. That will show the app that is giving that error (as it does not have an install location listed, might be VCLibs seen that do it in that past)
If it is just the Weather app then;
Get-AppXPackage -AllUsers -Name Microsoft.BingWeather| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -Verbose}
Will reregister just the Weather app.
Sunday, December 27, 2015 3:52 AM
I use CCleaner but didn't experience any issues; what issues were happening if I may ask?
there is one more question I got; I installed the script browser and module browser (needed nuget-anycpu which it couldn't get for some reason) but after a few days decide to uninstall it
after that, when I tried using Get-AppXPackage, it said there was no Get-AppXPackage command, but after a while, it started working again
is there a command I can use to verify any missing or corrupt modules and fix them, or should I just not worry
Sunday, December 27, 2015 4:08 AM | 1 vote
the appmanifest alert seems to happen after the microsoft onenote app; I don't really need to use it since I got office 365
Sunday, December 27, 2015 6:09 PM | 1 vote
CCleaner in the early days of Windows 10 saw a couple posts mostly causing issues with Defender. It cleaned the Defender logs so it did not know when it had scanned meaning it wanted to scan. Sure that was sorted out in the later releases of CCleaner. To be clear I do not use CCleaner and have nothing against it just remembered it from those posts.
The no Get-AppXPackage comments is interesting. Can I suggest maybe that was tried from a Command Prompt, not a PowerShell prompt? :) Just think if it went it would not come back easily.
If you want to check the system a System File Check would the way to go. From an admin Command Prompt (right click start choose Command Prompt (Admin) )
sfc /SCANNOW
Will take 30 mins or so to run. A guide for further info System file check (SFC) Scan and Repair System Files & DISM to fix things SFC cannot (by Team ZigZag) if it does find issues.
If you want to look into the app alert more;
Get-AppXPackage | Select-Object Name,InstallLocation
Will list the name and install location (funnily enough) so will show the one for sure that is missing its install location.
Monday, December 28, 2015 3:51 AM
I assume from this that if there was something wrong with the onenote app, the install location would be blank; the only ones blank are for Microsoft.WindowsMaps and Microsoft.WindowsCamera, and I believe I uninstalled them by right clicking their icons from my start menu and clicking uninstall, as I didn't feel like keeping them on my computer
I ran the dism /Online /Cleanup-Image /ScanHealth, Repair-WindowsImage -Online -ScanHealth (and their RestoreHealth commands as well), and sfc /scannow multiple times to make sure there wasn't any problems and everything said all clear
Don't know what else to do, unless maybe the bottom commands could help
Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd file:1 /limitaccess
Haven't used the source command yet, but I got a clean Windows 10 ISO downloaded in-case I needed it for something like this, but then again, no errors detected; what now?
Monday, December 28, 2015 9:58 AM
Hi MelWeh6,
In addition to the step mentioned, please also take a try with the method below:
Download Windows 10 install Media, and then perform an upgrade install.
https://www.microsoft.com/en-us/software-download/windows10
Regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Monday, December 28, 2015 1:00 PM
what now?
Well I think I have lost track of the issue. Are you still getting any problems? If not then just leave as be I would say.
Friday, January 1, 2016 4:19 AM
can't do that, im already running windows 10, and im pretty sure an upgrade install on windows 10 would be completely useless
Friday, June 17, 2016 1:03 PM | 1 vote
the image creator of win 10, generates a .ESD file, not the .WIM. In this case how i can´t use the Dism command with source option.
My problem happen after a shutdown during windows update. all the apps lost the path to his manifest file.
Sunday, March 5, 2017 12:07 AM
https://www.jitbit.com/alexblog/246-resolving-issues-with-store-in-windows-10/
The last step suprisingly helped me.
Saturday, April 20, 2019 8:56 AM
same for me to pls help