> *Tampon=AllocateMemory(1024*1024)
You should use another variable name: http://en.wikipedia.org/wiki/Tampon
EXE Size cannot exceed 64MB ?
Re: EXE Size cannot exceed 64MB ?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
An example :Droopy wrote:Did you have some code to extract this ZIP ?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.
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
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Code: Select all
copy /B InstallerSFX.exe+MyZIP.zip Installer.exe
I already use your Lib and works well
