Hi,
I have a strange issue which I am encountering with a Temp File in one of my aip project.
Issue: Values in Temp File is not getting updated.
I have added a Temp File (TXT File) using Add Temporary Files section in one of my Advanced Installer Project and making use of it one of my custom actions which gets executed at the time of applying the patch. These values will get changed when ever we try to build a new patch. Here the issue what I am encountering is values are not getting updated, it always shows me the old values.
Let's say I create a Temporary File for the first time in name of BackupList.txt with the following contents DLL1.dll, DLL2.dll, DLL3.dll to the project and create Hotfix 1, I am able to get correct values in my Custom Action at the time of applying patch. And while creating Hotfix 2, if I try updating the contents of BackupList.txt to DLL4.dll, DLL3.dll I am still seeing the values as DLL1.dll, DLL2.dll, DLL3.dll itself in the Custom Action.
I have gone to the temp location in which the temp file gets created, and found that system is trying to create a file which had old values(DLL1.dll, DLL2.dll, DLL3.dll) all the time.
So, as a workaround what I have tried is to remove the BackupList.txt from the Temp Folder location and added a new file in name of UpdatedBackupList.txt from which I am able to read the correct values. Here the other issue what I have observed is it started creating two Temp Files into Temp Location Folder one is BackupList.txt and UpdatedBackupList.txt at the time of applying 2nd patch.
Note: BackupList.txt was deleted while generating the 2nd Patch.
Could you please let me know whether it is default behavior of advanced installer or else I am doing something wrong?
Please find the attached sample for reference:
Issue which I had encountered with workaround approach:
Upon installing the hotfix it tries to copy two files (UpdatedFileList.txt, UpdatedList.txt) instead of one(UpdatedList.txt) into Temp folder.
Actual Issue:
UpdatedFileList.txt which gets updated by us upon building each and every patch is not getting reflecting, instead it always shows the old information.
Note: I am using Advanced Installer 17.7 Version and even I have tried with Version 18.00 which got release few days back. It's still the same.
Regards,
Sandeep.