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!

nitin9
Posts: 6
Joined: Thu Oct 26, 2006 7:22 am

Events During Upgrade

Hi,

There is a script which runs during upgrade phase only, and which has to modify a text file in the folder just installed.There is also onemore script which runs duing first install only and which modifies a file in the installed folder. Assume that folder and file is same in both scenarios.This script works fine and can modify the file in the installed folder during the first installation. But the script which executes during upgrade cannot modify the file, beacuse it might be getting executed when folders are removed (and about to be reinstalled).I tried many events but the same happens. So , basically script in first install phase has no problem, but the script which fires during upgrade cannot find the folder as it has been removed.Both scripts are in InstallFinalize and are 'New Attached custom actions'.Later , I tried the upgrade script as 'New Installed Custom Action'. But this time same might be happening as the log shows that it could not read the file , because it did not find it.

Best Regards
Nitin
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Use this condition for the script you want to run only on upgrade:

Code: Select all

(Not Installed) AND OLDPRODUCTS
Hope this helps.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
nitin9
Posts: 6
Joined: Thu Oct 26, 2006 7:22 am

Thanks gigi :) . That has worked.That is the combination I missed !.

Return to “Common Problems”