方案1时: 我从运行Windows服务的代码和它失败的Windows事件日志:。 msi文件失败,“产品:XXX配置失败”之称
“产品:XXX - 配置失败”
方案2: 我运行这个作为一个普通的EXE和它的作品。
代码我想:
var installerFilePath = <Path of msi>;
System.Diagnostics.Process installerProcess;
installerProcess = System.Diagnostics.Process.Start(installerFilePath, " /q");
while (installerProcess.HasExited == false)
{
System.Threading.Thread.Sleep(250);
}
我尝试安装Windows MSIInstaller额外的记录,但它并没有记录任何。
请指教。
KG
是什么让你认为你可以从会话0安装这个软件包? –
建议在 http://stackoverflow.com/questions/2991286/visual-studio-packaging-another-version-of-this-product-is-already-installed固定它 – user1621026
该主题不讨论安装包在会话0中。即使可以在会话0中安装包,也可能无法安装该包。你的服务以什么用户身份运行? –