Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

SQL - Just create a new instance?

Hello,

In some computers SQL Server Express may be already installed. In this case, the installer only needs to create a custom instance. How to do it?

:?:
K
Daniel
Posts: 8282
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL - Just create a new instance?

Hello,

In this case you can configure your "SQL Server Express" prerequisite to be always installed (from "Prerequisite Install Conditions Tab") and, then in the "Install Command Lines" fields (from "Prerequisite Setup Files Tab") add a proper command line which will install a named instance.

Let us know if this helped, otherwise please offer us more details about your requirements.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
EstebanLopez
Posts: 4
Joined: Mon Nov 24, 2014 7:27 pm

Re: SQL - Just create a new instance?

Hello Daniel,

I know this post is fairly old but I would like to know how to create an instance without using the Command Line in the prerequisites. The reason is that I want my database to be installed in a custom instance (other than SQLEXPRESS) and if the user already has SQL Server installed, the Command Line won't be executed, hence he won't have the custom instance I want.

Greetings,

Esteban.
Daniel
Posts: 8282
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL - Just create a new instance?

Hello Esteban,

Have you configured your "SQL Server Express" prerequisite to be always installed (from "Prerequisite Install Conditions Tab")? If not, can you do so and try again the prerequisite installation by using a specific command line for named instance installation?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
EstebanLopez
Posts: 4
Joined: Mon Nov 24, 2014 7:27 pm

Re: SQL - Just create a new instance?

Hello Daniel,

Thank you for your answer, I have tried the Always install prerequisite option but it doesn't meet my requirements, I don't want my users to see the install prerequiste window if they have my custom instance and SQL Server Express installed.

Greetings,

Esteban.
Daniel
Posts: 8282
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL - Just create a new instance?

Hello Esteban,

Can you please give us more details (maybe exemplify a bit) about the behavior you want to achieve so we have a clear view of your requirements?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jvsanguyo
Posts: 4
Joined: Wed May 11, 2016 10:37 am

Re: SQL - Just create a new instance?

EstebanLopez wrote:Hello Daniel,

Thank you for your answer, I have tried the Always install prerequisite option but it doesn't meet my requirements, I don't want my users to see the install prerequiste window if they have my custom instance and SQL Server Express installed.

Greetings,

Esteban.
This is my problem also. If the machine is having the SQL INSTANCE named SQLEXPRESS the prerequisites (SQL SEVER EXPRESS) should skip else install SQL SERVER EXPRESS.
Daniel
Posts: 8282
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL - Just create a new instance?

Hello,
This is my problem also. If the machine is having the SQL INSTANCE named SQLEXPRESS the prerequisites (SQL SEVER EXPRESS) should skip else install SQL SERVER EXPRESS.
To install your SQL prerequisite only when the "SQLEXPRESS" is not already present on the local machine you should use in the "Prerequisite Install Condition" tab a registry search which will look for the "SQLEXPRESS" instance.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”