| View previous topic :: View next topic |
| Author |
Message |
Ripper
Joined: 24 Oct 2007 Posts: 17 Location: Germany
|
Posted: Sat Nov 03, 2007 12:34 pm Post subject: How to Include files in to the EXE ? |
|
|
How can I include files in to the *.exe???  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Sat Nov 03, 2007 12:40 pm Post subject: |
|
|
Refer AHK Doc for the command: FileInstall  |
|
| Back to top |
|
 |
Ripper_!"! Guest
|
Posted: Sat Nov 03, 2007 12:58 pm Post subject: |
|
|
| for example sound+picture+dll into ONE *.exe file |
|
| Back to top |
|
 |
Do Read Guest
|
Posted: Sat Nov 03, 2007 2:59 pm Post subject: |
|
|
| for example: Refer AHK Doc for the command: FileInstall |
|
| Back to top |
|
 |
RGF Guest
|
Posted: Sat Nov 03, 2007 3:25 pm Post subject: |
|
|
If the question is how to compile an .exe with imgs,sounds,etc built into a single file... there is no command to do it.
You will need to modify AHK's source.
I think there is a topic in this forum discussing something like this. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Sat Nov 03, 2007 8:58 pm Post subject: |
|
|
the FileInstall command acts like filecopy, but when you compile it makes a copy into the exe itself, so that when you run your script, it places the files in the correct place for the rest of the script to work.
The reason FileInstall has been given three times as an answer, is because it is the correct one! _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
RGF Guest
|
Posted: Sat Nov 03, 2007 10:26 pm Post subject: |
|
|
| Maybe I am wrong,but I guess he is looking for a way to produce a more conventional exe,to avoid the extraction of the added files to disk. |
|
| Back to top |
|
 |
RGF Guest
|
|
| Back to top |
|
 |
kimbledon
Joined: 28 Sep 2007 Posts: 26
|
Posted: Sun Nov 04, 2007 4:09 pm Post subject: |
|
|
| Could It be possible to use FileInstall but as soon as it extracts the files the script would read them into variables? |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sun Nov 04, 2007 11:50 pm Post subject: |
|
|
| Quote: | | The file is added during script compilation. When the compiled script is executed and the same "FileInstall" command is reached, the file is then extracted to Dest. | Simply use FileRead after... |
|
| Back to top |
|
 |
|