MadCoder Posted September 17, 2009 Posted September 17, 2009 I'm looking for a run several installations script to automate some installs. I want to compile the scripts, so I need the scripts to run from one of our servers. To do so I need to the script to read from a INI or a include with variable paths so we can update the setups with out having to recompile each script. I've tried the INI approach however it didn't work as planned. Here's what I tried: EXAMPLE: ;; setup ;; modified 09/17/09 ;;;; THIS DON'T WORK $TortoiseSVN = InIRead("config.ini","TortoiseSVN","TortoiseSVN","") ; Run setup ShellExecute("$TortoiseSVN", "") ;;; THIS DOES WORK, BUT IT'S HARD CODED ShellExecute("Q:\URAPPS\TortoiseSVN\setup.msi", "") WinWaitActive("TortoiseSVN 1.6.5.16974 (32 bit) Setup") ; Sendkeys to Setup exec SLEEP (1000) Send("{ENTER}") SLEEP (1000) Send("{tab}{tab}{tab}{up}") SLEEP (1000) Send("{ENTER}") SLEEP (1000) Send("{tab}{enter}") SLEEP (1000) Send("{tab}{enter}") SLEEP (60000) Send("{ENTER}") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; INSTALLER WANTS A RESTART ;; ;; SINCE WE DON'T ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; WinWaitActive("Installer Information") Send("{tab}{enter}") ; fin
smashly Posted September 17, 2009 Posted September 17, 2009 (edited) Hi, In your ;;;; THIS DON'T WORK code remove the fangs around the variableShellExecute("$TortoiseSVN", "") eg: ShellExecute($TortoiseSVN, "") Cause the way you've got it your trying to shellexecute a string "$TortoiseSVN" , instead of a variable containing a string $TortoiseSVN Cheers Edited September 17, 2009 by smashly
MadCoder Posted September 17, 2009 Author Posted September 17, 2009 Awesome. Thank you very much for the information. I'll try it and let you know.
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