Changing the installation path while upgrading in Silentmode - 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!

slonial
Posts: 13
Joined: Mon Dec 12, 2005 11:41 am

Changing the installation path while upgrading in Silentmode

Hi,

We are using advanced Installer 3.1.1 When we are installing our product
We are prompting the user to give the folder path or drive if we wants other than the default path.

If user changes the folder path or drive, product is installed at the changed location. Now we have Auto Upgrade option that to in silent mode
When upgrade happens in silent mode it will remove the folder that user has choosen and installs the product in default location

What is the best way to solve this issue ?

Thanx,
Sumit Lonial
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Sumit,

This problem had been fixed in the 3.8 version of Advanced Installer. From now on the default path of the upgrade packages will be the location where the original package was deployed, if the user doesn't select another location.

Here is how this could be achieved using the 3.1.1 version of AI:

- When creating the package with the higher version, you have to schedule a search for a component that is present in the previous version. This component must be chosen so that it's members are installed in the application folder.

In order to choose it open the project of the previous version of the package (the one who is being upgraded) in Advanced Installer. Go to the "Files and Folders" page and choose a file from the "Application Folder" in the tree. Now go to the "Organization" page and select the component that contains the chosen file. Copy it's GUID from the "Component Properties" pane.

It is very important that this component is always installed on the target machine.

- Return to the previous project and go to the "Search" page.
- Use the "New Search" toolbar button to add a new search. Edit the name of the appeared property to "TARGETDIR" (without the quotes).
- Use the "Add Location" toolbar button to select the "Component" option.
- Edit the GUID field to the guid copied before and be sure to select the "The keypath of the component is a directory" option
- Go to the "Install Parameters" page and edit the "Application Folder" fiels to "[TARGETDIR]" (without the quotes).

Please let me know if you encounter any problems.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
slonial
Posts: 13
Joined: Mon Dec 12, 2005 11:41 am

Hi,

I have used latest version of Advanced installer 3.8 and the problem gets rectified. We are having maintenance contract with Advanced installer
that gets over before the the release data of 3.8 version ,
but I have tested with trial version.

Thanx,
Sumit

Return to “Common Problems”