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