murgo
Posts: 4
Joined: Wed Feb 27, 2013 11:46 am

Installer uninstalling temporary files on upgrade

Hello,

we are having a slight problem with Advanced Installer 9.9. We have custom action, that runs an EXE file from temporary files. On initial install, this works as expected. During upgrade to newer version, the temporary files are first installed on startup, then on uninstall phase they are removed, and when the custom action is run (between Add Resources step and Finish Execution step in Install Execution Stage), it fails because the temporary files are no longer there.

I just want to run the temporary file on every install and upgrade (not on uninstall). Execution time on the Custom Action is "deferred", but when set as "commit" the symptoms persist.

Is this a bug? Any workarounds?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer uninstalling temporary files on upgrade

Hello,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project file) and a verbose log of the upgrade installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installer uninstalling temporary files on upgrade

Hi,

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,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
murgo
Posts: 4
Joined: Wed Feb 27, 2013 11:46 am

Re: Installer uninstalling temporary files on upgrade

Thanks, that resolved the issue.

Return to “Common Problems”