temporary internet files

When I do updates to software on my pc, somehow the installation finishes but when ccleaner runs, it hangs on the installation program (.exe).

I have to reboot to get ccleaner to remove that file in the temporary internet files folder.

Is that something that can be corrected?

Some installations should NOT be subject to CCleaner until AFTER a restart when the installer may wrap things up,

and some may PREVENT removal and cause CCleaner to hang if they have not yet had that restart.