ffc
Posts: 1
Joined: Fri Mar 31, 2006 7:05 pm

Changing Application Folder

I deployed a package with the application folder as one folder, but now I wish to update the program and change the folder, but with the new versions of advanced installer the updated program keeps being installed to the previous folder. How do I change or overrule this default.

As stated in help file
"When upgrading older versions, the install location of the previous version will be used as default for the current installation process. This applies only if both versions are build with Advanced Installer 3.8 or greater."

It seems that my only solution would be to build the package with advanced installer 7.1? Does anyone have a way to download this version?
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

What you want can be easily achieved with the use of a custom action.

Here is how it can be done:
- Use the [New Custom Action] toolbar button to add a new "Property Set With Formatted" custom action.
- Edit the "Property Name" field to "APPDIR" (without quotes).
- In the "Formatted Text" field enter the path you want for your application.
- Schedule this custom action to be executed under InstallUISequence->RMCCPSearch standard action.

Also, you can download AI 3.7.1 from the following URL location:
http://www.advancedinstaller.com/downlo ... dvinst.msi

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
foleym
Posts: 8
Joined: Mon Oct 02, 2006 7:51 pm

installing to new/different directory than previous installs

I am having this same problem.

I have an upgrade version that I now want to go into a new directory.
I have answered yes that I want to generate a new Product Code.

It seems to correctly recognize the upgrade but ignores my specification of the Company name which is now different and is the name of the new directory and wants to install into the directory used by the previous installs.

The response to this original post seems to target my problem but as I am using aip 4.2, the custom action toolbar does not seem to offer the ability to
add a new "Property Set With Formatted" custom action.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Create a "New Custom Action->Property Set With Formatted" custom action (from the toolbar menu) in both sequences "InstallUISequence" and "InstallExecuteSequence" under "LaunchConditions" standard action. Use following options for the custom actions:

1. Property Name: APPDIR
2. Formatted Text: [ProgramFilesFolder][Manufacturer]\[ProductName]
3. Execution Condition: APPDIR=""

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

Return to “Common Problems”