Hi Fred and welcome to Advanced Installer forums,
First of all you should add the Sql Server Express 2008 R2 predefined prerequisite from the Prerequisites page( top right -> Add ) and set it as
feature based.
I would like if there are NO Available Server and SQL Express not installed on machine
that the Install SQL Server Express R2 be checked and ReadOnly and you can only navigate or cancel
- add an SetProperty init event:
[YOUR_CHECKBOX_PROPERTY]
Argument: Checked
Condition:
NOT(AI_SQL_2008_R2_ORIGINAL_PREREQSEARCH_1_PROP
AND AI_SQL_2008_R2_ORIGINAL_SEARCH_2_PROP
AND YOUR_SERVER_BROWSE_RESULT_CONTROL)
where YOUR_CHECKBOX_PROPERTY and YOUR_SERVER_BROWSE_RESULT_CONTROL are the public properties attached to the afferent controls from your dialog.
If Sql server Express R2 is already installed on the machine, I would like the checkbox be unchecked and readonly
- add another SetProperty init event:
[YOUR_CHECKBOX_PROPERTY]
Argument: {}
Condition: AI_SQL_2008_R2_ORIGINAL_PREREQSEARCH_1_PROP
AND AI_SQL_2008_R2_ORIGINAL_SEARCH_2_PROP
Since both your above requirements are for the checkbox to be readonly you can set its Enabled attribute to false from the right properties pane.
If I choose an existing server, I would like to capture the login info to use later.
The predefined server browse method only captures the following information( when using ODBC Driver Manager functionality ):
Code: Select all
ServerName\InstanceName;Clustered:No;Version:9.00.3042.00
All is detailed in
this user guide article.
All the best,
Mihai
FOLLOW US
Get the latest news in Application Packaging