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
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).
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.
FOLLOW US
Get the latest news in Application Packaging