Temp folder not cleaning up

Got a problem you cannot solve? Try here.
skincaid
Posts: 2
Joined: Tue Jan 15, 2013 8:31 am

Temp folder not cleaning up

Postby skincaid » 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?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Temp folder not cleaning up

Postby FrancescoT » Fri Dec 06, 2013 12:51 pm

Dear User,

probably I haven't been able to follow your identical steps, but I am unable to replicate your issue.

If you are able to replicate this behavior with a test project, post it and I'll try to verify it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

skincaid
Posts: 2
Joined: Tue Jan 15, 2013 8:31 am

Re: Temp folder not cleaning up

Postby skincaid » Fri Dec 06, 2013 1:36 pm

There isn't anything that's specifically ours in this prerequisite installer. Our project consists of the following:

.NET 2.0 with Service Pack 2
.NET 3.0
.NET 3.0 Service Pack 2
.NET 3.5 with Service Pack 1
.NET 4.0
.NET 4 Client
Microsoft SQL Server Express 2008 R2
C++ Runtime 10.0
Windows Installer 4.5
Microsoft XML Parser 6.0.

If you enable these in the application runtimes, build an installer, and run the installer on a machine that would require multiple reboots with this configuration (Windows XP). It should be reproducible.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Temp folder not cleaning up

Postby FrancescoT » Mon Dec 09, 2013 11:47 am

let me check.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 130 guests