无提示安装Lync 2013 Standard

我试图find一种很好的方式来在Windows 7 / Office 2010的计算机上悄悄部署Lync 2013标准和基本客户端,并且还有一些障碍。

1)我成功地安装了标准客户端(从VL下载),但是当自动安装时,我收到错误“您的系统不支持此安装包的语言”。 我正在使用的语法:

setup.exe / adminfile lyncstd.msp / config lync.ww \ config.xml

我使用setup / admin制作了MSP,并给了它一个完整的安装。 我也用下面的语法创build了config.mxl文件:

<Configuration Product="Lync"> <Display Level="none" CompletionNotice="yes" SuppressModal="yes" AcceptEula="yes" /> <Logging Type="verbose" Path="%temp%" Template="Microsoft Office Lync Setup(*).txt" /> <USERNAME Value="Me" /> <COMPANYNAME Value="My company" /> <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> <DistributionPoint Location="\\vm-fs\public\Lync\Standard" /> <OptionState Id="LOBiMain" State="absent" Children="force" /> --> <Setting Id="SETUP_REBOOT" Value="IfNeeded" /> 

所以这对我来说是没有意义的 – 就像为什么从GUI上安装不会出现这样的问题,但是自动化突然抛出了一个燃烧的痔疮。 在安装日志中,我会看到一条消息:系统不支持此安装软件包的语言“,所以我尝试在pipe理员安装模式下禁用语言支持选项,以及删除以下早期版本的“Microsoft Office多语言用户界面包”。

2)或者是在计算机configuration>策略> Windows设置>脚本中使用运行batch file的GPO安装它的唯一方法,并使用带有adminfile和configfile标记的setup.exe运行无提示安装?

谢谢!

为了解决使用MSP文件进行部署的问题,您可以使用启动脚本直接调用该exe文件,并使用xmlconfiguration进行其他参数/​​日志logging。

首先,创build一个共享文件夹,并将Lync 2013文件放入其中。 请确保您授予“域计算机”读取和写入此文件夹的权限(如果您想要logging,请写入),并为其提供NTFS和共享权限。

如果你想logging(和你做),在安装文件夹中的日志创build一个文件夹。 我命名我的InstallLogFiles (烨,非常有创意)。

在安装文件夹中,具有config.xml文件的lync.www文件夹。 编辑文件并包含以下内容:

 <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" /> <Logging Type="standard" Path="\\SERVER\SHARE\InstallLogFiles" Template="%computername%-Install_Log.txt" /> <!-- <USERNAME Value="Customer" /> --> <!-- <COMPANYNAME Value="MyCompany" /> --> <!-- <INSTALLLOCATION Value="%programfiles%\Microsoft Office" /> --> <!-- <LIS CACHEACTION="CacheOnly" /> --> <LIS SOURCELIST="\\SERVER\SHARE" /> <DistributionPoint Location="\\SERVER\SHARE" /> <!-- <OptionState Id="OptionID" State="absent" Children="force" /> --> <Setting Id="SETUP_REBOOT" Value="never" /> <!-- <Command Path="%windir%\system32\msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> --> 

您可以根据需要更改其他值,但\ SERVER \ SHARE \的行应指向您的安装文件夹。

接下来,您需要在工作站上运行启动脚本来调用安装。 以下代码并根据需要进行编辑并保存为.bat文件。 然后应将该文件作为启动脚本添加到组策略中。 为了简化部署,您可以将策略范围限定为只能由AD组读取。 然后,您可以将应该获得安装的计算机添加到AD组。

码:

 setlocal REM ********************************************************************* REM Environment customization begins here. Modify variables below. REM ********************************************************************* REM Get ProductName from the Office product's core Setup.xml file, and then add "office15." as a prefix. set ProductName=Office15.LYNC REM Set DeployServer to a network-accessible location containing the Office source files. set DeployServer=\\SERVER\SHARE REM Set ConfigFile to the configuration file to be used for deployment (required) set ConfigFile=\\SERVER\SHARE\lync.WW\config.xml REM Set LogLocation to a central directory to collect log files. set LogLocation=\\SERVER\SHARE\InstallLogFiles REM ********************************************************************* REM Deployment code begins here. Do not modify anything below this line. REM ********************************************************************* REM Skip install if OS is not Win 7 or above IF NOT "%ProgramFiles(x86)%"=="" (goto Office2013) else (goto XP) :Office2013 REM Check to see if Office 2013 is installed, if so Exit reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office15.PROPLUS echo %date% %time% Checking if Office 2013 is installed code is %errorlevel%.>> %LogLocation%\%computername%.txt if %errorlevel%==1 (goto ARP64) else (goto End) REM Operating system is X64. Check if Lync is already installed in emulated Wow6432 uninstall key :ARP64 reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName% echo %date% %time% Checking if Lync is installed code is %errorlevel%.>> %LogLocation%\%computername%.txt if %errorlevel%==1 (goto Office) else (goto End) REM Check to see if Office 2013 is installed, if so Exit reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office15.PROPLUS echo %date% %time% Checking if Office 2013 is installed code is %errorlevel%.>> %LogLocation%\%computername%.txt if %errorlevel%==1 (goto Office) else (goto End) REM If 1 returned, the product was not found. Run setup here. :Office echo %date% %time% Deployment triggered on %computername%.>> %LogLocation%\%computername%.txt start /wait %DeployServer%\setup.exe /config %ConfigFile% echo %date% %time% Setup ended with error code %errorlevel%. &gt;&gt; %LogLocation%\%computername%.txt exit :XP echo %date% %time% Machine is Windows XP - Exiting >> %LogLocation%\%computername%.txt exit REM If 0 or other was returned, the product was found or another error occurred. Do nothing. :End exit Endlocal 

上面的代码将检查机器是否是XP,如果是退出/日志。
检查是否已经安装了Office 2013,如果是,则退出/ log。
检查Lync 2013 Standalone是否已经安装,如果退出。

如果不是,它会启动安装并logging下它的步骤。 实际的软件安装日志也将存在,并且都被设置为使用%computername%variables来帮助跟踪问题。

我以这种方式将数百台计算机部署到了Lync,没有问题。