无需人工干预即可运行setup.exe文件 [英] Run setup.exe file without human intervention

查看:130
本文介绍了无需人工干预即可运行setup.exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Visual Studio中制作的设置。当我运行它时,像每个设置屏幕一样,它给出了UI,我们给出了安装路径,然后按下 - >旁边安装。

是否有可能在没有UI的情况下运行它。可能是我可以通过命令提示参数传递安装路径并使用cmd运行安装程序。请建议我这样做的方法。



我尝试过:



我试过cmd启动setup.exe但ui出现...

解决方案

您是否尝试使用/ q开关启动setup.exe(这意味着 q uiet install)?


我可以推荐免费的 Inno安装程序安装程序https://www.slant.co/topics/4794/~installers-for-windows-programs [ ^ ]

你可以使用 / SILENT / VERYSILENT 命令行参数: Inno Setup帮助 [ ^ ]


 Proc essStartInfo startInfo = new ProcessStartInfo(< path_to_msi>,/ qn); 
Process.Start(startInfo);



这对我有用。谢谢!

Hi , i have a setup that i made in Visual studio. When i run it, like every setup screen it gives UI and we give intallation path and press next -> next to install.
Is there a possibility to run it without UI. may be i can pass intallation path as command prompt param and run the setup using cmd. Please suggest me approaches to do this.

What I have tried:

I tried cmd start setup.exe but the ui appears ...

解决方案

Did you try to launch your setup.exe with the /q switch (which means quiet install)?


I can recommend the free Inno Setup installer: https://www.slant.co/topics/4794/~installers-for-windows-programs[^]
You can use the /SILENT or /VERYSILENT command line parameter: Inno Setup Help[^]


ProcessStartInfo startInfo = new ProcessStartInfo(<path_to_msi>, "/qn");
 Process.Start(startInfo);


this worked for me. Thanks!


这篇关于无需人工干预即可运行setup.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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