Uninstall fails after several installs - Advanced Installer Community
BMarx
Posts: 5
Joined: Tue Jan 07, 2014 11:17 am

Uninstall fails after several installs

We have recently changed from InstallShield to Advanced Installer Professional with our Product.
We have started with Advanced Installer using a new upgrade code for a new Major Product Version (Upgrade Code). So we don't need to upgrade from an InstallShield installed version to an AdvancedInstaller Version.
We create a SingleImage Exe-Installer package.
We build a newer Version of our Software with generating a new Product Code for all Languages (we leave the Upgrade Code) in the Advanced Installer Project and then building it.
We don't increment the product version every time because very often we just have another build of our software.
Customers usually install the new version of our Software into the same destination folder wihout uninstalling the older version.
Single Installation and uninstall works but when I install a newer version on top of an existing Version (both from same Advanced Installer Project!) I can’t uninstall any more.
This always worked fine with the InstallShield packages of our product.

I have attached two log files and for other log files I found on the targed system which seemed to be involved as well:
Testing is in a clean VMware Version of Windows7 Ultimate 64Bit.
At first I installed package 1, then package 2 on top of package 1 without de-installation of package 1.
After that I tried to de-install our software. The Installer windows starts but the de-installation process gets stopped (without any message or messagebox) and the software is not removed! Not from the installation list and not from harddisk. No log file is created.
When I try to deinstall the software a second time I get a message like "can't deinstall software which is not installed".

We like Advanced Installer more than InstallShield, its more stable, faster and easier to understand but we need to get this fixed.

Please help us to find out the right settings for our product.
I have attached the log files and our advanced installer project.
Attachments
LogFiles.rar
Logfiles of installation /L*V "C:\log\example.log" for Bootstrapper
(138.63 KiB) Downloaded 225 times
Advanced Installer Uninstall Problem.rar
Advanced Installer Project an uninstall Log files
(151.57 KiB) Downloaded 232 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall fails after several installs

Hi and welcome to Advanced Installer forums.

Sorry for the delayed reply.
We build a newer Version of our Software with generating a new Product Code for all Languages (we leave the Upgrade Code) in the Advanced Installer Project and then building it.
Please keep in mind that if you change the "Product Version" field, all this work is done automatically by the Advanced Installer application.
We don't increment the product version every time because very often we just have another build of our software.
I'm afraid I don't fully understand what you mean by "another build", however please keep in mind that this is not recommended when creating a MSI-based package and this is also causing the problems that you encounter on uninstall.
Customers usually install the new version of our Software into the same destination folder wihout uninstalling the older version.
If you want to update only some files and settings of an application you should use the Patch feature as described in the Authoring a Windows Installer patch tutorial.
Single Installation and uninstall works but when I install a newer version on top of an existing Version (both from same Advanced Installer Project!) I can’t uninstall any more.
This happens because both versions that you install, have the same GUID number for most of their components that are displayed in the Organization page. This means that those components will be shared between the two packages and when one of them is uninstalled, all shared components are not removed because the other package needs them. This can also be seen in the uninstall log file:

Code: Select all

Disallowing uninstallation of component: {CED7B6A0-2035-37FB-9F32-8C5C38AC6535} since another client exists
This always worked fine with the InstallShield packages of our product.
I'm not sure how InstallShield logic works, but maybe the components' GUIDs are changed automatically when the Product Code is changed.
After that I tried to de-install our software. The Installer windows starts but the de-installation process gets stopped (without any message or messagebox) and the software is not removed! Not from the installation list and not from harddisk. No log file is created.
As I mentioned above, this happens because the uninstaller sees that the components are shared and it does no action on them.
When I try to deinstall the software a second time I get a message like "can't deinstall software which is not installed".
This happens because the second package overwritten, in that list, the entry of the first package. Also, when you try for the first time to uninstall the package, all the information about the second package are removed and when you try for the second time to uninstall it, its information (basically its Product Code) are not found and the "software is not installed" message is displayed.
We like Advanced Installer more than InstallShield, its more stable, faster and easier to understand but we need to get this fixed.
We are glad you like Advanced Installer, however the approach that you tried is not the proper one. Even if InstallShield was more permissive, some garbage should have remained on the users machines.

As I mentioned above, the recommended solution for you is to create a patch or you can create a major upgrade by increasing the Product Version of the application. If you really want to proceed as you explained, then you should change all the components' GUIDs when you create a new version, but it is not recommended at all.

Let us know if you have any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BMarx
Posts: 5
Joined: Tue Jan 07, 2014 11:17 am

Re: Uninstall fails after several installs

Thank you for your help.
After incrementing the software version, deinstallation worked as expected.

As I read in the online help of Advanced Installer the maximum Version Number can be "255.255.65535.65535".
So a combination of build number und third digit of our version should be possible.
Better would be using the last part of the number but in the online help is mentioned that windows ignores the last part.

I now have the build process automated that the build number is automatically added to the version number and set via command parameter to Advanced Installer.
This made the creation of our software images even simpler.

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall fails after several installs

You're welcome. Glad to help.

Just let us know anytime you need help.

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

Return to “Common Problems”