Page 2 of 2
Re: EXE Size cannot exceed 64MB ?
Posted: Wed Nov 29, 2006 11:44 pm
by PB
> *Tampon=AllocateMemory(1024*1024)
You should use another variable name:
http://en.wikipedia.org/wiki/Tampon
Posted: Thu Nov 30, 2006 8:38 am
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.
Posted: Thu Nov 30, 2006 9:04 am
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
