Problem installing the same application in different folders - 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!

pat_fre
Posts: 2
Joined: Wed Apr 08, 2009 6:25 pm

Problem installing the same application in different folders

Hello,

I created an installation that starts a service. It allows me to choose the environnement that i want it to run.
Example if we have two environnements: TEST and PRODUCTION.

At the beginning of the installation, i ask to choose between TEST or PRODUCTION in a list box.

If he selects TEST, the installation will be in the folder /../programname_TEST/..
If he selects PRODUCTION, the installation is in the folder /../programname_PRODUCTION/..

The problem is that in our environnments, we always use both(TEST and PRODUCTION), but i don't want to install them always at the same time(in fact, we have more than 2 environnments).

When i install the first in the environnement TEST, it's ok.
But suppose te week after, i want to install the PRODUCTION environnment. I want to use the same installer, but it says "Another version is already installed... use add/remove programs in the control pannel"

I would like to use the same installer because i can have many environnements to install. The files installed are a .exe, .jar, a couple of libs and couple of folders for log files. It starts as a service.

How can i do this?


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

Re: Problem installing the same application in different folders

Hi,

Unfortunately Windows Installer cannot install a MSI multiple times on the same machine. However, you can try using the maintenance mode (Modify, Repair and Remove options) of the MSI to install additional environments.

Another approach is to use the multiple instances feature. This way you can create a different instance for each environment.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pat_fre
Posts: 2
Joined: Wed Apr 08, 2009 6:25 pm

Re: Problem installing the same application in different folders

Thanks for the answer.

If each environnement needs its own service to run, does the multiple instances feature is a solution?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem installing the same application in different folders

Hi,

Yes, you can condition each service with the instance id or with a custom property in the instance.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”