我正在尝试编写一个将自动安装我们的远程应用程序应用程序的脚本。这是我到目前为止:在批处理中自动化应用程序安装
REM Install Remote Icons
@Echo On
pushd "\\Servername.com\it\RDP\Installers\"
start msiexec /i "\\Servername.com\it\RDP\Installers\ExercisePro.msi" /qn
start msiexec /i "\\Servername.com\it\RDP\Installers\Excel.msi" /qn
start msiexec /i "\\Servername.com\it\RDP\Installers\Word.msi" /qn
start msiexec /i "\\Servername.com\it\RDP\Installers\Outlook.msi" /qn
start msiexec /i "\\Servername.com\it\RDP\Installers\Allscripts EHR.msi" /qn
start msiexec /i "\\Servername.com\it\RDP\Installers\Allscripts PM.msi" /qn
start msiexec /i "\\Servername.com\it\RDP\Installers\MModal Allscripts EHR.msi" /qn
popd
mkdir C:\Users\%USERNAME%\Icons
copy C:\Users\%USERNAME%\%APPDATA%\Local\Microsoft\Installer C:\Icons
pushd "\\Servername.com\M Modal\Fluency.Direct.9.1.65.7.6.4.v7\fd.client\install_silent.bat"
popd
copy \\Servername.com\Private IT\PC_Shortcuts \\%COMPUTERNAME%\%USERNAME%\Public\Desktop
pause
到目前为止脚本不按我的意图工作。我希望它安装应用程序,然后我希望它创建一个名为C:\ Icons的目录,并将应用程序数据复制到该文件夹,以便我可以删除它所做的应用程序数据条目,并且这些条目将用户配置文件更长时间登录。另外,我还有一个服务器上的文件夹,我想将其复制到具有我们所用的所有Internet快捷方式的本地桌面。这也不能正常工作:(
如果脚本是在Powershell中,还是需要在批处理文件中,您好吗? – Random206
有许多免费的远程安装软件解决方案将更加全面,例如PDQ Deploy,这将使这更容易。你是否期望这在用户上下文中运行?你如何运行?你真的不能解释什么不起作用 – Matt