Jump to content

Recommended Posts

Posted

Don't you hate it when you install your compression software - 7-zip, winzip, winrar ... whatever you flavour is and then they change all the icons to THEIR icon for ALL archive formats? Here's a simple solution (first uninstall zip folders):

@ECHO OFF
REG ADD HKCR\.iso /VE /D "isofile" /F
REG ADD HKCR\.iso /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\isofile /VE /D "ISO Archive" /F
REG ADD HKCR\isofile\DefaultIcon /VE /D "%SystemRoot%\System32\shell32.dll,188" /F



REG ADD HKCR\.zip /VE /D "zipfile" /F
REG ADD HKCR\.zip /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\zipfile /VE /D "ZIP Archive" /F
REG ADD HKCR\zipfile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F



REG ADD HKCR\.tar /VE /D "tarfile" /F
REG ADD HKCR\.tar /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\tarfile /VE /D "TAR Archive" /F
REG ADD HKCR\tarfile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F



REG ADD HKCR\.gz /VE /D "gzipfile" /F
REG ADD HKCR\.tgz /VE /D "gzipfile" /F
REG ADD HKCR\.gz /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\.tgz /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\gzipfile /VE /D "gzip archive" /F
REG ADD HKCR\gzipfile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F



REG ADD HKCR\.bz2 /VE /D "bzipfile" /F
REG ADD HKCR\.tbz2 /VE /D "bzipfile" /F
REG ADD HKCR\.tb2 /VE /D "bzipfile" /F
REG ADD HKCR\.bz2 /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\.tbz2 /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\.tb2 /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\bzipfile /VE /D "bzip2 compressed file" /F
REG ADD HKCR\bzipfile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F



REG ADD HKCR\.7z /VE /D "7zipfile" /F
REG ADD HKCR\.7z /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\7zipfile /VE /D "7-Zip Archive" /F
REG ADD HKCR\7zipfile\DefaultIcon /VE /D "%SystemRoot%\System32\7z.ico" /F



REG ADD HKCR\.rar /VE /D "rarfile" /F
REG ADD HKCR\.rar /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\rarfile /VE /D "RAR Archive" /F
REG ADD HKCR\rarfile\DefaultIcon /VE /D "%SystemRoot%\System32\rar.ico" /F



REG ADD HKCR\.lha /VE /D "lhafile" /F
REG ADD HKCR\.lha /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\.lhz /VE /D "lhafile" /F
REG ADD HKCR\.lhz /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\lhafile /VE /D "LHA Archive" /F
REG ADD HKCR\lhafile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F



REG ADD HKCR\.ace /VE /D "acefile" /F
REG ADD HKCR\.ace /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\acefile /VE /D "ACE Archive" /F
REG ADD HKCR\acefile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F



REG ADD HKCR\.arj /VE /D "arjfile" /F
REG ADD HKCR\.arj /V "Content Type" /D "application/x-zip-compressed" /F
REG ADD HKCR\arjfile /VE /D "ARJ Archive" /F
REG ADD HKCR\arjfile\DefaultIcon /VE /D "%SystemRoot%\System32\zip.ico" /F

This is a WIP.

You should run this file BEFORE installing your archiving software, it is included as a batch file so you can put it directly into another batch file. When you install your software - 7zip, winzip, winrar, whatever, you should allow it to add shell extensions -but not to associate itself with the file. Please let me know of other formats you would like to see included and also what other icons I could include/use. At the moment I've set most archives to the "Winzip icon" - I would be interested if you have other alternatives. I would eventually like to create a DLL file with all the icons in it so that you only have to copy one file into System32 ... if anyone knows of the best way to do this please LMK. Cabinent File is not included because it already has its own icon set (and disabling zip folders does not disable .cab folders - does anyone know how to do this?)

For now you can download the three required icons from my site directly:

http://plamdi.com/files/7z.ico

http://plamdi.com/files/rar.ico

http://plamdi.com/files/zip.ico

  • 5 weeks later...

Posted
At the moment I've set most archives to the "Winzip icon" - I would be interested if you have other alternatives.
There are lots of iconpacks lying around in the Internet. DeviantArt contains some, e.g. Mattahan's ... um, unique GANT iconsets.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...