Page 1 of 2

EXE Size cannot exceed 64MB ?

Posted: Tue Nov 28, 2006 11:07 pm
by Droopy
First Step : Create a 100MB File

Code: Select all

*Tampon=AllocateMemory(1024*1024) ;/ Each Packet is 1Mb
CreateFile(0,"c:\100Mo.txt")
  
For n=1 To 100
  FileSeek(0,Lof(0))
  WriteData(0,*Tampon,1024*1024)
Next
  
CloseFile(0)
FreeMemory(*Tampon)
Second Step : Include and Extract the 100MB file

Code: Select all

DataSection 
StartFile1: 
IncludeBinary "C:\100Mo.txt" 
EndFile1: 
EndDataSection 


Size=?EndFile1-?StartFile1


CreateFile(0,"c:\100Mo.NEW")
WriteData(0,?StartFile1,Size)
CloseFile(0)
I get an error while compiling : Polink : fatal error : Internal Error : write_executable_image.
The code works with a 50MB file :(

Same problem with PB 3.94 :cry:

Re: EXE Size cannot exceed 50MB

Posted: Wed Nov 29, 2006 12:17 am
by Kale
Droopy wrote:The code works with a 50MB file :(
What about a 50.1Mb file?

Posted: Wed Nov 29, 2006 12:40 am
by Droopy
I need to include a 105MB ZIP File into the EXE and launch it from PB as an installer + Registry tweak :wink:

I say 50MB but i don't know if it works @ 60MB, PB Crash with 100MB includeBinary or Resources :x

Posted: Wed Nov 29, 2006 1:00 am
by Droopy
I found this topic with the same problem with PelleC ( Polink.exe is also the linker )

http://209.85.135.104/search?q=cache:Qq ... =clnk&cd=1

The PelleC Admin Says :
The limit in this case, I think, is an artificial limit in the linker - the EXE file can't be larger than 64MB (I my opinion not that much of a limitation...)
Is there a way to break this barrier ?

Posted: Wed Nov 29, 2006 1:09 am
by White Eagle
Can't you compile the EXE normally, and then after its compiled append the ZIP file to the EXE, this should bypass the limitation with polink. I know you can easily append stuff to an exe with AL90s packer lib, but I am sure there are some better suited routines/libs at purearea.

Posted: Wed Nov 29, 2006 3:07 am
by va!n
need to include a 105MB ZIP File into the EXE and launch it from PB as an installer + Registry tweak Wink
Sorry i really dont like this way... why should an installer need 105+ MB of RAM for installing any stuff? I totaly disagree... Write an exe (installer) and save the stuff you wish to install as Resource or inside a datafile to extract each file.... If you make a prod with installer and the prod may be 800 MB... would you really like to see 800 MB of your RAM is used to install an app? :) i dont think so..

Posted: Wed Nov 29, 2006 4:27 am
by Fangbeast
Droopy, I have to ask, what is a "Tampon" in French? In English it means something that makes me laugh very much every time I read it in a French post and I cannot get a translation from BabelFish

Posted: Wed Nov 29, 2006 5:17 am
by lexvictory
Fangbeast wrote:Droopy, I have to ask, what is a "Tampon" in French? In English it means something that makes me laugh very much every time I read it in a French post and I cannot get a translation from BabelFish
hehe same, but i dont think this translation is quite right (coz thats wat it is in english) ..... :lol:
(off topic i know)

Image

Posted: Wed Nov 29, 2006 8:59 am
by Droopy
@Lexvictory & Fangbeast : Tampon mean Buffer
@va!n : In fact i use Resources, and this is the same error .

Posted: Wed Nov 29, 2006 9:07 am
by gnozal
Did you try to add the ZIP file to the Installer.exe, like copy /B InstallerSFX.exe+MyZIP.zip Installer.exe ?
Then in your code you can open Installer.exe as a ZIP archive and extract your files. This is what I do with my library installer (using PureZIP), although I did not tested it with big files.

Posted: Wed Nov 29, 2006 9:11 am
by Fangbeast
Droopy wrote:@Lexvictory & Fangbeast : Tampon mean Buffer
@va!n : In fact i use Resources, and this is the same error .
Thanks Droopy. The really weird thing is; that if you think about it; the English meaning could be the same thing :D :D :D

Posted: Wed Nov 29, 2006 4:27 pm
by blueznl
fanglez, you're mixing up 'insert' and 'buffer'... or... well... perhaps not, better nog go there <looking for a corner to hide>

Posted: Wed Nov 29, 2006 5:29 pm
by dell_jockey
Fangbeast wrote:
Droopy wrote:@Lexvictory & Fangbeast : Tampon mean Buffer
@va!n : In fact i use Resources, and this is the same error .
Thanks Droopy. The really weird thing is; that if you think about it; the English meaning could be the same thing :D :D :D
FIFO buffer? ;) if you wait long enough..? :roll:

Posted: Wed Nov 29, 2006 5:48 pm
by Trond
Let's hope there's no overflow or underflow problems.

Posted: Wed Nov 29, 2006 7:27 pm
by Droopy
gnozal wrote:Did you try to add the ZIP file to the Installer.exe, like copy /B InstallerSFX.exe+MyZIP.zip Installer.exe ?
Then in your code you can open Installer.exe as a ZIP archive and extract your files. This is what I do with my library installer (using PureZIP), although I did not tested it with big files.
Did you have some code to extract this ZIP ?