Phil,
Many thanks for the reply. I spent some time reviewing the MsiAssemblyName
table and discovered that the third-party assembly I am trying to install
does not have ProcessorArchitecture attribute set, however I was specifying
MSIL as the processor architecture in the WiX File element.

As a result, the assembly manifest information being populated into the
MsiAssemblyName table didn't actually match the assembly in the GAC and I
presume that was the cause of the failure to remove the assembly.

Once I had removed the processor architecture attribute on the File element,
the assembly was successfully removed from the GAC.

Many thanks for your help with this.

Rgds, Nick.


Wilson, Phil wrote:
> 
> Assuming there are no sharing issues keeping it installed, the typical
> reason for this is that the actual assembly name details do not match the
> description that ends up in the MsiAssemblyName table in the MSI file.
> This means that the identity must be fully specified with name,
> publickeytoken, processor architecture, version, culture. I thought
> something in WiX added all this to the MsiAssemblyName table. 
> 
> Phil Wilson 
> 
> -----Original Message-----
> From: nickheppleston [mailto:n...@modhul.com] 
> Sent: Wednesday, May 13, 2009 8:05 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Uninstall Assembly from GAC when Wix MSI Uninstalled
> 
> 
> My WiX project installs a .Net 2.0 assembly into the GAC on install,
> however
> when I uninstall, the assembly remains in the GAC. Anyone have any
> pointers
> to how I go about removing the assembly from the GAC on uninstall? Is
> there
> an option similar to the RegistryKey 'createAndRemoveOnUninstall' action?
> 
> I am using the following WiX entry to add the assembly to the GAC:
> 
> <Component Id="LicencingAssembly"
> Guid="9ACD8C7F-FF79-47A4-8195-4825D96381D1" DiskId="1">
>     <File Id="Foo.dll" KeyPath="yes" Assembly=".net"
> ProcessorArchitecture="msil" Name="Foo.dll"
> Source="..\..\Binaries\Foo.dll"
> />
> </Component>
> 
> Rgds, Nick.
> 
> -- 
> View this message in context:
> http://n2.nabble.com/Uninstall-Assembly-from-GAC-when-Wix-MSI-Uninstalled-tp2884391p2884391.html
> Sent from the wix-users mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Uninstall-Assembly-from-GAC-when-Wix-MSI-Uninstalled-tp2884391p2889156.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to