以静默方式安装sqlcmd接受EULA [英] Installing sqlcmd in silent mode accepting EULA

查看:231
本文介绍了以静默方式安装sqlcmd接受EULA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以静默方式安装sqlcmd,但我不知道如何自动接受EULA.我要安装的文件名为"MsSqlCmdLnUtils.msi"(从MS下载中心下载).这是我到目前为止尝试过的方法(可从google找到):

I'm trying to install sqlcmd in silent mode but i can't figure out how to automatically accept the EULA. The file I'm trying to install is named "MsSqlCmdLnUtils.msi" (downloaded from the MS download center). Here's what I've tried till now (found with google):

msiexec /i "MsSqlCmdLnUtils.msi" /passive AcceptEndUserLicenseAgreement=1
msiexec /i "MsSqlCmdLnUtils.msi" /passive ACCEPTEULA=1
msiexec /i "MsSqlCmdLnUtils.msi" /passive ACCEPT=1
msiexec /i "MsSqlCmdLnUtils.msi" /passive EULA=1

以及所有带有"=是"而不是"= 1"的组合

and also all combinations with "=yes" instead of "=1"

我得到的只是错误级别1603(错误1603:安装过程中发生了致命错误.)

All I'm getting is ERRORLEVEL 1603 (Error 1603: A fatal error occurred during installation.)

有什么想法吗?

推荐答案

几小时无奈之下,我终于弄清楚该怎么做.我一直在寻找的属性是"IACCEPTMSSQLCMDLNUTILSLICENSETERMS = YES"和"IACCEPTMSSQLCMDLNUTILSLICENSETERMS = 1"也可以正常工作.

After several hours of desperation I've finally figured out what to do. The property I was looking for is "IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES" and "IACCEPTMSSQLCMDLNUTILSLICENSETERMS=1" works as well.

所以这是命令:

msiexec /i "MsSqlCmdLnUtils.msi" /passive IACCEPTMSSQLCMDLNUTILSLICENSETERMS=YES

THX @ Microfost提供了出色的文档-.-

THX @ Microfost for the great documentation -.-

这篇关于以静默方式安装sqlcmd接受EULA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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