从Inno安装程序静默安装SQL Server Express 2012 [英] Silent Install of SQL Server Express 2012 from Inno Setup

查看:133
本文介绍了从Inno安装程序静默安装SQL Server Express 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过使用Inno Setup创建的应用程序安装程序以静默方式安装SQL Server Express 2012.从命令行运行以下命令时,安装了SQL Server Express 2012,因为我只想显示安装进度,但不允许用户输入任何输入.

I am trying to install SQL Server Express 2012 silently from my application installer created using Inno Setup. When running the following command from the command line, SQL Server Express 2012 is installed as I want only showing progress of the install but not allowing the user to enter any input.

有效的命令行命令:

C:\Users\Jason\Desktop>SQLEXPR_x86_ENU.exe /ACTION=Install /INSTANCENAME=MYINSTANCE /INSTANCEID=MYINSTANCE /QS /HIDECONSOLE /INDICATEPROGRESS="False" /IAcceptSQLServerLicenseTerms /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtin\administrators" /SKIPRULES="RebootRequiredCheck"

为了从我的Inno Setup脚本中执行此操作,我有以下代码:

In order to do this from my Inno Setup script I have the following code:

Exec(installName,
  '/ACTION=Install /INSTANCENAME=MYINSTANCE /INSTANCEID=MYINSTANCE /QS /HIDECONSOLE /INDICATEPROGRESS="False" /IAcceptSQLServerLicenseTerms /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtin\administrators" /SKIPRULES="RebootRequiredCheck"',
  '',
  SW_SHOW,
  ewWaitUntilTerminated,
  ResultCode);

其中installName = SQLEXPR_x86_ENU.exe

从安装程序运行时,SQL Server Express 2012安装程序会启动,但是在第一个信息对话框之后,它会显示"SQL Server安装中心"窗口,并且用户必须选择安装类型,然后才能继续安装程序.他们还必须同意直接从命令行运行时不需要的许可协议.

When run from the Installer the SQL Server Express 2012 installer starts but after the first information dialog it then shows the SQL Server Installation Center window and the user has to select the type of installation before the installer continues. They also have to agree to the license agreement which was not required when running directly from the command line.

关于如何从Inno Setup静默运行安装程序的任何想法?

Any ideas on how to run the installer silently from Inno Setup?

推荐答案

从"BUILTIN \ Administrators"更改为"BUILTIN \ Users"即可.

change from "BUILTIN\Administrators" to "BUILTIN\Users" will be fine.

这篇关于从Inno安装程序静默安装SQL Server Express 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆