[wix-users] Installation of assembly into GAC isn´t forced by WIX

Johan Heikkila johan.heikkila at fi.abb.com
Thu Jun 28 02:43:20 PDT 2018


Hi,

I don't know if this helps your situation, but assemblies with same version can be upgraded if the dll version has changed and fileVersion attribute is set in the MsiAssemblyName table. See https://blogs.msdn.microsoft.com/astebner/2008/08/10/enabling-in-place-assembly-upgrades-using-windows-installer-and-wix/

Regards,
Johan

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Andreas Buchner via wix-users
Sent: fredag 22 juni 2018 09:21
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Andreas Buchner <Andreas.Buchner at inloox.com>
Subject: Re: [wix-users] Installation of assembly into GAC isn´t forced by WIX

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


Thank Rob, appreciate your feeback!

-----Ursprüngliche Nachricht-----
Von: wix-users <wix-users-bounces at lists.wixtoolset.org> Im Auftrag von Rob Mensching via wix-users
Gesendet: Donnerstag, 21. Juni 2018 18:30
An: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Rob Mensching <rob at firegiant.com>
Betreff: Re: [wix-users] Installation of assembly into GAC isn´t forced by WIX

I know very little about publisher policy: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fframework%2Fconfigure-apps%2Fhow-to-create-a-publisher-policy&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=g1mL8XPyNvBLbbjJaNT7EBZNrmAa1KcMOQDd%2FO8D65Q%3D&reserved=0

In the end, you may need MSFT to fix it.

_____________________________________________________________
 Short replies here. Complete answers over there: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Andreas Buchner via wix-users
Sent: Thursday, June 21, 2018 1:38 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Andreas Buchner <Andreas.Buchner at inloox.com>
Subject: Re: [wix-users] Installation of assembly into GAC isn´t forced by WIX

Thansk for the quick reply Rob!

>The WiX Toolset is not responsible for the installation of files to the GAC. The Windows Installer does that, you'll want to follow >up with them if you want their behavior to change.
Oh yes, you´re correct - I wrote this a bit wrong...

> Note, gacutil is not a redistributable piece of the NETFX SDK and is not to be used in this way.
I know. That´s the reason why I meant "that´s not a solution". Also I don´t wanna change the system in a CA.

>Maybe publisher policy???
What do you mean with this? Policy of Microsoft?

We just have this this issue because Microsoft is not changing the AssemblyVersion of EntityFramework.dll.
Nobody of us understands why it´s always 6.0.0.0

Thanks
Andreas

-----Ursprüngliche Nachricht-----
Von: wix-users <wix-users-bounces at lists.wixtoolset.org> Im Auftrag von Rob Mensching via wix-users
Gesendet: Donnerstag, 21. Juni 2018 10:19
An: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Rob Mensching <rob at firegiant.com>
Betreff: Re: [wix-users] Installation of assembly into GAC isn´t forced by WIX

The GAC is not my bailiwick but couple things to keep in mind on your journey:

> But it looks like that wix internally does not force the installation of the assembly into the GAC (pretend that the older version is already present).

The WiX Toolset is not responsible for the installation of files to the GAC. The Windows Installer does that, you'll want to follow up with them if you want their behavior to change.

> Of course we could install these assemblies via gacutil in a deferred custom Action

Note, gacutil is not a redistributable piece of the NETFX SDK and is not to be used in this way.

Maybe publisher policy???
_____________________________________________________________
 Short replies here. Complete answers over there: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Andreas Buchner via wix-users
Sent: Thursday, June 21, 2018 1:10 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Andreas Buchner <Andreas.Buchner at inloox.com>
Subject: [wix-users] Installation of assembly into GAC isn´t forced by WIX

Hello everyone,



we have a little bit complex issue with the deployment of EntityFramework.dll and EntityFramework.SqlServer.dll. I assume that already someone else must have seen this error. So let me explain it:



  *   Since our new major version we´re using EntityFramework in version 6.2.0, in the previous versions we had 6.1.3 (we need the Async Methods of EF6)
  *   We only installed the assemblies (EntityFramework.dll and EntityFramework.SqlServer.dll) into our install location, not into the GAC.
  *   Unfortunately Microsoft didn´t change the AssemblyVersion of these assemblies between the two versions (it´s always 6.0.0.0). We don´t have an idea why they did this...
  *   Due to our research the default assembly loading behavior of the .Net Framework is to prefer assemblies from the GAC if they have the same assembly version
  *   We now have some customers which already have the older version (6.1.3) in their GAC (likely from another application) and so .Net prefers this file. As soon as we try the access some of the new EF Methods (like .ToListAsync()) we receive a "Method not found" exception.
  *   We changed our wxs file that the EF assemblies get installed into the GAC (attribute Assembly=".net" on the file-element). But it looks like that wix internally does not force the installation of the assembly into the GAC (pretend that the older version is already present).
  *   So the assembly doesn´t get updated and we still have the same issue.



Of course we could install these assemblies via gacutil in a deferred custom Action, but obviously that´s a bad solution.



So:

Any ideas on this?



Thanks!



Andreas


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=02%7C01%7C%7Cb01a03d41aae40a853eb08d5d8085ba6%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C0%7C636652452882047954&sdata=AIeFCj99s5V%2F%2FuKmYwqIcukC0Bh2D0MO50i68nbaq1o%3D&reserved=0



More information about the wix-users mailing list