以下代码在我的开发电脑上可以正常调用执行FirefoxPortable.exe;但打包安装到其他电脑后,这段代码调用的结果却是打开了“firefoxPath”这个目录,并没有运行“FirefoxPortable.exe”。怎么会这样?
开发工具:VS 2010
打包工具:Setup Factory 9
[code="java"]
private void openInternetBank(String url)
{
try
{
String firefoxPath = Path.GetTempPath() + "\InternetBankClient\FirefoxPortable";
String firefoxFileName = "FirefoxPortable.exe";
copyFirefox(firefoxPath, firefoxFileName);
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = firefoxPath + "\\" + firefoxFileName;
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
startInfo.Arguments = url;
Process.Start(startInfo);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
[/code]