Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2021, 21:29
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 312
Rept. Given: 0
Rept. Rcvd 276 Times in 98 Posts
Thanks Given: 0
Thanks Rcvd at 275 Times in 86 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
Clearing *.CHM cache without Internet Explorer

The CHM file format has been used for many years for help files. It basically is an archive of many *.html and picture files and works similar to the offline version of a web page. Opening a CHM file on Windows will use some Internet Explorer shared DLLs in order to display its contents.

Microsoft has finally removed Internet Explorer from the most recent Windows 10 version. CHM files can still be displayed, but the "Internet Options" control panel application does no longer exist.

Does anybody know how to clear the "recent files", "visited links", "search history", "address autocomplete", ... for CHM files without the "Internet Options" control panel application?

I've already searched registry, C:\ProgramData\ and C:\Users\ for some of the entries in ANSI, UTF-8 and UTF-16 encoding but didn't get a single hit.

(Obviously: I don't want to install Internet Explorer again, I'm happy that it and most of its bugs are gone for good)
Reply With Quote
  #2  
Old 09-24-2021, 05:56
DominicCummings DominicCummings is offline
Friend
 
Join Date: Mar 2021
Posts: 12
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 24
Thanks Rcvd at 15 Times in 6 Posts
DominicCummings Reputation: 0
This isn't a direct answer, but I just felt it is worth mentioning that the chm files are themselves just 7x archives -- there are several other readers (e.g. xchm). I don't have a windows machine to hand at the moment, but have you looked at HKLM:\SOFTWARE\Microsoft\HTMLHelp\1.x ?
Reply With Quote
  #3  
Old 09-25-2021, 06:45
Stingered Stingered is offline
Friend
 
Join Date: Dec 2017
Posts: 160
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 200
Thanks Rcvd at 104 Times in 52 Posts
Stingered Reputation: 2
There is an old tool by Nirsoft, called IEcacheview.exe (has delete option). May help you find and delete files.

https://www.nirsoft.net/utils/ie_cache_viewer.html

You can also do this programmatically (code and tool):

https://www.codeproject.com/Articles/15319/A-Cleanup-API-for-Windows

And just code (Delphi):

Quote:
Procedure ClearIECache;
Var
lpEntryInfo : PInternetCacheEntryInfo;
hCacheDir : LongWord;
dwEntrySize : LongWord;
dwLastError : LongWord;
Begin
dwEntrySize := 0;
FindFirstUrlCacheEntry( NIL, TInternetCacheEntryInfo( NIL^ ), dwEntrySize );
GetMem( lpEntryInfo, dwEntrySize );
hCacheDir := FindFirstUrlCacheEntry( NIL, lpEntryInfo^, dwEntrySize );
If ( hCacheDir 0 ) Then
DeleteUrlCacheEntry( lpEntryInfo^.lpszSourceUrlName );
FreeMem( lpEntryInfo );
Repeat
dwEntrySize := 0;
FindNextUrlCacheEntry( hCacheDir, TInternetCacheEntryInfo( NIL^ ), dwEntrySize );
dwLastError := GetLastError;
If ( GetLastError = ERROR_INSUFFICIENT_BUFFER ) Then Begin
GetMem( lpEntryInfo, dwEntrySize );
If ( FindNextUrlCacheEntry( hCacheDir, lpEntryInfo^, dwEntrySize ) ) Then
DeleteUrlCacheEntry( lpEntryInfo^.lpszSourceUrlName );
FreeMem(lpEntryInfo);
End;
Until ( dwLastError = ERROR_NO_MORE_ITEMS );
End;
Reply With Quote
  #4  
Old 09-25-2021, 17:01
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 312
Rept. Given: 0
Rept. Rcvd 276 Times in 98 Posts
Thanks Given: 0
Thanks Rcvd at 275 Times in 86 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
The registry entries mentioned in the article are already empty, the files either don't exist or are 0 bytes long. IEcacheview doesn't show me any entries.

The Delphi code posted does indeed clear the "autocomplete" history. I still don't know where/how that information is saved, but I don't care as long as it is gone.

If executed a second time with no autocomplete entries present it will loop indefinitely, but you can Ctrl-C out of it.
Reply With Quote
The Following User Says Thank You to Kerlingen For This Useful Post:
Stingered (09-25-2021)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 13:05.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX
( 1998 - 2021 )