Skip to content
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

"remove-default-apps.ps1" does not account for dependenices #188

Open
Zamiell opened this issue Feb 17, 2019 · 3 comments
Open

"remove-default-apps.ps1" does not account for dependenices #188

Zamiell opened this issue Feb 17, 2019 · 3 comments

Comments

@Zamiell
Copy link

Zamiell commented Feb 17, 2019

When running "remove-default-apps.ps1" on a fresh Windows 10 Pro, it fails upon doing a:

Get-AppxPackage Microsoft.Advertising.Xaml | Remove-AppxPackage

This is because several packages depend on this, such as Microsoft.People, microsoft.windowscommunicationsapps, as so forth.
So it should be moved to the bottom of the list, or the logic should be expanded to check for dependencies first and uninstall those before uninstall.

W4RH4WK added a commit that referenced this issue Feb 17, 2019
@W4RH4WK
Copy link
Owner

W4RH4WK commented Feb 17, 2019

Thanks for the heads up.

When I wrote the scripts initially I did not think about apps depending on each other. I guess it just wasn't a problem at that time. For the time being, I moved Microsoft.Advertising.Xaml to the bottom of the list, maybe this helps with the error.

I'll leave this issue open, marked with help wanted. If anyone wants to add dependency resolving to remove-default-apps.ps1, be my guest :)

@4oo4
Copy link
Contributor

4oo4 commented Jul 27, 2019

This would be fun to take a stab at, I wonder if the best way to do it is to use Get-AppxPackageManifest, and then parse that for dependencies?

https://docs.microsoft.com/en-us/powershell/module/appx/get-appxpackagemanifest?view=win10-ps

@mmikeww
Copy link
Contributor

mmikeww commented Dec 8, 2019

i've just made a note for myself that i might need to run this "remove-default-apps" script multiple times, in case of errors and dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants