简体   繁体   中英

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. The upgrade in windows 7 machine is working fine but it is failing in Windows Server 2012. Here is what I am doing -

  1. I am stopping the old release service using C# code.
NativeWinServiceMethod.ControlService(service, NativeWinServiceMethod.SERVICE_CONTROL.STOP, ref lpServiceStatus); 
  1. Then removing all the files from installed path using MSI installer exe.

  2. And finally installing the new version again.

This upgrade works fine in windows 7 but failing in windows server. MSI log shows 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 . 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. Maybe uninstall already installed version and try install new again can be fix this problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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