Looking for a way to programmatically or otherwise add a new instance of SQL 2005 Express Edition to the system on which the instance is already installed. Traditionally, you run the Micrsoft installer, as I did on the command line below, and this does the trick. Running the command in my installer is not a problem, it is more about dragging and dropping about 40 MB of the MS-SQL installer, which I do not need if they already have SQL Express installed. This is what my installer does:
SQLEXPR32.EXE /qb ADDLOCAL=ALL INSTANCENAME=<instancename> SECURITYMODE=SQL SAPWD=<password> SQLAUTOSTART=1 DISABLENETWORKPROTOCOLS=0
I don't need help running this command, but rather a suitable way to add a new instance of SQL 2005 Express without restarting the full installer.
I would like to talk in detail about why I want to do this, but I’ll just bore everyone. Suffice it to say that the ability to create a new instance without the time required to reinstall SQL Express, etc., would help me a lot in deploying my application and its installer. If it matters to everyone, I use a combination of NSIS and Advanced Installer for this installation project.
command-line install instance sql-server-express sql-server-2005-express
Douglas anderson
source share