JPCL

7zip,IZArc and file associations.. none?

23 posts in this topic

Adapted Jaws75's nice code to IZArc:

@ECHO OFF
:: setting file associations for IZArc
:: adapted from http://www.msfn.org/board/lofiversion/index.php/t61105.html

SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=7Z A ACE ARC ARJ B64 BH BIN BZ2 BZA C2D CAB CDI CPIO DEB ENC GCA GZ GZA HA IMG ISO IZE JAR LHA LIB LZH MBF MDF MIM NRG PAK PDI PK3 RAR RPM TAR TAZ TBZ TGZ TZ UUE WAR XXE YZ1 Z ZIP ZOO
FOR %%j IN (%Extn%) DO (
REG ADD %SC%\.%%j /VE /D "IZArc%%j" /F
REG ADD %SC%\IZArc%%j /VE /D "IZArc %%j Archive" /F
REG ADD %SC%\IZArc%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\IZArc\Icons\%%j.ico\"" /F
REG ADD %SC%\IZArc%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\IZArc\IZArc.exe\" \"%%1\"" /F
)

ENDLOCAL
EXIT

0

Share this post


Link to post
Share on other sites

Hey guys,

I'm using windows xp and the latest 7-zip.

The batch file did not put any icons on any of my zip files so I modified the script to point to "C:\Program Files\7-Zip\7z.dll" for the icons and it worked.

Here is a copy of the modified script:

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\7z.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\7z.dll"" /F
ENDLOCAL

0

Share this post


Link to post
Share on other sites

I did some modification to your script

SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=7z-0 arj-4 bz2-2 bzip2-2 cab-7 cpio-7 deb-11 gz-14 gzip-14 iso-8 lha-6 lzh-6 rar-3 rpm-10 split-9 swm-15 tar-13 taz-5 tbz-2 tbz2-2 tgz-14 tpz-14 wim-15 z-5 zip-1
FOR %%j IN (%Extn%) DO (
FOR /F "tokens=1,2 delims=-" %%A IN ("%%j") DO (
REG ADD %SC%\.%%A /VE /D "7-Zip.%%A" /F
REG ADD %SC%\7-Zip.%%A /VE /D "%%A Archive" /F
REG ADD %SC%\7-Zip.%%A\DefaultIcon /VE /D "%PROGRAMFILES%\7-Zip\7z.dll,%%B" /F
REG ADD %SC%\7-Zip.%%A\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F
)
)
ENDLOCAL

now it do exacly same thing as 7zip when you associote it with settings!

0

Share this post


Link to post
Share on other sites

So, how do i associate .001 with 7zip to it does extract the entire series not just the .001 file.

why do people pack in that type of format?

0

Share this post


Link to post
Share on other sites

@premier69: I don't use split format / 001 format , but have you tried to open file from 7zip directly ?

There is updated reg file to set association for version 4.57 of 7zip, I don't use optimized script to keep compatibilty with win98 ...

7Zip_Settings.reg

REGEDIT4

;Set lang
[HKEY_CURRENT_USER\Software\7-ZIP]
"Lang"="fr"

;Set 25 extensions except ISO format, so 24 ...
;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\\7z.dll,0"
[HKEY_CLASSES_ROOT\7-Zip.7z\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,4"
[HKEY_CLASSES_ROOT\7-Zip.arj\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,2"
[HKEY_CLASSES_ROOT\7-Zip.bz2\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;Bzip2
[HKEY_CLASSES_ROOT\.bzip2]
@="7-Zip.bzip2"
[HKEY_CLASSES_ROOT\7-Zip.bzip2]
@="bzip2 Archive"
[HKEY_CLASSES_ROOT\7-Zip.bzip2\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,2"
[HKEY_CLASSES_ROOT\7-Zip.bzip2\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Cab
[HKEY_CLASSES_ROOT\.cab]
@="7-Zip.cab"
[HKEY_CLASSES_ROOT\7-Zip.cab]
@="cab Archive"
[HKEY_CLASSES_ROOT\7-Zip.cab\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,7"
[HKEY_CLASSES_ROOT\7-Zip.cab\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,12"
[HKEY_CLASSES_ROOT\7-Zip.cpio\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,11"
[HKEY_CLASSES_ROOT\7-Zip.deb\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,14"
[HKEY_CLASSES_ROOT\7-Zip.gz\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;Gzip
[HKEY_CLASSES_ROOT\.gzip]
@="7-Zip.gzip"
[HKEY_CLASSES_ROOT\7-Zip.gzip]
@="gzip Archive"
[HKEY_CLASSES_ROOT\7-Zip.gzip\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,14"
[HKEY_CLASSES_ROOT\7-Zip.gzip\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""


;Lha
[HKEY_CLASSES_ROOT\.lha]
@="7-Zip.lha"
[HKEY_CLASSES_ROOT\7-Zip.lha]
@="lha Archive"
[HKEY_CLASSES_ROOT\7-Zip.lha\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,6"
[HKEY_CLASSES_ROOT\7-Zip.lha\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;Lzh
[HKEY_CLASSES_ROOT\.lzh]
@="7-Zip.lzh"
[HKEY_CLASSES_ROOT\7-Zip.lzh]
@="lzh Archive"
[HKEY_CLASSES_ROOT\7-Zip.lzh\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,6"
[HKEY_CLASSES_ROOT\7-Zip.lzh\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,3"
[HKEY_CLASSES_ROOT\7-Zip.rar\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,10"
[HKEY_CLASSES_ROOT\7-Zip.rpm\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Split
[HKEY_CLASSES_ROOT\.split]
@="7-Zip.split"
[HKEY_CLASSES_ROOT\7-Zip.split]
@="split Archive"
[HKEY_CLASSES_ROOT\7-Zip.split\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,9"
[HKEY_CLASSES_ROOT\7-Zip.split\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Swm
[HKEY_CLASSES_ROOT\.swm]
@="7-Zip.swm"
[HKEY_CLASSES_ROOT\7-Zip.swm]
@="swm Archive"
[HKEY_CLASSES_ROOT\7-Zip.swm\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,15"
[HKEY_CLASSES_ROOT\7-Zip.swm\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,13"
[HKEY_CLASSES_ROOT\7-Zip.tar\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Taz
[HKEY_CLASSES_ROOT\.taz]
@="7-Zip.taz"
[HKEY_CLASSES_ROOT\7-Zip.taz]
@="taz Archive"
[HKEY_CLASSES_ROOT\7-Zip.taz\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,5"
[HKEY_CLASSES_ROOT\7-Zip.taz\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Tbz
[HKEY_CLASSES_ROOT\.tbz]
@="7-Zip.tbz"
[HKEY_CLASSES_ROOT\7-Zip.tbz]
@="tbz Archive"
[HKEY_CLASSES_ROOT\7-Zip.tbz\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,2"
[HKEY_CLASSES_ROOT\7-Zip.tbz\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;Tbz2
[HKEY_CLASSES_ROOT\.tbz2]
@="7-Zip.tbz2"
[HKEY_CLASSES_ROOT\7-Zip.tbz2]
@="tbz2 Archive"
[HKEY_CLASSES_ROOT\7-Zip.tbz2\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,2"
[HKEY_CLASSES_ROOT\7-Zip.tbz2\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Tgz
[HKEY_CLASSES_ROOT\.tgz]
@="7-Zip.tgz"
[HKEY_CLASSES_ROOT\7-Zip.tgz]
@="tgz Archive"
[HKEY_CLASSES_ROOT\7-Zip.tgz\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,14"
[HKEY_CLASSES_ROOT\7-Zip.tgz\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;Tpz
[HKEY_CLASSES_ROOT\.tpz]
@="7-Zip.tpz"
[HKEY_CLASSES_ROOT\7-Zip.tpz]
@="tpz Archive"
[HKEY_CLASSES_ROOT\7-Zip.tpz\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,14"
[HKEY_CLASSES_ROOT\7-Zip.tpz\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Wim
[HKEY_CLASSES_ROOT\.wim]
@="7-Zip.wim"
[HKEY_CLASSES_ROOT\7-Zip.wim]
@="wim Archive"
[HKEY_CLASSES_ROOT\7-Zip.wim\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,15"
[HKEY_CLASSES_ROOT\7-Zip.wim\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

;Z
[HKEY_CLASSES_ROOT\.z]
@="7-Zip.z"
[HKEY_CLASSES_ROOT\7-Zip.z]
@="z Archive"
[HKEY_CLASSES_ROOT\7-Zip.z\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,5"
[HKEY_CLASSES_ROOT\7-Zip.z\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.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\\7z.dll,1"
[HKEY_CLASSES_ROOT\7-Zip.zip\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

Edited by Sonic
0

Share this post


Link to post
Share on other sites

In case anyone is interested, this is how I've managed a fully silent install with patched 7zip icons and file associations thanks to Lolita's modified script.

7z457.exe /S /D="C:\Program Files\7-Zip"
xcopy 7z.dll "C:\Program Files\7-Zip" /y
SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=7z-0 arj-4 bz2-2 bzip2-2 cab-7 cpio-7 deb-11 gz-14 gzip-14 iso-8 lha-6 lzh-6 rar-3 rpm-10 split-9 swm-15 tar-13 taz-5 tbz-2 tbz2-2 tgz-14 tpz-14 wim-15 z-5 zip-1
FOR %%j IN (%Extn%) DO (
FOR /F "tokens=1,2 delims=-" %%A IN ("%%j") DO (
REG ADD %SC%\.%%A /VE /D "7-Zip.%%A" /F
REG ADD %SC%\7-Zip.%%A /VE /D "%%A Archive" /F
REG ADD %SC%\7-Zip.%%A\DefaultIcon /VE /D "%PROGRAMFILES%\7-Zip\7z.dll,%%B" /F
REG ADD %SC%\7-Zip.%%A\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F
)
)
ENDLOCAL

This is what the icons look like: (Downloaded from PortableApps)

post-28904-1213177058_thumb.png

And here is the the modified 7z.dll if anyone is interested.

0

Share this post


Link to post
Share on other sites

I'm using IZArc and made an addon/post here

here<--repost link

to get around file association problem.

Maybe u like to try it. (Use the mediafire download link)

For RyanVM intergrator user, you must rename the file IZArc381.cab to IZArc381_addon.cab

The svcpack addon is unattended but not silent as it is an autoit script. Internet explorer is assumed as default browser.

Eng lng only (Rest of language files are deleted)

Pls remove any cmd or reg files for file association to avoid any possible conflict.

Edited by Geej
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.