It seems like there is a bug in Advanced Installer when you use temporary files and upgrading a previous version.
The problem is that when you add temporary files to the project, for instance to use in custom actions, Advanced Installer creates three custom actions; AI_ExtractTempFiles, AI_RemoveAllTempFiles and AI_RemoveTempFiles (which are undocumented?!). However, since AI_ExtractTempFiles is sequenced before RemoveExistingProducts, the temporary files are installed first, and then during the removal of the previous version, the temporary files are removed with the AI_RemoveAllTempFiles action. Once the installation of the new version continues the files doesn't exist anymore and the custom actions fails.
Possible solutions/workarounds are to either sequence AI_ExtractTempFiles to after InstallInitialize, or to set a condition on the AI_Remove* actions.
/Staffan
FOLLOW US
Get the latest news in Application Packaging