I want to write a small Installer.
I used Includebinary to have one big file (included an executable and a few datafiles) but i don't know how to copy them back on my Harddrive.
The CopyFile-command only work with extern Files.
Does somebody have an idea ?
How to copy an included file ? need help
Simple old snippet...
Timo
Code: Select all
If CreateFile(0, "SomeNewFile.file")
WriteData(?File_Start, ?File_End - ?File_Start) ; ?File_End - ?File_Start = FileSize
CloseFile(0)
Endif
; ---------------------------------------
DataSection
File_Start:
IncludeBinary "Whatever.file"
File_End:
EndDataSection
Last edited by freak on Thu Aug 28, 2003 12:09 pm, edited 1 time in total.
quidquid Latine dictum sit altum videtur
typo in that line ?FileStart, should be ?File_Start,freak wrote:Simple old snippet...TimoCode: Select all
WriteData(?FileStart, ?File_End - ?File_Start) ; ?File_End - ?File_Start = FileSize
then it works great! Joe
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]

