Sign in to follow this  
Followers 0
Phlegm

Add file to exe

8 posts in this topic

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

Share this post


Link to post
Share on other sites



FileInstall ( "source", "dest" [, flag] )

is this what you need?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I use WinRAR self-extract feature.

You may configure WinRAR to run your .exe automatically after extracting all files.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0