EXE Size cannot exceed 64MB ?

Everything else that doesn't fall into one of the other PB categories.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: EXE Size cannot exceed 64MB ?

Post by PB »

> *Tampon=AllocateMemory(1024*1024)

You should use another variable name: http://en.wikipedia.org/wiki/Tampon
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Droopy wrote:
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 ?
An example :

Code: Select all

; Reading the ZIP file attached to the SFX stub
If PureZIP_Archive_Read(GetFullExePath())
  ReturnValue.l = PureZIP_Archive_FindFirst() = #UNZ_OK
  While ReturnValue = #UNZ_OK 
    If PureZIP_Archive_FileInfo(@myFileinfo.PureZIP_FileInfo) = #UNZ_OK ; Add file to ListIcon
      AddGadgetItem(#Listview_Archive, -1, myFileinfo\FileName)
    Else ; Error in archive
      MessageRequester(PureZIPTitre, "Error in archive !", #MB_ICONERROR)
      PureZIP_Archive_Close()
      End
    EndIf
    ReturnValue = PureZIP_Archive_FindNext()
  Wend
  PureZIP_Archive_Close()
  If CountGadgetItems(#Listview_Archive) = 0 ; No file in archive
    MessageRequester(PureZIPTitre, "No files in archive !", #MB_ICONERROR)
    End
  EndIf
Else ; Could not open archive
  MessageRequester(PureZIPTitre, "No archive found !", #MB_ICONERROR)
  End
EndIf
It's all in the PureZIP help.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Code: Select all

copy /B InstallerSFX.exe+MyZIP.zip Installer.exe
@Gnozal : I just want to detach 'MyZIP.zip' from installer.exe.
I already use your Lib and works well :wink:
Post Reply