We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

afreesoul
Posts: 10
Joined: Sun Jan 04, 2015 8:15 am

why not uninstall old version after change Product Code

Hi,

I am confused about Produce Code.

I install a App, then I change Product version to larger, and choose Major Upgrade which change Produce Code.
I build and run new App, It will not uninstall pre version.
I have checked "Automatically upgrade older product versions".

I have read Help document, and I find a describe that " You must allow the generation of the new product code if you want to allow the automated upgrade of older versions of the product" in Changing Version of Features and Functionality Page.

It is more strange that I have installed a App, and only modify a little in Dialog page, then build and Run.
But it show Error.1715 msg, say I have installed another version product, and must uninstall by control panel before new install.
why it don't uninstall my app directly?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: why not uninstall old version after change Product Code

Hi,
I am confused about Produce Code.

I install a App, then I change Product version to larger, and choose Major Upgrade which change Produce Code.
I build and run new App, It will not uninstall pre version.
I have checked "Automatically upgrade older product versions".

I have read Help document, and I find a describe that " You must allow the generation of the new product code if you want to allow the automated upgrade of older versions of the product" in Changing Version of Features and Functionality Page.
I'm not sure why the previous version is not uninstalled. Can you reproduce the behavior on multiple clean machines or in a new project?
It is more strange that I have installed a App, and only modify a little in Dialog page, then build and Run.
But it show Error.1715 msg, say I have installed another version product, and must uninstall by control panel before new install.
why it don't uninstall my app directly?
You can read the Why do I receive the "Another version of this product is already installed" message FAQ which explains why this problem appears.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
afreesoul
Posts: 10
Joined: Sun Jan 04, 2015 8:15 am

Re: why not uninstall old version after change Product Code

Thanks for Eusebiu's reply!
Eusebiu wrote: I'm not sure why the previous version is not uninstalled. Can you reproduce the behavior on multiple clean machines or in a new project?
I have reproduced the behavior on multiple clean machines and in a new project.
If I change product Code It always not uninstall old version.
But when I change product version I choose "Patch" which not change Product Code, It will uninstall old version before new install.

Am I understand wrong about Product Code?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: why not uninstall old version after change Product Code

Hi,
If I change product Code It always not uninstall old version.
Please note that if you change the Product Code, you must also change the version number, too. But this can be achieved (also recommended) only by increasing the version number from the "Product Details" page and selecting the "Major Upgrade" option.
But when I change product version I choose "Patch" which not change Product Code, It will uninstall old version before new install.
It will uninstall the old version if you run the application through Advanced Installer, using the "Run" toolbar button. Otherwise, the "Another version is already installed" error will be displayed.
Am I understand wrong about Product Code?
The "Product Code" is unique for each major version of a product (for each installation package). You can read more details in the Product Identification (ProductCode and UpgradeCode) article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”