AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Include files in to the EXE ?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Ripper



Joined: 24 Oct 2007
Posts: 17
Location: Germany

PostPosted: Sat Nov 03, 2007 12:34 pm    Post subject: How to Include files in to the EXE ? Reply with quote

How can I include files in to the *.exe??? Question
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Sat Nov 03, 2007 12:40 pm    Post subject: Reply with quote

Refer AHK Doc for the command: FileInstall Smile
Back to top
View user's profile Send private message
Ripper_!"!
Guest





PostPosted: Sat Nov 03, 2007 12:58 pm    Post subject: Reply with quote

for example sound+picture+dll into ONE *.exe file
Back to top
Do Read
Guest





PostPosted: Sat Nov 03, 2007 2:59 pm    Post subject: Reply with quote

for example: Refer AHK Doc for the command: FileInstall
Back to top
RGF
Guest





PostPosted: Sat Nov 03, 2007 3:25 pm    Post subject: Reply with quote

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

PostPosted: Sat Nov 03, 2007 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
RGF
Guest





PostPosted: Sat Nov 03, 2007 10:26 pm    Post subject: Reply with quote

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





PostPosted: Sun Nov 04, 2007 12:01 am    Post subject: Reply with quote

This post may be what you are looking for http://www.autohotkey.com/forum/post-147202.html#147202
Back to top
kimbledon



Joined: 28 Sep 2007
Posts: 26

PostPosted: Sun Nov 04, 2007 4:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Sun Nov 04, 2007 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group