arnaud.humilier
Posts: 12
Joined: Wed May 19, 2010 10:19 am

Two application installed on same directory: uninstall faile

Hello,

I have an issue which I believe is related to Advanced Installer, and not directly MSI.
If I create two different installation package and install both to the same directory (C:\Program Files (x86)\MyCompany\MySoftware), the first application I will try to uninstall will fail on uninstallation.
This can be reproduced several time and present since several Advanced Installer major versions.

Thank you for your help.
GlenT
Posts: 118
Joined: Mon Jul 16, 2012 8:44 pm

Re: Two application installed on same directory: uninstall f

Do you use the same product code for both? The same upgrade code? Is it your intention to allow the two products to share the same folder, or do want one product to replace the other one? Do they share any of the same file names?
arnaud.humilier
Posts: 12
Joined: Wed May 19, 2010 10:19 am

Re: Two application installed on same directory: uninstall f

Thank you for your quick reply.
Both app use a different prodcut code / upgrade code. It is my intention that the two products share the same folder without replacing each other.
In that case they share two same config file that the second package will override yes. I tried "Do not registrer this component with Windows Installer" and "Shared amongst packages" option without sucess.
GlenT
Posts: 118
Joined: Mon Jul 16, 2012 8:44 pm

Re: Two application installed on same directory: uninstall f

You may have to do the same with the application folder(s).
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Two application installed on same directory: uninstall f

Hello,

Can you please send us the .AIPs (project files) of your installed products and a verbose log of the failing uninstall so we can investigate?

Also, if you would be able to isolate the behavior in a buildable sample (AIPs + their referenced files) this would be very useful for us.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arnaud.humilier
Posts: 12
Joined: Wed May 19, 2010 10:19 am

Re: Two application installed on same directory: uninstall f

Thank you for your answer.
There is finally no need for further investigation, the problem came from two components having the same CLSID between both aip files. I don't know how it came to that... but now it is fixed by generating a new CLSID for the component in one of the aip files.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Two application installed on same directory: uninstall f

Hello,

I'm glad that you sorted things out.

This may happen if you have manually copy-pasted the second .aip (project file) by starting from the other. Please keep in mind that it is not recommended at all to copy-paste a .aip in order to create another installation project starting from an already existing one. If you want to create a new installation project (for a new product) which should inherit the settings of an already existing one, then you should use our "Save as template" option to create a template project from which you can create an unlimited number of new installation projects having the same default settings.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”