Jump to content

Add file to exe


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

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.
  :)

Link to comment
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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...