Jump to content

Ini not working - Looking for working solution


MadCoder
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...