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

查看:30
本文介绍了从 Inno Setup 静默安装 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:UsersJasonDesktop>SQLEXPR_x86_ENU.exe /ACTION=Install /INSTANCENAME=MYINSTANCE /INSTANCEID=MYINSTANCE /QS /HIDECONSOLE /INDICATEPROGRESS="False" /IAcceptSQLServerLicenseTerms /SQLSVCACCOUNT="NT AUTHORITYNETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtinadministrators" /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 AUTHORITYNETWORK SERVICE" /SQLSYSADMINACCOUNTS="builtinadministrators" /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?

推荐答案

从BUILTINAdministrators"更改为BUILTINUsers"即可.

change from "BUILTINAdministrators" to "BUILTINUsers" will be fine.

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

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