ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Temporary files not present after reboot

The very first step of my installation is a LaunchExeWithDirectory custom action which checks for a license on the machine. This is accomplished with temp files that are copied to the temp folder. It works great.

Frequently a reboot is required as part of the installation. After the reboot, the installer resumes, the custom action runs again, and the temporary files are no longer there.

When are the temporary files removed? Is there any way to alter that?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Temporary files not present after reboot

Hello,
When are the temporary files removed?
The temporary files are removed during the InstallFinalize standard action (when the installation ends). However, given your case when a reboot is required (and the setups ends earlier), I think that the temporary files are also deleted before the reboot.
Is there any way to alter that?
To avoid the above problem, you can try to check the "Do not remove the file when setup ends" options from the "Edit Temporary File" dialog (go to "Files and Folders" page --> right click on your temporary file --> "Properties").

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Temporary files not present after reboot

Seems to work.

Thank you very much!
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Temporary files not present after reboot

You are always welcome.

Glad to help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”