I am using windowds installer (*.MSI) set-up project to create MSI file for my Windows Desktop Module.
The installation is done in silent mode (not using the installation wizard) using command like
Setup.msi /q /Lv "mylog.txt"
For every change made in the code , i create a new set-up file with updated assembly number, Set-up Version number- which updates product code as well.
Also 'Detect Newer Installed version' property is set to True.
I came across a case where set-up number 1.1.115 is installed and still user tries to install set-up number 1.1.114. using the above command.
As expected installation fails as newer version is already installed but it returned incorrect error code as below.
The install fails because of
MSI (s) (64:08) [10:06:42:216]: Product: "Product name" -- Unable to install because a newer version of this product is already installed.
We are getting error 1603 and I am expecting 1638
ERROR_INSTALL_FAILURE 1603 Fatal error during installation.
I am expecting
ERROR_PRODUCT_VERSION 1638 Another version of this product is already
installed. Installation of this version
cannot continue. To configure or remove
the existing version of this product, use
Add/Remove Programs on the Control Panel.
We always get Error Code 1603 instead of 1638.
i did googled for it but could not come to a conclusion.
Experts please let me know if you have faced this issue before?
What changes do i have to make in setup project in order to get correct ERROR CODE?