AWarn
Posts: 17
Joined: Wed Sep 14, 2016 11:32 am

Installer is not using original installation path during Update

Hello,

I am working on this issue now for a week and cannot get it fixed. I have released a previous version of our software (version 1.5.0.) some months ago. Now I would like to release the next Update using nearly the same project file just with updated files and some minor changes. For this task I would like that people who have the previous version will get automatically updated into the same (original) installation path. New users should be free to use any path via the Enhanced UI.
Therefore I used in "Upgrades" section "use original installation path ..." and also added a Property for an Upgrades Code. It looks as the installer can detect the old product because it executes my dialog button settings for the Upgrades Property which skips some dialogs. But later on it will always install to the default path as configured in "Install Parameters".

What is my mistake?
Attachments
installer.aip
(537.92 KiB) Downloaded 435 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer is not using original installation path during Update

Hi,

I'm not sure why you encounter this problem. Please make sure that your custom action does not reset the installation folder during the upgrade (e.g. "SetProperty" custom action that sets the "APPDIR" property).

In order to have more details, can you please send me a verbose log of the upgrade, so I can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AWarn
Posts: 17
Joined: Wed Sep 14, 2016 11:32 am

Re: Installer is not using original installation path during Update

Hi Eusebiu,

please find attached the installation log file. I found indeed a chustom action which changes the APPDIR. I have deleted this action now, but the problem remains.

Let me allow another question in this post:
Does the installer detect which installation type (typcal, custom, complete) was selected by the user in the previous version so that it only updates the files that are included in the specific installation type?
This would be needed when I skip the SetupTypeDialog.
Attachments
install_log.zip
(1018.83 KiB) Downloaded 333 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer is not using original installation path during Update

Hi,

I looked over the log file that you sent, but it does not seem to be created during an upgrade as the "OLDPRODUCTS" property is not set to any value (it should be set to the Product Code of the old version). Please keep in mind that this property is set and the old path is preserved only if the Upgrade Code of the new version is identical to the one of the first version.

Manually adding a new Upgrade Code in the "Upgrades" page of your project will only uninstall the versions related to that Upgrade Code if they are found on the machine.
Does the installer detect which installation type (typcal, custom, complete) was selected by the user in the previous version so that it only updates the files that are included in the specific installation type?
This would be needed when I skip the SetupTypeDialog.
Yes, the features installed with the old version of a product are preserved during the upgrade, but this also happens only in case the Upgrade Codes of the two versions are identical.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AWarn
Posts: 17
Joined: Wed Sep 14, 2016 11:32 am

Re: Installer is not using original installation path during Update

Hi Eusebiu,

I got my problems fixed! Thank you for your kind support.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer is not using original installation path during Update

You're welcome. I'm glad you solved this.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”