how to prevent side by side Installations? - 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!

bharathkumarreddy.s
Posts: 19
Joined: Wed Feb 24, 2010 10:34 am

how to prevent side by side Installations?

Iam using AdvanceInstaller to create Installer.
I have one problem, if i install my application using Advanced Installer, it installs successfully.
if i reinstall it again, it shows three options 1.Modify,2.Remove,3.Remove. Again its fine.
Whenever i create new Installer to my application using AdvancedInstaller,and then install(without uninstall old one),it installs without showing any options.
And also it creates multiple instances(multiple icons)in controlpanel->Add or Remove Programs list.



note:i did not select "allow side by side option".

Please help me.

Thanks in Advance.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: how to prevent side by side Installations?

Hello,

You should not create a new project for each version of your application. Please read our tutorial on releasing updates.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
bharathkumarreddy.s
Posts: 19
Joined: Wed Feb 24, 2010 10:34 am

Re: how to prevent side by side Installations?

I don't want to use updater provided by AdvanceInstller.
We need to Install all files every time. so i need to build new installer every time.
My requirement is whenever i used installer, it needs to check for older versions(any version or same version installed),if available uninstall(show prompt to user),else install.

Please guide me...



Thanks in Advance...
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: how to prevent side by side Installations?

Hello,

The tutorial I posted applies even if you are not using our updater. It explains how a version of your product can update a previous one.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: how to prevent side by side Installations?

You do not need to create a new AI project each time you want to create an installer for the latest version of your product. If you do then each time, AI will generate a new product code for you. Windows installer will see them as separate products so when you install one of them, it will not detect that another one is installed because the product codes are different. That's what you're seeing when you mentioned that your projects are being installed side-by-side. They just appear to be installed s-b-s. They're actually separate products.

If you simply want to produce a new version of the msi containing the latest version of your application then open up the original AI project (they're stored in *.aip files) and do a build. AI will use the latest versions of your application's redistributable files when it recreates your msi. You'll also get the remove/repair functionality you were looking for as well.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: how to prevent side by side Installations?

Hello,
If you do then each time, AI will generate a new product code for you. Windows installer will see them as separate products so when you install one of them, it will not detect that another one is installed because the product codes are different.
Just to be sure the issue is correctly understood by new users, Windows Installer sees them as new products because the Upgrade Code is different, not the Product Code. See Product Identification for more information on this. The product code is different even between different versions of the same product, if not using patches.

What jwest is trying to say is, you should reuse your existing .aip project. Creating a new project is like creating a new product on its own. The guide I posted explains how to create an update regardless of whether or not you are using our updater.

Thank you jwest for helping. I hope this clarifies the update procedure a bit.

Let me know if it works for you.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”