tuonghuynh
Posts: 4
Joined: Thu Jan 04, 2007 11:43 pm

Re build msi

Hi,

I created an installer for my app and build it. It's work fine. However, when I change or up date some files and rebuild it (without any version change or update). I got the following message:

"Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing of this product, use Add/Remove Programs on the Control Panel."

All I want is when user run the new msi package, I ask user to remove the existing version and install the new one. Can I do this ?

Thanks
TuongHuynh
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

With each build a new PackageCode is generated. This is why you get that message. Read more about PackageCode here:
http://msdn2.microsoft.com/en-us/library/aa370568.aspx
All I want is when user run the new msi package, I ask user to remove the existing version and install the new one. Can I do this ?
To manage an upgrade the ProductCode and ProductVersion must be changed. Read more abut this here:
http://www.advancedinstaller.com/user-g ... tches.html
http://www.advancedinstaller.com/user-g ... rsion.html

Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

I installed my full package (.exe) on the client, then tried to "update" some files with an MSI package. I got the same error:

Another version of this product is already installed. Installation of this version cannot continue.

I did update the product version on the msi project to 1.0.1. This did generate different product codes:

<ROW Property="ProductCode" Value="1033:{DD4D9CEC-CC20-4F0C-8664-5B0CC083F70D} "/>

<ROW Property="ProductCode" Value="1033:{629EF2F4-AFA2-4733-88A7-22D987B8EF49} "/>

Am I missing something else? out of the 3 digits in the Product version, do I have to change them more dramatically?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I cannot reproduce this behavior on my test computer. Have you tried to reproduce this issue on other computer?

Kind Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”