[wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

Andreas Janzen andreas.janzen at infoman.de
Tue Sep 1 12:27:50 PDT 2015


Seems to be.

It is a setup for Microsoft Dynamics CRM for Outlook. Microsoft delivers setupclient.exe. This exe can be used to run setup in interactive mode. The standard procedure to lets non-administrative users to run Setup that is driven from a group policy is to run exe with parameters /q /a. This creates an administrative installation of Dynamics CRM for Outlook by creating a Windows Installer package (msi file and directory structure which I’m trying to add to the bundle).

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Dienstag, 1. September 2015 16:30
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

Oh, are these files not listed in in the MSI? Are they just 11,000 files that are used by the MSI but not actually installed by the MSI? If so, what kind of installation package is it?

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Andreas Janzen
Sent: Tuesday, September 1, 2015 1:15 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

Without PayloadGroupRef element the binder doesn't recognize that the directory structure belongs to the msi. At least the built exe does not contain anything except msi file.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Dienstag, 1. September 2015 09:28
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

Leave out the PayloadGroupRef. The binder will find the loose files of the MSI.

If it persists, would be a bug.


Note: the perf on the caching of this package will be very bad due to an unrelated burn design limitation (that IIRC is fixed in v3.10).
_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Andreas Janzen
Sent: Monday, August 31, 2015 11:47 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

I'm trying to create a bundle for my installer. The bundle contains among other thing an msi package of a third-party product. In addition to msi file, this package includes a directory structure with about 11000 files. The directory structure must be stored in the same directory as the msi file at the moment of installation.

MsiPackage element looks like:
    <MsiPackage Id="3rd.Client" DisplayName="3rd-party product" SourceFile=".\3rd\Client_32.msi" Compressed="yes" >
      <PayloadGroupRef Id="3rd.Client.Payload" />
    </MsiPackage>

PayloadGroup element looks like (I've generated it with PowerShell):
        <PayloadGroup Id="3rd.Client.Payload ">
          <Payload SourceFile="<Payload-Directory>\<File-1>" Name="<Target-Directory>\<File-1>" />
          <Payload SourceFile="<Payload-Directory>\<File-2>" Name="<Target-Directory>\<File-2>" />
    .....
If I'm trying to build the project in Visual Studio, light.exe is running for >20 minutes and then crashes with LGHT0001: Exception of type 'System.OutOfMemoryException' was thrown

Exception Type: System.OutOfMemoryException

Stack Trace:
   at System.Collections.Generic.Dictionary`2.Resize(Int32 newSize, Boolean forceNewHashCodes)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)
   at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)
   at System.Collections.ObjectModel.Collection`1.Add(T item)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.Item.AddAfter(Item after, IMessageHandler messageHandler)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.Item.AddAfter(ItemCollection items, IMessageHandler messageHandler)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.Item.FlattenAfters(IMessageHandler messageHandler)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.FlattenOrdering()
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.LoadFlattenOrderGroups()
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.FlattenAndRewriteGroups(String parentType, Boolean removeUsedRows)
   at Microsoft.Tools.WindowsInstallerXml.Linker.FlattenBundleTables(Output output)
   at Microsoft.Tools.WindowsInstallerXml.Linker.Link(SectionCollection sections, ArrayList transforms, OutputType expectedOutputType)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)


Is my approach correct from conceptual point of view? What else could I do?

Thanks in advance.
Andreas
________________________________

Infoman AG
Meitnerstraße 10 | 70563 Stuttgart | Tel.: +49711679710 | http://www.infoman.de Vorstand / Executive Board: Dr.-Ing. Rainer Bamberger (CEO), Dipl.-Ing. Michael Freudenberg (CTO), Stephan Göbel (CSO) Aufsichtsratsvorsitzender / Chairman Of The Supervisory Board: Andrew White Sitz der Gesellschaft / Place Of Business: Stuttgart HRB / Entry In The Commercial Register: Amtsgericht Stuttgart, HRB 21228
Bankverbindung: BW-Bank, BLZ 600 501 01, Kto. 2 933 591, BIC: SOLADEST, IBAN: DE02 6005 0101 0002 9335 91

Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-Mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-Mail aus Ihrem System.

This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/ ________________________________

Infoman AG
Meitnerstraße 10 | 70563 Stuttgart | Tel.: +49711679710 | http://www.infoman.de Vorstand / Executive Board: Dr.-Ing. Rainer Bamberger (CEO), Dipl.-Ing. Michael Freudenberg (CTO), Stephan Göbel (CSO) Aufsichtsratsvorsitzender / Chairman Of The Supervisory Board: Andrew White Sitz der Gesellschaft / Place Of Business: Stuttgart HRB / Entry In The Commercial Register: Amtsgericht Stuttgart, HRB 21228
Bankverbindung: BW-Bank, BLZ 600 501 01, Kto. 2 933 591, BIC: SOLADEST, IBAN: DE02 6005 0101 0002 9335 91

Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-Mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-Mail aus Ihrem System.

This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
________________________________

Infoman AG
Meitnerstraße 10 | 70563 Stuttgart | Tel.: +49711679710 | http://www.infoman.de
Vorstand / Executive Board: Dr.-Ing. Rainer Bamberger (CEO), Dipl.-Ing. Michael Freudenberg (CTO), Stephan Göbel (CSO)
Aufsichtsratsvorsitzender / Chairman Of The Supervisory Board: Andrew White
Sitz der Gesellschaft / Place Of Business: Stuttgart
HRB / Entry In The Commercial Register: Amtsgericht Stuttgart, HRB 21228
Bankverbindung: BW-Bank, BLZ 600 501 01, Kto. 2 933 591, BIC: SOLADEST, IBAN: DE02 6005 0101 0002 9335 91

Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-Mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-Mail aus Ihrem System.

This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.


More information about the wix-users mailing list