Recent

Author Topic: SOLVED: A simple project  (Read 1171 times)

jamie

  • Hero Member
  • *****
  • Posts: 3120
Re: A simple project
« Reply #15 on: April 08, 2020, 02:31:52 am »
so you are trying to make a self extraction system...

 The best solution is to write a small console based bootloader that knows its own file size so that
when started, it will read at the end of the file and thus read all the attached files.

  Of course you also need another app that is combine these together..
The only true wisdom is knowing you know nothing

AsleyCruz

  • Jr. Member
  • **
  • Posts: 78
    • Graphic and apps designer
Re: A simple project
« Reply #16 on: April 08, 2020, 02:46:41 am »
so you are trying to make a self extraction system...

Yes Jamie, it is a little project at the college.
Let's say:
- Load some files with main .exe.
- Generate a new .exe with the files saved inside.
- Open the new generated .exe and select the folder to extract the files.

I hope to achieve this goal.
AsleyCruz - Graphic and apps designer
-
http://www.asleycruz.com/

jamie

  • Hero Member
  • *****
  • Posts: 3120
Re: A simple project
« Reply #17 on: April 08, 2020, 02:53:05 am »
Ok, I kind of figured that is what you are after..

You need to create a small installer.EXE program.. basically a sub program or boot loader

that will read its own file from disk but move the file pointer to a known position and start reading the attached files..

 Your main program needs to add these files at the end but you also need to directory structure at the start of each one that will report the size of each chunk and also the name of the file..
etc

 But first you need to make the little EXE program that reads at the end of itself from disk
The only true wisdom is knowing you know nothing

avk

  • Sr. Member
  • ****
  • Posts: 269
    • my self-education project
Re: A simple project
« Reply #18 on: April 08, 2020, 07:42:52 am »
@AsleyCruz, I want to note that I used this component specifically for a small installer.

UPD: added a small example.
« Last Edit: April 08, 2020, 12:29:02 pm by avk »

 

TinyPortal © 2005-2018