John, I was originally using the following WiX entry: <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>
Which produced the following entry in the MsiAssemblyName table (view using the Orca.exe tool shipped with the Windows SDK): name: Foo version: 1.0.0.0 culture: neutral publicKeyToken: 4A3C0A4C668B48B4 processorArchitecure: MSIL However, looking at the assembly in the GAC, there was no entry for it in the 'Processor Architecture' column (i.e no 'MSIL', 'x86' or 'x64'). I therefore removed the ProcessorArchitecture attribute from the File element, so my Wix entry now looks like: <Component Id="LicencingAssembly" Guid="9ACD8C7F-FF79-47A4-8195-4825D96381D1" DiskId="1"> <File Id="Foo.dll" KeyPath="yes" Assembly=".net" Name="Foo.dll" Source="..\..\Binaries\Foo.dll" /> </Component> I installed and uninstalled the MSI and the assembly is successfully removed from the GAC. Looking at the MsiAssemblyName table for the MSI with the revised WiX entry, I now see the following: name: Foo version: 1.0.0.0 culture: neutral publicKeyToken: 4A3C0A4C668B48B4 Note the lack of the *processorArchitecture* entry - this now matches the assembly manifest of the assembly I was installing to the GAC. Hope this helps. Rgds, Nick. John Daintree wrote: > > Hi Nick, > > I have a similar problem I think. Could you post the WiX snippet for the > assembly that you were having problems with so that I can compare and > contrast with my own install? > > Many Thanks, > > /john > > ----- Original Message ----- > From: "nickheppleston" <n...@modhul.com> > To: <wix-users@lists.sourceforge.net> > Sent: Thursday, May 14, 2009 10:52 AM > Subject: Re: [WiX-users] Uninstall Assembly from GAC when Wix MSI > Uninstalled > > >> >> 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 > > > ------------------------------------------------------------------------------ > 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-tp2884391p2889265.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