Sign in to follow this  
Followers 0
Nunos

Including an Executable

4 posts in this topic

Planning to write a script to check if the internet is connected and if so download the newest version of a program to run it but if not run a version that I would like to include in the script once it is compiled. What would be the best way to accomplish this? I am unsure how I would include the program in the script and then check it to see if it is newer or older than the version on my server. I don't know alot about scripting but if someone can point me in a direction for how to setup the folder structure and how I can actually get the exe into my script I think I can make it happen. Thank you in advance for any help or advice you can provide.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

There are a few ways I know about, here's the way I know going from least complicated to most complicated..

1) FileInstall();

2) Include as string/binary string;

3) Include in application resources table

If you have don't have the ScitE4AutoIt3 but the original SciTE installation, grab it form here.

Install it, then open a script and type in "FileInstall" and click it and then click the F1 key, if you did it right, a window telling you how to use it will appear.

Follow instruction, use methods 2-3 when you know enough about AutoIt later on.

Edit: oh, and to run it, just fileinstall somewhere and use the function "Run()" to run it, preferably use Run(FileGetShortName("YOUR FILE PATH")) so that it doesn't fail...

Edited by FlutterShy

Share this post


Link to post
Share on other sites

I think that you nead it's fileinstall.

also you can use

Regards

Share this post


Link to post
Share on other sites

Thank you FlutterShy and Danyfirex. :D I am researching all of the information you provided to pick the best direction to go. I appreciate the advice and especially the links where I can learn more.

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