我正在为msi制作自定义安装项目。 安装过程中,其中一个窗口有一个非常奇怪的问题。单击按钮时会显示一个显示对话框。安装程序在XP上正常运行,但在win 7安装程序没有响应,永远不会回来。 下面是我用来显示对话框的代码:
private void btnSetFileLocationWS_Click(object sender, EventArgs e)
{
saveFileDialog1.Title = "Set WS Log File Path";
saveFileDialog1.DefaultExt = "log";
saveFileDialog1.Filter = "Log files (*.log)|*.log|Text files (*.txt)|*.txt";
saveFileDialog1.FilterIndex = 0;
saveFileDialog1.RestoreDirectory = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
txtFilePathWS.Text = saveFileDialog1.FileName;
}
btnNextWSLogging.Enabled = EnableDisabledNextWSLoggingButton();
}
有人??
答案 0 :(得分:0)
MSI正在一个无法访问桌面的帐户下运行。 This thread建议了一种可能的解决方法,将AutoUpgradeEnabled设置为false。
要正确修复,您需要在MSI中设置msidbCustomActionTypeNoImpersonate,您需要使用Orca MSI editor。