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

How to remove a GacAssemblyInstallReference? #2

Open
icraftsoftware opened this issue Feb 25, 2021 · 0 comments
Open

How to remove a GacAssemblyInstallReference? #2

icraftsoftware opened this issue Feb 25, 2021 · 0 comments

Comments

@icraftsoftware
Copy link

Hello

Suppose I installed twice the same assembly in the GAC, but with 2 different GacAssemblyInstallReferences that I made (opaque + guid for instance). I therefore know them and can reuse them at uninstallation time.

How can I cleanly remove one of these two GacAssemblyInstallReferences? The only way to remove a reference is thru Remove-GacAssembly, but it fails for the first install reference complaining that the assembly has another install reference; which is right.

My intention when using the Remove-GacAssembly giving an install reference as argument would rather be to remove the install reference without failing and without removing the assembly if there are other pending install references. And only remove the assembly from the GAC if there are no other pending install references than the one given as argument.

Thanks for your help

François

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

No branches or pull requests

1 participant