jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

"Uninstalled incorrectly" error on copied project files

We had a requirement that multiple versions of a product could be installed in the same machine.
Rather than creating a new project file. I copied the existing one, changed the product name and re-generated all codes in order for it to be considered as a different product.
They all install correctly in one machine but during uninstall, I get the "Uninstalled incorrectly" error.

To my knowledge and by checking the created package, I was able to confirm that installation folders and other settings were changed accordingly, since most of them is dependent on the "Product Name".

What did I miss to change? Could it be related to Registry Key Settings?

Thank you very much in advance!
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Uninstalled incorrectly" error on copied project files

Hello,

Please note that the recommended approach is to use the "Save as template" option.

Although you might changed the ProductCode and UpgradeCode, you still have the same GUIDs for your components. Since the components may have the same GUIDS, one of the problem that you may face is when uninstalling and there are files left behind. The uninstall does not remove everything. In the
why files are left behind after package uninstall? article you can see when this behaviour occurs.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

Re: "Uninstalled incorrectly" error on copied project files

Hi Dan,

Thank you very much for the quick response. I will try the template approach.
Hopefully, I won't have any other problems.

Regards,

Jonathan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Uninstalled incorrectly" error on copied project files

You're always welcome Jonathan,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

Re: "Uninstalled incorrectly" error on copied project files

Dan,

Good day!
It worked like a charm! Thank you!

Best regards,

Jonathan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Uninstalled incorrectly" error on copied project files

Hi Jonathan,

Thank you for the follow up. I'm glad you got this working.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”