How to remove a GacAssemblyInstallReference?
icraftsoftware opened this issue · 0 comments
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