iritating script error
Posted: Fri Oct 01, 2010 1:50 am
Hi,
Making debug of my installer script, I found a strange behaviour that I can't fix. Take a look on script below:
[compiler if Variable BUILDMODE not Equals PATCH]
Get Component $MS_SQLSVR_2008R2_X86$ Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Display Dialog: progressprereq, use as progress dialog (non-modal)
Include Script: checksql2008r2_x86
if Variable SQL2008R2_X86 Equals TRUE
MessageBox: SQL Server, SQL Server instance $SQLINSTANCE_NAME$ already exists in your system.$NEWLINE$$NEWLINE$Please type different instance name or you can choose other installation type to not install SQL Server.
GoTo Label: sql_serversetup
else
Include Script: setupsql2008r2_x86
end
Hide Dialog
end
[compiler end]
If SELECTED=FALSE then script jumps to wrong end (blue instead to red one) clause. I know sometimes something wrong happens behind script engine and usually simple operations copy->cut->paste of the same code help to fix the problem. But not this time. I even tried to rewrite that code and the effect is the same.
Anybody had already such a problem?
Making debug of my installer script, I found a strange behaviour that I can't fix. Take a look on script below:
[compiler if Variable BUILDMODE not Equals PATCH]
Get Component $MS_SQLSVR_2008R2_X86$ Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Display Dialog: progressprereq, use as progress dialog (non-modal)
Include Script: checksql2008r2_x86
if Variable SQL2008R2_X86 Equals TRUE
MessageBox: SQL Server, SQL Server instance $SQLINSTANCE_NAME$ already exists in your system.$NEWLINE$$NEWLINE$Please type different instance name or you can choose other installation type to not install SQL Server.
GoTo Label: sql_serversetup
else
Include Script: setupsql2008r2_x86
end
Hide Dialog
end
[compiler end]
If SELECTED=FALSE then script jumps to wrong end (blue instead to red one) clause. I know sometimes something wrong happens behind script engine and usually simple operations copy->cut->paste of the same code help to fix the problem. But not this time. I even tried to rewrite that code and the effect is the same.
Anybody had already such a problem?