Variables from Included Scripts

Got a problem you cannot solve? Try here.
sdoc
Posts: 5
Joined: Tue Aug 26, 2008 3:22 pm

Variables from Included Scripts

Postby sdoc » Wed Dec 03, 2008 4:50 pm

I have a main script and 2 included scripts (checksql2005 and setupsql2005)

1) checksql2005 checks service state for MSSQL$EXPRESS and returns in a variable SQL2005 depending is service is installed (TRUE) or not (FALSE)

2) setupsql2005 checks the SQL2005 is False and installs SQl Express

So if my main script has
(Begin Main Script)
..
..
Include Script checksql2005
..
..
Include Script setupsql2005
..
..

(End Main Script )

everything works fine.

However when I try to access the SQL2005 variable in the main script it fails.
(Begin Main Script)
..
..
Include Script checksql2005
..
..
Include Script setupsql2005
If SQL2005 Is True
Include SomeOtherScript
End If
...
...
(end Main sCript)

So when i run the installation where SQLExpress is already installed I expect SomeOtherScript to run,but that does not happen.

What is the scope of the variables???

sdoc
Posts: 5
Joined: Tue Aug 26, 2008 3:22 pm

ignore this post

Postby sdoc » Thu Dec 04, 2008 2:50 pm

ignore this post. i think i figured out what the problem was

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Postby ParallaxiT » Thu Nov 19, 2009 5:44 pm

any way you could post what solved it? having same issue


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 47 guests