Nunos Posted November 25, 2012 Share Posted November 25, 2012 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. Link to comment Share on other sites More sharing options...
Chance Posted November 25, 2012 Share Posted November 25, 2012 (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 tableIf 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 November 25, 2012 by FlutterShy Link to comment Share on other sites More sharing options...
Danyfirex Posted November 25, 2012 Share Posted November 25, 2012 I think that you nead it's fileinstall.also you can use Regards Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Nunos Posted November 25, 2012 Author Share Posted November 25, 2012 Thank you FlutterShy and Danyfirex. 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now