msi文件未以静默方式安装。 [英] msi file is not installed in silently mode.

查看:185
本文介绍了msi文件未以静默方式安装。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Windows应用程序,它以静默模式安装msi文件,当我使用/ qb或/ qr它的工作但是当我尝试使用/ qn时,msi文件不是安装。下面是静默安装的完整代码。



i want to create a windows application which is install a msi file in silently mode , when i use the /qb or /qr it''s work but when i tried to used /qn, the msi file isn''t installed. below is full code for installing silently.

Process process = new Process();
process.StartInfo.FileName = "msiexec.exe";
process.StartInfo.Arguments = string.Format("/qn /i \"{0}\" ALLUSERS=1", "C:\\WinAppDemoSetup_3.msi");
process.Start();
process.WaitForExit();





请解决我的问题或给我另一种方法来执行此任务。



please resolve my problem or give me another way to perform this task.

推荐答案

请参阅我最近的回答:安静地安装exes [ ^ ]。



您正在通过启动另一个安装程序来编写一些安装代码。它似乎没有多大意义。为什么不首先进行必要的安装,没有这个中间人?



-SA
Please see my very recent answer: Install exes silently[^].

And you are writing some installing code by starting another installer. It does not seem making a whole lot of sense. Why not to make required installation in first place, without this "middleman"?

—SA


这篇关于msi文件未以静默方式安装。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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