I have run into an issue while going through the process of getting Updating to work.
The update method used is to do an uninstall and then install.
My problem is as follows:
- I have several custom actions which rely on files in the Temp folder, and these all run perfectly well on a clean install.
- When it comes to updating however, the custom actions fail, as it seems the Temp files have been removed as part of the
AI_RemoveAllTempFiles
action
This action seems to be getting done after install initialize and after install finalize. Is there a way to turn off the removal of temp files on updating, or should I just remove the AI_RemoveAllTempFiles action that is being done at install initialize?
I have attempted to use the OLDPRODUCTS property to try and stop the AI_RemoveAllTempFiles action but it doesn't seem to have worked. By this I mean I have modified the InstallExecuteSequence table to have a condition of OLDPRODUCTS =""
for AI_RemoveAllTempFiles
entry