Sign in to follow this  
Followers 0
sajgon

how to put files to autoit

6 posts in this topic

Hi. I made a script which is using 2 additional files. Can i add those files to my script and make 1 bigger file containing all files?

For example i have autoit.exe(and source of it ofcourse), program.exe and program.dll files. When i run autoit.exe it opens program.exe which is using program.dll. What i need to do is to pack program.exe and program.dll with autoit.exe so i can have only one file instead of 3. Those files are c# and c++ files. I have the source but have no idea how to convert it to autoit so i want to pack them together.

Share this post


Link to post
Share on other sites

FileInstall()

Share this post


Link to post
Share on other sites

But with this function after running my script it will unpack all the files to specified folder. I need to run this script without unpacking them but just runing program.exe and program.dll from my compiled script. Is this possible?

Share this post


Link to post
Share on other sites

But with this function after running my script it will unpack all the files to specified folder. I need to run this script without unpacking them but just runing program.exe and program.dll from my compiled script. Is this possible?

I believe the only way to achieve this is to replicate the functionality of your additional file in autoIt code.

Is there any particular reason that you don't want to unpack the dll to the directory and call the functions in it. You could always delete it every time the script exits if you don't want to leave it hanging around.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

I see.

So how can i install files (using fileinstall() ) with "hiden" atribute?

Share this post


Link to post
Share on other sites

FileInstall("my.dll", @ScriptDir & "\my.dll")

FileSetAttrib(@ScriptDir & "\my.dll", "+H")

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