foleym
Posts: 8
Joined: Mon Oct 02, 2006 7:51 pm

installing to new/different directory than previous installs

Hi,
We currently have an installed package built using the Advanced Installer 4.2.
This has worked well for us through several versions of our app. We
now need to change the name of the installation directory where the app
is placed. Therefore if the app is already installed in the old directory
we want to remove it from there and install the app in the new directory.
If the new directory already exists we want to validate that a new
installation is merited, and if so install into the new directory.

I have not been able to figure out how, if at all, this is possible...

Thank you!

Mark Foley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
We now need to change the name of the installation directory where the app is placed. Therefore if the app is already installed in the old directory we want to remove it from there and install the app in the new directory.
This is done automatically by Advanced Installer on upgrade. When you change the "Product Version" you need to choose yes when you are asked to generate a new product code.
If the new directory already exists we want to validate that a new
installation is merited, and if so install into the new directory.
Please give me more details about this.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
st279
Posts: 19
Joined: Mon Jul 10, 2006 11:21 am

Changed name of application folder for upgraded version

I am having problems with this. We have just changed the name of our product and it has had quite a big overhaul since the last version but we still need it to upgrade correctly.

I have got the 'Automatically upgrade older versions' box checked but at the moment the files of the new install are being put in an installation directory named as the old product name rather than in a directory named for the new product. It seems as if the APPDIR property is being set to the old name rather than the default being the new one. Is there any way to override/set the name of the APPDIR property early in the install process so that the files get written in the new directory or is there another solution to this problem?

Thanks
Sian
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I think you miss something when you create the upgrade package. Are you sure that you do like this:

1. You have started both packages from the same AIP file (using the "File->Save As" option).
2. You have the same "Versioning" and "Installation Type" options for both packages.
3. When you increase the version of the new package you choose yes when you are asked to generate a new product code.
4. You change the "Product Name" from the "Product Details" page.

If the problem persist please send both AIP files (if not contain any confidential informations) to support at advancedinstaller dot com in order to investigate the problem.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”