JPCL

7zip,IZArc and file associations.. none?

23 posts in this topic

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 post

http://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?

Thanks

Joao Clemente

0

Share this post


Link to post
Share on other sites

It's not a common problem, 7-Zip is more useful for compression. For opening archive's i suggest winrar.

0

Share this post


Link to post
Share on other sites

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 by Sonic
0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

You say "I don't know if this applies", this is about my regfiles ? (sorry, i'm french ^^)

0

Share this post


Link to post
Share on other sites

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 all

Joao

0

Share this post


Link to post
Share on other sites

@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 !)

0

Share this post


Link to post
Share on other sites

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 German

Dirs: 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?

0

Share this post


Link to post
Share on other sites

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 :( ...

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

This is the batch file I use for associating 7zip with the proper extensions.

@echo off

SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=001 7z arj bz2 cab cpio deb gz iso lzh nsis rar rpm tar z zip
FOR %%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
)
ENDLOCAL

exit

NOTE: 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 OFF

SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=001 7z arj bz2 cab chm cpio deb gz iso lzh nsis rar rpm tar z zip
FOR %%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\"" /F
ENDLOCAL
EXIT

It'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 by jaws75
0

Share this post


Link to post
Share on other sites

Hi,

I am testing your method on my Virtual Machine, I will report back.

Thanks!

laze.

Edited by just_laze
0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

Hello,

Using your code:

@echo off

SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=001 7z arj bz2 cab cpio deb gz iso lzh nsis rar rpm tar z zip
FOR %%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
)
ENDLOCAL

exit

File assocations took, and each archived-file-type opens in 7-Zip.

Thank you very much Jaws.

laze.

Edited by just_laze
0

Share this post


Link to post
Share on other sites

Works now with w2k too, had to use reg.exe from XP instead older version from W2k.

Icons are updated after next logon.

0

Share this post


Link to post
Share on other sites

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.