[英]I can't hide my process WPF
Finally give up on this, How can I hide this process. 最后放弃这个,我该如何隐藏这个过程。
Basically I want to do background Installation. 基本上我想做后台安装。 It did't ask for next and all.
它并没有要求下一个。 I just don't want that installation screen what should I do.
我只是不希望安装屏幕该怎么办。 Thank you
谢谢
void _bw_DoWork(object sender, DoWorkEventArgs e)
{
string filePath = @"C:\Program Files (x86)\Microsoft\AlisInstallerDemo\AlisEmail.exe";
if (File.Exists(filePath))
MessageBox.Show("File Already Install ");
else
{
//Install software
Process p = new Process();
p.StartInfo.FileName = "msiexec.exe";
p.StartInfo.Arguments = string.Format("/qb /i \"{0}\" ALLUSERS=1", @"C:\Users\d.soni\Desktop\setup.msi");
p.StartInfo.Verb = "runas";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.Start();
p.WaitForExit();
}
You're explicitly requesting a window with /qb. 您正在使用/ qb明确请求一个窗口。 Run "msiexec /?"
运行“ msiexec /?” to see command line options.
查看命令行选项。 Perhaps you want "/qn" and "/quiet".
也许您想要“ / qn”和“ / quiet”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.