Phlegm Posted March 3, 2008 Posted March 3, 2008 I there a way to add files to the compiled exe so that I have a script and the file in one exe? I don't see an option in the compiler. Perhaps there is another program to do this? Thanks
XinLu Posted March 3, 2008 Posted March 3, 2008 FileInstall ( "source", "dest" [, flag] ) is this what you need?
Phlegm Posted March 3, 2008 Author Posted March 3, 2008 FileInstall ( "source", "dest" [, flag] ) is this what you need? Thanks but I was looking to include files into the EXE package so I have them to copy/replace/register ect. without calling out to a source since some deploys the end user may not have access to the network. Any suggestions? Thanks
XinLu Posted March 3, 2008 Posted March 3, 2008 I use WinRAR self-extract feature. You may configure WinRAR to run your .exe automatically after extracting all files.
Developers Jos Posted March 3, 2008 Developers Posted March 3, 2008 (edited) Thanks but I was looking to include files into the EXE package so I have them to copy/replace/register ect. without calling out to a source since some deploys the end user may not have access to the network.FileInstall() incorporates the "source" file at compilation time in the target EXE and at Run time it extracts it into the specified Target Directory.Isn't that what you wanted?Jos Edited March 3, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
XinLu Posted March 3, 2008 Posted March 3, 2008 adding info. to use FileInstall() Func OnAutoItStart () FileInstall("fileNeed2beCopied", "C:\copyToHere", 1) EndFunc If you use some kind of codes listed above, this can guarantee you will have your files to copy/replace/register, because OnAutoItStart() will be run before all other codes
Phlegm Posted March 3, 2008 Author Posted March 3, 2008 Thanks, Looks like file install is good for a few files. And I think the winrar may be the way for directories or a larger amount of files since it looks like I need to create folders and call individual files out. Is this a correct assesment? Thanks again.
jellyfish Posted March 5, 2008 Posted March 5, 2008 I also was looking to do this. Go to this site http://www.portablefreeware.com and search for a prog called nBinder. It will combine all files of a program to a single exe and extract them when you open the program. Also has the option to delete files that were extracted when you close program. Hope this helps.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now