Hi,
I would like to ask the user if they would like to install SQL Express (via checkbox). How should I go about doing this?
This is because of the return code of the SQL Express installation. Please set the custom action to use the "Synchronous execution, ignore return code" option and let me know if the problem persists.whenever I cancel the SQL Express setup..the Installer throws an error.
Is this in design mode where I will see this?This prerequisite will have a checkbox (checked by default) in the prerequisites wizard.
Is it possible to run the SQL Express executable while another MSI is running? I have read where this may not be possible...can you confirm?This is because of the return code of the SQL Express installation. Please set the custom action to use the "Synchronous execution, ignore return code" option and let me know if the problem persists.
Please note that the prerequisite wizard cannot be edited. Also, it is shown only when a prerequisite needs to be installed.Is this in design mode where I will see this?
The SQL Express installation package is MSI-based, therefore it cannot run while your main package is being installed. You could use a custom action to launch it after the installation is complete, but it is recommended to use prerequisites.Is it possible to run the SQL Express executable while another MSI is running? I have read where this may not be possible...can you confirm?
Actually, this is not specified in the post you mentioned. The user asked for a way to detect SQL Express in order to show a custom text message, not to install SQL Express.It seems that they are going to give the user an option (with a custom message) before installing SQLExpress,
Although it is not recommended, you can try this approach:We are going to run sql scripts during the install, but we would like to allow the user to use an existing sql install (anywhere on the network), or install a new instance of sql express.
Code: Select all
(Not Installed) AND (SQL_CHECK)
Thanks Cosmin....I will give this a shot.cosmin wrote:Hi,
Actually, this is not specified in the post you mentioned. The user asked for a way to detect SQL Express in order to show a custom text message, not to install SQL Express.It seems that they are going to give the user an option (with a custom message) before installing SQLExpress,
Although it is not recommended, you can try this approach:We are going to run sql scripts during the install, but we would like to allow the user to use an existing sql install (anywhere on the network), or install a new instance of sql express.
- create a custom dialog which has a checkbox
- set the property of the checkbox to SQL_CHECK
- set the text of the checkbox to something like this: "Install SQL Express"
- go to the Custom Actions page
- use the "Show standard action button on the toolbar to show the "InstallIIS" standard action
- create a new "Launch file or open URL" custom action under it
- set the "Command Line" field to the full path of the SQL Express installation package (for example, if its next to the MSI you can use [SourceDir]SQLEXPR.EXE)
- select the "Asynchronous execution, do not wait for return" option
- set the "Expression" field to:This way, if the user checks the checkbox which has the property SQL_CHECK, the custom action will run and it will launch the SQL Express installation. Also, since it is launched after the "InstallIIS" standard action as asynchronous, it will not be executed at the same time with the main installation.Code: Select all
(Not Installed) AND (SQL_CHECK)
Regards,
Cosmin