Sql Express installation with my package - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jesusilvester
Posts: 20
Joined: Fri Jun 26, 2009 12:47 pm

Sql Express installation with my package

We are trying to create an installer for our project.

To achieve this We need Sql Server Express needs to be installed along with our project .

Once the Sql Server Express installation is over we need to Execute database scripts on the database engine.

installation of the sql server is optional and it will be decided by the user selection in the select installation type dialogue

Please try to give me a solution
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Sql Express installation with my package

Hi,

You can add SQL Server Express as a prerequisite to your package. This way the user can decide if he installs it or not. Advanced Installer has predefined prerequisites for multiple SQL Server versions. Also, you can run SQL scripts by using the SQL Scripts page. Please note that the User Guide contains a SQL scripts tutorial which may help you.

Note that SQL scripts can be used only in an Enterprise project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jesusilvester
Posts: 20
Joined: Fri Jun 26, 2009 12:47 pm

Re: Sql Express installation with my package

Hi

thanks a lot for your reply.
Our requirement is like this I have attached the screenshot of a dialogue.
Based on the selection Sqlexpress may/may not get installed.
Once the Sqlserver Express installation is over we need to run the scripts (as a final action).
Now SQL Scripts are being executed before the installation and ends in a error.
can u Please give me a alternative solution.
Attachments
setup.gif
setup.gif (11.78 KiB) Viewed 5468 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Sql Express installation with my package

Hi,

The installation package can run SQL scripts only if SQL server is found. Therefore, SQL server needs to be installed before the installation starts. This can be done by adding SQL server as a prerequisite. Currently SQL Server cannot be installed by the main installation, but this improvement is on our TODO list and it will be available in a future version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jesusilvester
Posts: 20
Joined: Fri Jun 26, 2009 12:47 pm

Re: Sql Express installation with my package

Hi

I have added sql express(Optional checkbox) to the prerequisits softwares.
During installation we want to know whether user accepted to install the prerequisits or not.
How can we identifiy whether he installed prerequisits thorugh the option or he skipped the step by finishbutton.

Is there any property available

Thanks
Jesukaran John Silvester
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Sql Express installation with my package

Hi John,

To detect if the prerequisite was installed correctly you can use the Search page. In it you can recreate the searches used by the prerequisite. The names of the searches are actually installer properties which will contain the result of the searches. If these properties are not empty, the searches found something so the prerequisite were installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”