简体   繁体   English

使用Powershell无需手动干预即可安装任何exe

[英]Installing any exe without having manual intervention using powershell

How could i install any ".exe" without having any user action, means wherever the user interaction needed it should continue with the default selection (eg: license agreement) using powershell 我如何在不执行任何用户操作的情况下安装任何“ .exe”,这意味着无论用户需要什么交互,都应使用Powershell继续进行默认选择(例如:许可协议)

any reference or links will help 任何参考或链接将有所帮助

[Discussed Below: Mostly wanted to install visual studio and visual studio related update] [下面讨论:主要是想安装Visual Studio和与Visual Studio相关的更新]

如果您是在谈论Visual Studio和一般的Microsoft产品,则应查找无人参与的安装,例如: 如何:创建和运行Visual Studio的无人参与安装

For Visual Studio below command works: 对于Visual Studio,以下命令有效:

 Start-Process -FilePath "C:\Installs\VS2013\vspremium.exe" -ArgumentList "/adminfile C:\Installs\VS2013\AdminDeployment.xml /passive /norestart" -Wait -NoNewWindow -PassThru

Also in the AdminDeployment.xml file you can make NoWeb="yes", it works otherwise as well. 另外,在AdminDeployment.xml文件中,您可以使NoWeb =“ yes”,否则它也可以正常工作。

<BundleCustomizations TargetDir="default" NoWeb="yes"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用powershell在不安装的情况下提取exe文件? - How to extract exe file without installing it, using powershell? 在没有任何用户提示的情况下安装CitrixReceiver.exe - Installing CitrixReceiver.exe without any user prompts 使用PowerShell在远程服务器上安装可执行文件(.msi / .exe)时出错 - Getting error in installing executables (.msi/.exe) on remote servers using PowerShell 如何在没有安全提示的情况下使用 powershell 脚本访问 outlook object? - How to access outlook object using powershell script without a security prompt? 我在脚本中设置的PowerShell中安装.msi或.exe文件时遇到问题 - I'm having a trouble installing a .msi or .exe file in PowerShell set in my script 无需用户干预即可自动执行磁盘清理 cleanmgr.exe 的过程 - Automate process of Disk Cleanup cleanmgr.exe without user intervention 使用 Powershell 的 VPN 连接没有任何提示 - VPN Connection using Powershell without any prompts 从PowerShell在远程计算机上安装.exe - Installing an .exe on a remote machine from PowerShell 自己的PowerShell手册中没有路径的语法 - Syntax without path in own PowerShell manual 在没有 prnadmin.dll 的情况下使用 powershell 安装“打印机表单”? - Installing 'printer forms' using powershell without prnadmin.dll?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM