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!

MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Temporary Files on Upgrade

Hi

I'm using Advanced Installer 12.7.1
I'm actually testing the upgrade of our installer and found a big problem. I'm using some Temporary files in my custom actions and I can reproduce that the temporary files are not extracted when performing the upgrade with an incremented version number.
Is this normal behavior?

Kind regards,
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Temporary Files on Upgrade

Hi Michael,

The problem is that you have the same extraction path for the temp files in both versions of your application, i.e. TempFolder. The solution is to create a sub-folder with a unique name for each version,
for example this name: [|ProductVersion], and place all the temp files in this folder. This will prevent the old version to accidentally remove the extracted files of the new version.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Re: Temporary Files on Upgrade

Hi Dan

thanks that solved the problem.
Perhaps Advanced Installer should show a warning on build when using temporary files in a non-version folder as this problem is not obvious.

Kind regards,
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Temporary Files on Upgrade

You're welcome Michael,

Indeed, we should find a way to make aware of this weird behaviour.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”