New
#1
[SOLVED] AppCompatCache registry Windows 7 + database
Hello,
I can't delete once and for all the old content of this key (HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\AppCompatCache) and I'm becoming crazy, really. The content of the key back every shutdown of Windows, with nearly the same content. My problem is that the old, very old *.exe are kept (around 8 months) in this key.
During my tests, once, all old *.exe were deleted. Once but, I don't know really how. I tried with a delete of C:\WINDOWS\AppCompat & C:\WINDOWS\AppPatch and it seems it worked. But, after another test, there was no good result.
I logged every acts from Windows when it shutdown, and I don't see what it loads to write this key everytime between the opening of the key and the closing.
Now, I have :
- Program Compatibility Assistant is disabled in Services ;
- Both Windows' folders above are deleted ;
- Tasks with a link with Program Compatibility Assistant in Task Scheduler are deleted ;
- The content of Prefetch's Folder deleted (AgRobust.db + AgAppLaunch.db (I think for this file, I don't remember) could contain a link with AppCompatCache).
I'm depressing... I need your help...
I would like to delete the old content of AppCompatCache which keeps old paths + its executable because I have them until 8 months ago... It's a security break that I don't want keep until 8 months.
SOLUTION:
is the batch command. Then, you can schedule it for your needs. But, if you are a rigorous person, after each executable deleted or uninstalled, after the reboot of the computer when your executable is already deleted, launch this command. Because, AppCompatCache is wrote at the end of the Windows's shutdown procedure. So it's not possible to execute it efficiently for the shutdown.rundll32.exe kernel32.dll,BaseFlushAppcompatCache
Also, these both files contain old paths + executable like AppCompatCache. Delete them just after the batch command wrote above if they are present.C:\WINDOWS\Prefetch\AgAppLaunch.db
C:\WINDOWS\Prefetch\AgRobust.db
If you disabled services linked with Program Compatibility Assistant and Prefetch, these files need normally to be deleted once only.
Last edited by Kdmeizk; 05 Nov 2015 at 13:25.