Temp folder not cleaning up
Posted: Fri Dec 06, 2013 7:12 am
Hello,
I'm running some tests here on our installer and it looks like InstallAware 18 is not cleaning up files in the Temp if a reboot/resume occurs during installation in Windows 7. The scenario is as follows:
1) InstallAware unpacks itself upon execution into a 7z(ID).tmp file in AppData\Local\Temp.
2) InstallAware runs various MSI's/Installers until a reboot is required. User clicks ok to initiate the reboot, but the original 7z(ID).tmp file is not removed when InstallAware exits right before the reboot.
3) When the computer comes back up, InstallAware extracts itself a second time but into a second 7z(ID2).tmp file.
4) If no other reboot occurs, InstallAware will cleanup the second 7z(ID2).tmp file but never touch the original 7z(ID).tmp file, leaving 2GB of data around on the users system.
If there are multiple reboots, then there will be 1+ files left in the temp folder depending on the number of reboots that occur during the installation. This scenario also happens in Windows XP when running InstallAware 12 but some of the files inside of the mia(ID).tmp folder are cleaned up (unsure of which ones). In both cases though, the original temp folder is not being cleaned up if a reboot/resume occurs. Is there anyway to have InstallAware clean up all of these temporary files, regardless of the a reboot/resume?
I'm running some tests here on our installer and it looks like InstallAware 18 is not cleaning up files in the Temp if a reboot/resume occurs during installation in Windows 7. The scenario is as follows:
1) InstallAware unpacks itself upon execution into a 7z(ID).tmp file in AppData\Local\Temp.
2) InstallAware runs various MSI's/Installers until a reboot is required. User clicks ok to initiate the reboot, but the original 7z(ID).tmp file is not removed when InstallAware exits right before the reboot.
3) When the computer comes back up, InstallAware extracts itself a second time but into a second 7z(ID2).tmp file.
4) If no other reboot occurs, InstallAware will cleanup the second 7z(ID2).tmp file but never touch the original 7z(ID).tmp file, leaving 2GB of data around on the users system.
If there are multiple reboots, then there will be 1+ files left in the temp folder depending on the number of reboots that occur during the installation. This scenario also happens in Windows XP when running InstallAware 12 but some of the files inside of the mia(ID).tmp folder are cleaned up (unsure of which ones). In both cases though, the original temp folder is not being cleaned up if a reboot/resume occurs. Is there anyway to have InstallAware clean up all of these temporary files, regardless of the a reboot/resume?