loganips
Posts: 22
Joined: Wed Jun 17, 2015 6:26 pm

Issue with temporary files when upgrading

My issue is that when upgrading an older version of my product, the temporary files I have in my installer are removed when the old version of my product is uninstalled. It seems like because the two installer share the same temp files, they are removed when the uninstall is run. I was able to work around this by using a custom action at the beginning of my installer that renames the temp file so that it isn't removed by the uninstall. Any better solutions would be great.

Thanks in advance,

Logan
loganips
Posts: 22
Joined: Wed Jun 17, 2015 6:26 pm

Re: Issue with temporary files when upgrading

Also, for future reference, at what point during the installation is the old package uninstalled?

Thanks,

Logan
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Issue with temporary files when upgrading

Hi Logan,

You can find a better solution for your problem which was recommended on the Installer uninstalling temporary files on upgrade thread.
Also, for future reference, at what point during the installation is the old package uninstalled?
The old version is uninstalled during the "Install Execution Stage -> Remove Resources" action group (you can see this in the "Custom Actions" page), before the new version to be installed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”