Uninstall existing product - Advanced Installer Community

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!

anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Uninstall existing product

Have following scenario; PC has 3 separate products installed by our company (each have their own separate installers). Now we have created a new product that has functionality of the previous 3 hence we would like first uninstall/disable the previous three programs programmatically.

So question is how do we detect if a product exists. We do have all three GUIDs product codes. Second if found how to uninstall them ideally silently.

Please suggest ideas to achieve above. Otherwise our users will continue using the old apps unknowingly which can cause data issues for us.

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall existing product

Hi,

Simply add the MSI packages of your three products in Upgrades page. This way you will create upgrade rules which make your new package automatically upgrade the old ones.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Uninstall existing product

Hello,

So I setup my Upgrades screen as follows:

********************************************************************************************************
Applications Versions
-- "Automatically upgrade older product versions" is selected
-- "Customize Advanced Installer upgrade rules" is un-checked

Order
-- "Uninstall old version and then install new version" is selected

Upgrades
-- Have one Upgrade code listed with Min ver 1 and option to "Find and remove" products in the Upgrade Action section.
********************************************************************************************************

Does not work. After the installer runs to completion the previous software still exists on the PC.

Generated an installer log trace file that is attached to this message.

I do not see where it is attempting to uninstall product for upgrade code {B9D9EF97-87CD-4318-A7EE-71F02D49E859}

What do you think I am doing wrong?
Attachments
TraceOutput.txt
Created using the options /L*VX
(117.78 KiB) Downloaded 388 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall existing product

Hi,

In Upgrades page did you use the New button to add upgrade rules for your old packages? I mentioned this approach in my first reply.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Uninstall existing product

Yes did the "New" it asked me to point to the MSI I cancelled that screen as did not have the msi on that PC. Then on the dialog behind it manually put in the product code.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall existing product

Hello,

As mentioned in this article, the entry in the Upgrades page is meant for the Upgrade Code, not for the Product Code.

Can you please copy the old .MSIs to your current working station and automatically extract their Upgrade codes using the browse predefined functionality?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”