Using PowerShell to delete and repair the necrotic application in Win8 Metro

  

Xiaobian After using Sina Weibo application in Win8, suddenly encountered problems, the Sina Weibo application of the interface began to become a solid color button, in all applications I also lost Sina Weibo, and the original location became an app named APP. After opening, I entered the store.

In this case, the program is equal to necrosis, the delete option is not found, and the Windows 8 Metro application has no management options. It is useless to reinstall the Sina Weibo app in the app store. Although there is an installation process, there is no prompt to install successfully. The start menu is still the same.

In this case, both the application can not be deleted and can not re-installed, the solution is as follows:

start screen: All Programs, Windows PowerShell find open


Press Get-AppxPackage to return it. It can return all (current user?!) installed Metro package information


Find the Metro application you want to uninstall, such as Sina Weibo :


Name: sina.51561FF0E3531Publisher: CN = 3B1B7377-362C-4E39-A7C0-F96FAA466AC7Architecture: NeutralResourceId: Version: 1.0.2.19PackageFullName: sina.51561FF0E3531_1.0.2.19_neutral__zgahqmgng3xt6InstallLocation: C: \\ Program Files \\ WindowsApps \\ sina.51561FF0E3531_1.0.2.19_neutral__zgahqmgng3xt6IsFramework: FalsePackageFamilyName: sina.51561FF0E3531_zgahqmgng3xt6PublisherId: zgahqmgng3xt6

PackageFullName note of the above items in the bottom of the console is here:

PS C: \\ users \\ username & gt;

type: Remove-AppxPackage & lt; you want to uninstall PackageFullName & gt; such as my Sina microblogging is this:

Remove-AppxPac kage sina.51561FF0E3531_1.0.2.19_neutral__zgahqmgng3xt6 prompted ongoing deployment of operation if the wood has disappeared returns an error, then like a return to the app store to install applications on it.

Note:

Remove-AppxPackage The PackageFullName item that is connected after it is case-sensitive, and some of the underscores are connected to two instead of one, so it is best to use Ctrl +C copy, right click directly to avoid errors. (If the error occurs, it is usually an input error)

PS: If the reinstallation is successful, the start interface still does not appear. Go to all programs to search for the application, then open, you can restore the original button, which is estimated to be cache problem

in addition, if you delete the application directly in the Windows app folder, making it impossible to reinstall, you can solve with this approach.

Source of this article: IT Home Community

Copyright © Windows knowledge All Rights Reserved