JPCL Posted November 21, 2005 Posted November 21, 2005 Hi people. Maybe this is of common knowledge but I had not found it written anywhere so I decided to ask just to clear my toughts: I tried to [silent] install 7zip today, and I used it's silent install switch. It went great, except that at the end I had no file associations for it (what I was expecting to see was a new icon on a .zip and a .rar file that I kept on my dektop for that purpose). Well, I tought "maybe this is a problem of this particular 7zip installer..." , so I decided to give IZArc a try.. so I installed IZArc with its silent switch... and once again I had no file association for it...So, is this a common thing with all silent installers? None will register its file associations? Or I just found two special cases? Anyway, how does one gets around this? I mean, what's the point of installing a app that supports dozens of file types if it does not associates with none? I found what I thing it's the workaround: The following posthttp://www.msfn.org/board/index.php?showto...42entry284942 has a script to register IZArc file associations. Is this the way to go for every app (silently installed)? Or maybe do a "normal" install to get the registry changes, and then apply those registry changes after the silent install?How to you usually go around this problem? ThanksJoao Clemente
keytotime Posted November 21, 2005 Posted November 21, 2005 It's not a common problem, 7-Zip is more useful for compression. For opening archive's i suggest winrar.
Sonic Posted November 22, 2005 Posted November 22, 2005 (edited) Reg file for associations ...You can edit this :REGEDIT4;001[HKEY_CLASSES_ROOT\.001]@="7-Zip.001"[HKEY_CLASSES_ROOT\7-Zip.001]@="001 Archive"[HKEY_CLASSES_ROOT\7-Zip.001\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\split.dll"[HKEY_CLASSES_ROOT\7-Zip.001\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.001\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.001\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";7z[HKEY_CLASSES_ROOT\.7z]@="7-Zip.7z"[HKEY_CLASSES_ROOT\7-Zip.7z]@="7z Archive"[HKEY_CLASSES_ROOT\7-Zip.7z\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\7z.dll"[HKEY_CLASSES_ROOT\7-Zip.7z\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.7z\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.7z\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";7zip[HKEY_CLASSES_ROOT\.7zip]@="7-Zip.7zip"[HKEY_CLASSES_ROOT\7-Zip.7zip]@="7zip Archive"[HKEY_CLASSES_ROOT\7-Zip.7zip\DefaultIcon]@=""[HKEY_CLASSES_ROOT\7-Zip.7zip\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.7zip\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.7zip\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Arj[HKEY_CLASSES_ROOT\.arj]@="7-Zip.arj"[HKEY_CLASSES_ROOT\7-Zip.arj]@="arj Archive"[HKEY_CLASSES_ROOT\7-Zip.arj\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\arj.dll"[HKEY_CLASSES_ROOT\7-Zip.arj\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.arj\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.arj\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Bz2[HKEY_CLASSES_ROOT\.bz2]@="7-Zip.bz2"[HKEY_CLASSES_ROOT\7-Zip.bz2]@="bz2 Archive"[HKEY_CLASSES_ROOT\7-Zip.bz2\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\bz2.dll"[HKEY_CLASSES_ROOT\7-Zip.bz2\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.bz2\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.bz2\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\""[HKEY_CLASSES_ROOT\.cab]@="7-Zip.cab";Cab[HKEY_CLASSES_ROOT\7-Zip.cab]@="cab Archive"[HKEY_CLASSES_ROOT\7-Zip.cab\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\cab.dll"[HKEY_CLASSES_ROOT\7-Zip.cab\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.cab\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.cab\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Cpio[HKEY_CLASSES_ROOT\.cpio]@="7-Zip.cpio"[HKEY_CLASSES_ROOT\7-Zip.cpio]@="cpio Archive"[HKEY_CLASSES_ROOT\7-Zip.cpio\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\cpio.dll"[HKEY_CLASSES_ROOT\7-Zip.cpio\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.cpio\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.cpio\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Deb[HKEY_CLASSES_ROOT\.deb]@="7-Zip.deb"[HKEY_CLASSES_ROOT\7-Zip.deb]@="deb Archive"[HKEY_CLASSES_ROOT\7-Zip.deb\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\deb.dll"[HKEY_CLASSES_ROOT\7-Zip.deb\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.deb\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.deb\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Gz[HKEY_CLASSES_ROOT\.gz]@="7-Zip.gz"[HKEY_CLASSES_ROOT\7-Zip.gz]@="gz Archive"[HKEY_CLASSES_ROOT\7-Zip.gz\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\gz.dll"[HKEY_CLASSES_ROOT\7-Zip.gz\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.gz\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.gz\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Rar[HKEY_CLASSES_ROOT\.rar]@="7-Zip.rar"[HKEY_CLASSES_ROOT\7-Zip.rar]@="rar Archive"[HKEY_CLASSES_ROOT\7-Zip.rar\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\rar.dll"[HKEY_CLASSES_ROOT\7-Zip.rar\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.rar\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.rar\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Rpm[HKEY_CLASSES_ROOT\.rpm]@="7-Zip.rpm"[HKEY_CLASSES_ROOT\7-Zip.rpm]@="rpm Archive"[HKEY_CLASSES_ROOT\7-Zip.rpm\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\rpm.dll"[HKEY_CLASSES_ROOT\7-Zip.rpm\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.rpm\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.rpm\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Tar[HKEY_CLASSES_ROOT\.tar]@="7-Zip.tar"[HKEY_CLASSES_ROOT\7-Zip.tar]@="tar Archive"[HKEY_CLASSES_ROOT\7-Zip.tar\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\tar.dll"[HKEY_CLASSES_ROOT\7-Zip.tar\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.tar\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.tar\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Zip[HKEY_CLASSES_ROOT\.zip]@="7-Zip.zip"[HKEY_CLASSES_ROOT\7-Zip.zip]@="zip Archive"[HKEY_CLASSES_ROOT\7-Zip.zip\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\zip.dll"[HKEY_CLASSES_ROOT\7-Zip.zip\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.zip\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.zip\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\""Settings (to view correct associations) :Edit language ...REGEDIT4[HKEY_CURRENT_USER\Software\7-ZIP]"Lang"="C:\\Program Files\\7-Zip\\Lang\\fr.txt"[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\001]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\7z]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\7zip]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\arj]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\bz2]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\cab]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\cpio]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\deb]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\gz]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\rar]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\rpm]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\tar]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\zip]"Plugins"=""Winrar is good but it's demo ... Edited May 8, 2008 by Sonic
Rhelic Posted November 22, 2005 Posted November 22, 2005 I don't know if this applies but it seems 7-Zip file association won't always work right (depends on the version) unless you restart explorer.exe or log off & log on.When I installed the recent 4.30 beta (upgrading from a previous version) 7-Zip stopped working until I did a log off/log on but in hindsight. But some previous versions allowed me to use 7-Zip after upgrading it.
Sonic Posted November 22, 2005 Posted November 22, 2005 You say "I don't know if this applies", this is about my regfiles ? (sorry, i'm french ^^)
JPCL Posted November 24, 2005 Author Posted November 24, 2005 keytotime: By your answer I understand that this is not the usual behaviour, but something specific to 7-zip/izarc, and that I will find that other application will register their associations correctly.sonic : about 1st post: Ok, this will "fix" the problem for my file associations, I just need to apply the reg tweak after installing 7-zip silently... but how did you get these reg keys? You did a "diff" of the registry status before and after setting the associations with 7-zip program itself? If so, can you tell us what is the app to make "diff's" (maybe you just exported the registry before and after the changes, and made a diff of them?) Or you actually made them by hand?Rhelic : I tought of that so I was logging off & on each time, no sucess, so it must depend on the version. Sonic: about 2nd post: I believe he was talking to me (like: "I don't know if this [logging off & on] can help")Thank you allJoao
Sonic Posted November 25, 2005 Posted November 25, 2005 @JPLC: I have made by hand the reg because it's easy to make associations with other programs (but it's long to complete all but works) , after I have checked registry options of 7-Zip and I have seen there are keys to inform 7Zip if associations are set to itself or not ...If I cannot find the registry for other tweaks/apps I use RegMon from www.sysinternals.com (lot of free utilities very very powerful !)
muchlux Posted November 28, 2005 Posted November 28, 2005 Hi,I am also searching for a good 7-zip silent install solution.Does somebody have a universal solution for language + target directory?I use now a batch to detect language and target directory.The batch calls different setups and reg-files depending on environment:Languages: Englisch or GermanDirs: C:\Program Files, D:\Program Files, C:\Programme, D:\Programme ...But I would prefer a better solution.I posted a message in the 7zip forum and got the reply that for file associations no other way than reg-file is possible.( Seems that nobody needs this ;-)I think 7z430 does not need the following keys anymore:[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations]What about AutoIt? Is it possible to call 7zipFM and simulate keyboard + mouse"Tools+Options+Select All" with this?
Sonic Posted November 28, 2005 Posted November 28, 2005 With AutoIt you can automatise associations without any problem without Send function (simulate key press ...) Just use function "ControlClick" and all can be done ... I have just tested 4.3 and yes now 7zip is intelligent to check assocations but it will recreate FM subkey for nothing ...
just_laze Posted December 31, 2006 Posted December 31, 2006 Hello Sonic,Your below registry tweaks work well.I applied the first part, but I wasn't sure about the second bit as you mentioned you use it to change the language.When using the first part alone, the associations are made, but when I click a 7-Zip associated file Windows asks me what program to open it with? I assume the second part fixes this issue, so I've re-built my installation to include it minus this entry:[HKEY_CURRENT_USER\Software\7-ZIP]"Lang"="C:\\Program Files\\7-Zip\\Lang\\fr.txt"That I believe changes 7-Zip from English to French.Here are your registry tweaks for reference:Reg file for associations ...You can edit this :REGEDIT4;001[HKEY_CLASSES_ROOT\.001]@="7-Zip.001"[HKEY_CLASSES_ROOT\7-Zip.001]@="001 Archive"[HKEY_CLASSES_ROOT\7-Zip.001\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\split.dll"[HKEY_CLASSES_ROOT\7-Zip.001\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.001\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.001\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";7z[HKEY_CLASSES_ROOT\.7z]@="7-Zip.7z"[HKEY_CLASSES_ROOT\7-Zip.7z]@="7z Archive"[HKEY_CLASSES_ROOT\7-Zip.7z\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\7z.dll"[HKEY_CLASSES_ROOT\7-Zip.7z\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.7z\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.7z\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";7zip[HKEY_CLASSES_ROOT\.7zip]@="7-Zip.7zip"[HKEY_CLASSES_ROOT\7-Zip.7zip]@="7zip Archive"[HKEY_CLASSES_ROOT\7-Zip.7zip\DefaultIcon]@=""[HKEY_CLASSES_ROOT\7-Zip.7zip\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.7zip\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.7zip\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Arj[HKEY_CLASSES_ROOT\.arj]@="7-Zip.arj"[HKEY_CLASSES_ROOT\7-Zip.arj]@="arj Archive"[HKEY_CLASSES_ROOT\7-Zip.arj\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\arj.dll"[HKEY_CLASSES_ROOT\7-Zip.arj\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.arj\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.arj\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Bz2[HKEY_CLASSES_ROOT\.bz2]@="7-Zip.bz2"[HKEY_CLASSES_ROOT\7-Zip.bz2]@="bz2 Archive"[HKEY_CLASSES_ROOT\7-Zip.bz2\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\bz2.dll"[HKEY_CLASSES_ROOT\7-Zip.bz2\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.bz2\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.bz2\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\""[HKEY_CLASSES_ROOT\.cab]@="7-Zip.cab";Cab[HKEY_CLASSES_ROOT\7-Zip.cab]@="cab Archive"[HKEY_CLASSES_ROOT\7-Zip.cab\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\cab.dll"[HKEY_CLASSES_ROOT\7-Zip.cab\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.cab\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.cab\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Cpio[HKEY_CLASSES_ROOT\.cpio]@="7-Zip.cpio"[HKEY_CLASSES_ROOT\7-Zip.cpio]@="cpio Archive"[HKEY_CLASSES_ROOT\7-Zip.cpio\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\cpio.dll"[HKEY_CLASSES_ROOT\7-Zip.cpio\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.cpio\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.cpio\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Deb[HKEY_CLASSES_ROOT\.deb]@="7-Zip.deb"[HKEY_CLASSES_ROOT\7-Zip.deb]@="deb Archive"[HKEY_CLASSES_ROOT\7-Zip.deb\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\deb.dll"[HKEY_CLASSES_ROOT\7-Zip.deb\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.deb\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.deb\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Gz[HKEY_CLASSES_ROOT\.gz]@="7-Zip.gz"[HKEY_CLASSES_ROOT\7-Zip.gz]@="gz Archive"[HKEY_CLASSES_ROOT\7-Zip.gz\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\gz.dll"[HKEY_CLASSES_ROOT\7-Zip.gz\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.gz\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.gz\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Rar[HKEY_CLASSES_ROOT\.rar]@="7-Zip.rar"[HKEY_CLASSES_ROOT\7-Zip.rar]@="rar Archive"[HKEY_CLASSES_ROOT\7-Zip.rar\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\rar.dll"[HKEY_CLASSES_ROOT\7-Zip.rar\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.rar\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.rar\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Rpm[HKEY_CLASSES_ROOT\.rpm]@="7-Zip.rpm"[HKEY_CLASSES_ROOT\7-Zip.rpm]@="rpm Archive"[HKEY_CLASSES_ROOT\7-Zip.rpm\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\rpm.dll"[HKEY_CLASSES_ROOT\7-Zip.rpm\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.rpm\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.rpm\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Tar[HKEY_CLASSES_ROOT\.tar]@="7-Zip.tar"[HKEY_CLASSES_ROOT\7-Zip.tar]@="tar Archive"[HKEY_CLASSES_ROOT\7-Zip.tar\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\tar.dll"[HKEY_CLASSES_ROOT\7-Zip.tar\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.tar\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.tar\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\"";Zip[HKEY_CLASSES_ROOT\.zip]@="7-Zip.zip"[HKEY_CLASSES_ROOT\7-Zip.zip]@="zip Archive"[HKEY_CLASSES_ROOT\7-Zip.zip\DefaultIcon]@="C:\\Program Files\\7-Zip\\Formats\\zip.dll"[HKEY_CLASSES_ROOT\7-Zip.zip\shell]@=""[HKEY_CLASSES_ROOT\7-Zip.zip\shell\open]@=""[HKEY_CLASSES_ROOT\7-Zip.zip\shell\open\command]@="\"C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\""Settings (to view correct associations) :Edit language ...REGEDIT4[HKEY_CURRENT_USER\Software\7-ZIP]"Lang"="C:\\Program Files\\7-Zip\\Lang\\fr.txt"[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations01]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\7z]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\7zip]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\arj]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\bz2]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\cab]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\cpio]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\deb]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\gz]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\rar]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\rpm]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\tar]"Plugins"=""[HKEY_CURRENT_USER\Software\7-ZIP\FM\Associations\zip]"Plugins"=""Winrar is good but it's demo ...Thanks - laze.
jaws75 Posted December 31, 2006 Posted December 31, 2006 (edited) This is the batch file I use for associating 7zip with the proper extensions. @echo offSETLOCALSET SC=HKLM\SOFTWARE\ClassesSET Extn=001 7z arj bz2 cab cpio deb gz iso lzh nsis rar rpm tar z zipFOR %%j IN (%Extn%) DO ( REG ADD %SC%\.%%j /VE /D "7-Zip.%%j" /F REG ADD %SC%\7-Zip.%%j /VE /D "7z Archive" /F REG ADD %SC%\7-Zip.%%j\DefaultIcon /VE /D "\"%SYSTEMROOT%\System32\zipfldr.dll\"" /F REG ADD %SC%\7-Zip.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F)ENDLOCALexitNOTE: I set it to use the default zip icon as the icon for all archives. I like the vista icon better then the ugly 7z ones. (I use vista!)This is how to use the proper icon for each file type. mentioned here@ECHO OFFSETLOCALSET SC=HKLM\SOFTWARE\ClassesSET Extn=001 7z arj bz2 cab chm cpio deb gz iso lzh nsis rar rpm tar z zipFOR %%j IN (%Extn%) DO ( REG ADD %SC%\.%%j /VE /D "7-Zip.%%j" /F REG ADD %SC%\7-Zip.%%j /VE /D "7z Archive" /F REG ADD %SC%\7-Zip.%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\7-Zip\Formats\%%j.dll\"" /F REG ADD %SC%\7-Zip.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F)REG ADD %SC%\7-Zip.001\DefaultIcon /VE /D "\"%PROGRAMFILES%\7-Zip\Formats\split.dll\"" /FENDLOCALEXITIt's a lot cleaner then the above reg file and the path "C:\" is not hard coded.It's a port of the way you mentioned above. It works great for me.enjoy. Edited December 31, 2006 by jaws75
just_laze Posted January 1, 2007 Posted January 1, 2007 (edited) Hi,I am testing your method on my Virtual Machine, I will report back.Thanks!laze. Edited January 1, 2007 by just_laze
muchlux Posted January 3, 2007 Posted January 3, 2007 Hi jaws75,I have tried your method with a cmd file, but I get the "too many command-line parameters error".Do I have to use some quotes after REG.EXE?
just_laze Posted January 3, 2007 Posted January 3, 2007 (edited) Hello,Using your code:@echo offSETLOCALSET SC=HKLM\SOFTWARE\ClassesSET Extn=001 7z arj bz2 cab cpio deb gz iso lzh nsis rar rpm tar z zipFOR %%j IN (%Extn%) DO ( REG ADD %SC%\.%%j /VE /D "7-Zip.%%j" /F REG ADD %SC%\7-Zip.%%j /VE /D "7z Archive" /F REG ADD %SC%\7-Zip.%%j\DefaultIcon /VE /D "\"%SYSTEMROOT%\System32\zipfldr.dll\"" /F REG ADD %SC%\7-Zip.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F)ENDLOCALexitFile assocations took, and each archived-file-type opens in 7-Zip.Thank you very much Jaws.laze. Edited January 3, 2007 by just_laze
muchlux Posted January 3, 2007 Posted January 3, 2007 Works now with w2k too, had to use reg.exe from XP instead older version from W2k.Icons are updated after next logon.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now