Sign in to follow this  
Followers 0
MadCoder

Ini not working - Looking for working solution

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

In your ;;;; THIS DON'T WORK code remove the fangs around the variable

ShellExecute("$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 by smashly

Share this post


Link to post
Share on other sites

Awesome. Thank you very much for the information. I'll try it and let you know.

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