Installing app#2 in app#1 directory erases app #1! - 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!

jans
Posts: 2
Joined: Wed Mar 26, 2008 2:39 pm

Installing app#2 in app#1 directory erases app #1!

I have made three different installers using the Freeware edition of AI.
All three *.msi files installs apps in the same directory (e.g. C:/APP)
Installing only one app at a time works fine, however as soon as I try to install a second app, the first one is erased both in the Start-menu as well as in the C:/APP directory.

Is there a way to get around this problem?

I want the following to happen during install:
1) If folder C:/APP does not exist, create it.
2) If folder C:/APP exists, do not erase its content, but place app in it
3) If I uninstall one application, the rest of the folder must be left untouched
4) I want all the apps to be under the same heading in the Start Menu, e.g. Programs/Header/App1, App2, App3

About the install location C:/APP - These are old (Win95) programs so they do not work if I choose to install them according to Windows conventions, i.e. C:/Program Files/Appname.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Installing only one app at a time works fine, however as soon as I try to install a second app, the first one is erased both in the Start-menu as well as in the C:/APP directory.
In order to avoid this behavior you must create a new Advanced Installer project for each installation package. Also, you need to make sure that any two packages don't use the same installation path.
2) If folder C:/APP exists, do not erase its content, but place app in it
I'm not sure I understand what you mean. Can you please give me more details about this?

If the folder exists then another application is installed in it. If you install another application then the original one will be overwritten. In order to avoid this you should install each application into a different sub-folder of the "C:\APP" folder.

Note that you can set the default installation path in the "Install Parameters" page. For example, you can set it to:

Code: Select all

[WindowsVolume]APP\[ProductName]
This way, the application will be installed in a sub-folder of the "C:\APP" folder.
4) I want all the apps to be under the same heading in the Start Menu, e.g. Programs/Header/App1, App2, App3
In order to do this you can create the folder structure you want in the "Files and Folders" page. For example, you go to the "Start Menu\Programs" folder in the "Files and Folders" page and create the "Header\App1\" folder.

Basically, in the "Files and Folders" page you will add your start menu shortcuts in the "Start Menu\Programs\Header\App1" folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jans
Posts: 2
Joined: Wed Mar 26, 2008 2:39 pm

Hi Cosmin
In order to avoid this behavior you must create a new Advanced Installer project for each installation package. Also, you need to make sure that any two packages don't use the same installation path.
I have created three different installers for the three different programs. I may have been unspecific in my original post, so allow me to elaborate. I depend on three (old Win95) programs that all assume they are installed in a *specific directory* (e.g. C:/MYDIR). All data files created by these programs are stored in this directory and read from here.
If the folder exists then another application is installed in it. If you install another application then the original one will be overwritten. In order to avoid this you should install each application into a different sub-folder of the "C:\APP" folder.
Installing the programs in subfolders within this folder is therefore out of the question, cause they WON'T WORK.
We don't want to pay the cost of a programmer to modify these programs to exhibit more directory-agnostic behaviour (i.e. so they can be installed in other directories), but rather want to distribute them as-is.

I have already created a combo installer that installs alle three programs in the same installation path and this works perfectly. Because some customers only may want one or two of these programs, I created stand-alone installer projects for separate distribution.

Installing any two of these programs does NOT work, however, because the installation procedure erases whatever program is already installed in the C:\MYAPP directory, deleting valuable user data etc. in the process. This can be disastrous for the customer.

I find it strange that an Advanced Installer project defaults to overwrite whatever is installed in its installation path. As it can keep track of program versions and overwrite older with new, I see this "kill 'em all" attitude as a bit of a mystery. I was therefore wondering whether this was not "set in stone", but could be changed.

So to rephrase my original question:

Is there a setting somewhere in Advanced Installer (folder attributes etc.) that can change the installer's behaviour to just install the app in the specified directory without touching whatever may be stored in that path already?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Installing any two of these programs does NOT work, however, because the installation procedure erases whatever program is already installed in the C:\MYAPP directory, deleting valuable user data etc. in the process.
This is not the normal behavior when using independent packages, therefore most likely your packages are not configured correctly. Perhaps you somehow configured them to upgrade one another.

Can you please send us the AIP files you are using to support at advancedinstaller dot com so we can investigate them?

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

Return to “Common Problems”