Sign in to follow this  
Followers 0
Valuater

FileInstall

4 posts in this topic

my program utilizes "FileInstall" and.. according to help....

When this function is used from a non-compiled script, a copy operation is performed instead (to allow for easy testing pre-compilation).

but it also performs a copy operation in my exe...?

How do you use "FileInstall for a pic and not create a copy of the pic?

thx

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites



FileInstall("pic.gif", @TempDir & "pic.gif")

FileDelete("pic.gif")

I didn't quite understand what you meant in your question, let me know if that's not it


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

FileInstall("pic.gif", @TempDir & "pic.gif")

FileDelete("pic.gif")

I didn't quite understand what you meant in your question, let me know if that's not it

<{POST_SNAPBACK}>

Sorry,

How do you use "FileInstall"

to create a pic needed within the exe program...

but, not create a copy of the pic on another users computer?

someone ran my program (exe) and it created a copy of the pic on their computer

I think using *FileDelete("pic.gif")* will remove it from my exe program. the program can be closed from many locations, thus trying to delete the pics when the program closes is difficult.

thx

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

That's how FileInstall works. When compiled, the file is added to the .exe, and when the .exe is run, the file is extracted to the location specified by FileInstall, where you can use it. You can't access the file from within the .exe by itself, it has to be extracted.

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