简体   繁体   English

如何在远程计算机上静默安装?

[英]How to install silently on a remote computer?

I want to install an application on a remote computer. 我想在远程计算机上安装应用程序。 I run the setup.exe file by Win32_Process but, it does not work. 我通过Win32_Process运行setup.exe文件,但是它不起作用。 the outparameter of Win32_Process returns Zero (based on MSDN-WMI, it means the process runs completely) and i can see my setup.exe process line on the process list of the remote computer but in reality it did not run. Win32_Process的参数返回零(基于MSDN-WMI,这意味着进程完全运行),我可以在远程计算机的进程列表上看到我的setup.exe进程行,但实际上它没有运行。 No installation happen. 没有安装发生。

I can not work with setup.msi, because it does not install .net framework that i set as prerequisites. 我不能使用setup.msi,因为它不会安装我设置为必备组件的.net框架。

How can i run a setup.exe silently on a remote computer? 如何在远程计算机上静默运行setup.exe?

Have you tried Advanced Installer. 您是否尝试过高级安装程序。 I is quite simply and would probably handle your silent install thing. 我很简单,可能会处理您的无提示安装。 Here is the link http://www.advancedinstaller.com/download.html 这是链接http://www.advancedinstaller.com/download.html

Read more no the silent install here http://www.advancedinstaller.com/user-guide/qa-silent-install.html 在此处详细了解否无提示安装http://www.advancedinstaller.com/user-guide/qa-silent-install.html

I have used it and it has a prerequisite option where you can add the .net 4.0 or any other version as a prerequisite to your EXE. 我用过它,它有一个先决条件选项,您可以在其中添加.net 4.0或任何其他版本作为EXE的先决条件。 You can specify the link for the download also. 您也可以指定下载链接。 I suppose you can also make it work in the background 我想您也可以使其在后台运行

Normally a package is delivered silently through a distribution system such as SCCM or similar that operates at an Active Directory level. 通常,程序包是通过在Active Directory级别运行的分发系统(例如SCCM或类似系统)以静默方式交付的。

However, you should be able to install remotely using the setup.exe command line parameters for an Installshield setup if the setup in question has been created using Installshield. 但是,如果有问题的安装程序是使用Installshield创建的,则应该能够使用Setup.exe命令行参数对Installshield安装程序进行远程安装。

The overall idiea is that you pass command line to the msi inside the setup by the /v parameter followed by a valid msiexec command line. 总体思路是,通过/ v参数将命令行传递到安装程序内的msi,然后是有效的msiexec命令行。 The /s is used to run silent. / s用于静默运行。 I don't have a setup.exe to try right now, but this should work: 我现在没有setup.exe可以尝试,但这应该可以工作:

setup.exe /s /v"/L*v c:\log.log /qn"

Here are some good links: 这里有一些很好的链接:

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM