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???
Variables from Included Scripts
ignore this post
ignore this post. i think i figured out what the problem was
-
- Posts: 32
- Joined: Tue Mar 10, 2009 12:10 pm
Who is online
Users browsing this forum: No registered users and 47 guests