Jump to content
Sign in to follow this  
sajgon

how to put files to autoit

Recommended Posts

sajgon

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
weaponx

FileInstall()

Share this post


Link to post
Share on other sites
sajgon

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
Bowmore

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
sajgon

I see.

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

Share this post


Link to post
Share on other sites
weaponx

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.