简体   繁体   English

MSI 安装程序。 错误 1603

[英]MSI installer. Error 1603

I am using MSI installer to upgrade my service from one version to another in Windows 7 and in windows server.我正在使用 MSI 安装程序在 Windows 7 和 Windows 服务器中将我的服务从一个版本升级到另一个版本。 The upgrade in windows 7 machine is working fine but it is failing in Windows Server 2012. Here is what I am doing - Windows 7 机器中的升级工作正常,但在 Windows Server 2012 中失败。这是我在做什么 -

  1. I am stopping the old release service using C# code.我正在使用 C# 代码停止旧的发布服务。
NativeWinServiceMethod.ControlService(service, NativeWinServiceMethod.SERVICE_CONTROL.STOP, ref lpServiceStatus); 
  1. Then removing all the files from installed path using MSI installer exe.然后使用 MSI 安装程序 exe 从安装路径中删除所有文件。

  2. And finally installing the new version again.最后再次安装新版本。

This upgrade works fine in windows 7 but failing in windows server.此升级在 Windows 7 中运行良好,但在 Windows 服务器中失败。 MSI log shows 1603 MSI 日志显示 1603

I know the cause of it now but need a solution for it - Cause -我现在知道它的原因,但需要一个解决方案 -原因-

MSI installer is uninstalling the previous version and starting to install the new version but before the previous version could be removed from the registry . MSI 安装程序正在卸载以前的版本并开始安装新版本,但在以前的版本可以从注册表中删除之前。 Since service removal from registry is taking time - new version service installation is failing.由于从注册表中删除服务需要时间 - 新版本服务安装失败。

While installing on Windows If you get 1603 error that maybe means you have failed to install visual studio redistributable package install problem.在 Windows 上安装时如果您收到 1603 错误,这可能意味着您未能安装 Visual Studio 可再发行组件包安装问题。 Maybe uninstall already installed version and try install new again can be fix this problem.也许卸载已经安装的版本并再次尝试安装新版本可以解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM