Archived Forum Post

Index of archived forum posts


Failing to open large EXE (OpenMyEmbedded)

Aug 24 '15 at 02:43


We are adding ZIP file to EXE (AddEmbedded). This usually works very nicely, however it appears to cause problems when total size of zip exceeds some limit.

The LastErrorText below is from a EXE containing zip with 6 large files, that totals to 2.6 GB unzipped (~700 MB zipped). There is no problem adding ZIP to EXE file. Problem encountered is a "Out of Memory" error on "OpenMyEmbedded".

    DllDate: Jun 23 2015
    UnlockPrefix: ABILIAZIP
    Username: SOME_PC:meg.selv
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 12.0 (32-bit)
    VerboseLogging: 0
    oemCodePage: 1200
    Failed to map view of file
    filename: C:\Temp\83LargeVideos.exe
    Failed to open my EXE

Any help is appreciated.

Many thanks Hakon


The zip.AddEmbedded, OpenEmbedded, ReplaceEmbedded, RemoveEmbedded, etc. methods are quite old and work by inserting the .zip as a resource in the EXE. Unfortunately, there are limits to the size. I don't know the exact limits. The MS Platform SDK that fails because of the size is MapViewOfFile ( I'm sorry to say that this is not something that would be pursued.