Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an issue with setup and deployment project.

I have created a desktop application and and a setup file. I created a setup&deplyoment project and added SQL Express R2 as a prerequisite. I need to create a new Instance called "Galaxy"


Scenario 1:
When there is no other SQL Server installed, the setup completes smoothly.



Scenario 2:
If any other SQL installation exists, the setup fails because it tries to upgrade it.

However I dont want an upgrade in this scenario, instead I would like a new installation of 2008 R2 with instance named "Galaxy".

Scenario 3:
Express R2 Installation exists. "Galaxy" Instance doesnt exist. I want to create a new Galaxy Instance.


How can I achieve this through the package file or any other solution? I want to proceed with the setup if the instance already exists. How can I remove the action=Upgrade logic?

!-- Defines a new installation (x86) -->
Command PackageFile="SQLEXPR32_x86_ENU.EXE"
Arguments='/q /hideconsole /action=Install /features=SQL /instancename=GALAXY /SECURITYMODE=SQL /SAPWD=mypassword /enableranu=1 /sqlsvcaccount="NT Authority\Network Service" /AddCurrentUserAsSqlAdmin /skiprules=RebootRequiredCheck /IAcceptSQLServerLicenseTerms'
EstimatedInstalledBytes="225000000"
EstimatedInstallSeconds="420">

......................
......................

!-- Defines an upgrade installation (x86) -->
Command PackageFile="SQLEXPR32_x86_ENU.EXE"
Arguments="/q /hideconsole /action=Upgrade /instancename=GALAXY /SECURITYMODE=SQL /SAPWD=mypassword /skiprules=RebootRequiredCheck /IAcceptSQLServerLicenseTerms"
EstimatedInstalledBytes="225000000"
EstimatedInstallSeconds="420">
Posted

Hi binoyjose,

You have neither specified your issue any where nor provided any errors also. So, I'll assume that your issue is to do the above installation.

I have a similar work related to this, but I'm yet to work on it. So, if you have not had a chance to go through this, then please take a stab at the link (here[^])

Hope it helps you.

Belated Happy New year...!

Regards,
Vamsi
 
Share this answer
 
Comments
Thomas Daniels 6-Jan-13 10:17am    
Comment from the OP, posted as a non-answer:
Vamsi,

Thanks a lot for the help.

My issue is mostly with the setup and deployment.

When I install using the setup file, where the SQL Server Express R2 is a prerequisit, everything works fine if it is a new installation.

But if there is already an installation of SQL Server 2005 or 2008 exist, the SQL Server Installation tries to Upgrade it instead of New installation of my GALAXY instance. (I can see the command is for Upgrade through log file)

How do I tell SQL Server to only install new even if there is a 2005 version?
Vamsi,

Thanks a lot for the help.

My issue is mostly with the setup and deployment.

When I install using the setup file, where the SQL Server Express R2 is a prerequisit, everything works fine if it is a new installation.

But if there is already an installation of SQL Server 2005 or 2008 exist, the SQL Server Installation tries to Upgrade it instead of New installation of my GALAXY instance. (I can see the command is for Upgrade through log file)

How do I tell SQL Server to only install new even if there is a 2005 version?
 
Share this answer
 
Comments
Thomas Daniels 6-Jan-13 10:17am    
If you've a comment to an answer, click on the "Have a Question or Comment?" button, but please don't post a comment as an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900