我不知道如何用任何参数开始setup.exe
。
实际上,尝试一下这段代码,但是有些地方出错了:
Dim p As New ProcessStartInfo
p.FileName = Application.StartupPath & "\Content\Office\2013_ALL\x86\setup.exe"
p.Arguments = Application.StartupPath & "\Content\Office\2013_ALL\x86\setup.exe" & "/configure .\365HomePrem86.xml"
p.WindowStyle = ProcessWindowStyle.Normal
Process.Start(p)
如果你有办法解决这个问题,请告诉我!
我希望像这样启动setup.exe (.bat文件):
start setup.exe /configure .\365HomePrem86.xml
发布于 2015-08-08 03:02:57
试试下面的。您不需要参数() setup.exe的完整路径,property...just给它参数。有时,还需要设置WorkingDirectory()才能使应用程序正常工作:
Dim p As New ProcessStartInfo
p.FileName = Application.StartupPath & "\Content\Office\2013_ALL\x86\setup.exe"
p.WorkingDirectory = System.IO.Path.GetDirectoryName(p.FileName)
p.Arguments = "/configure .\365HomePrem86.xml"
p.WindowStyle = ProcessWindowStyle.Normal
Process.Start(p)
https://stackoverflow.com/questions/31889105
复制相似问题