Jump to content

7-zip as default for .zip etc...


bbackx

Recommended Posts

My first unattended XP-install went prutty well, some minor details (typo's :unsure: ) need to be adjusted though and some problems should be solved:

First:

The unattended install of 7-zip went fine, only: the zip-files are still opened with the crappy windows-thing as default. Is there a way to associate .zip, .rar etc... with 7-zip automaticly?

Second (last already :D):

The adjustments in the register aren't executed, I have this in the .cmd-file:

REGEDIT /wait /S c:\install\RegTweaks.reg

The systemroot is C, and the file is off-course called regtweaks.reg and is situated in the install-folder. The regtweaks.reg file works fine, because when I execute it afterwards, everything is ok. What's wrong?

[edit]

Ow, there is a third :P

The language of 7-zip should be dutch, can this be changed? Possibly some register tweak?

[/edit]

Link to comment
Share on other sites


Third problem is already solved :)

In the register:

HKEY_CURRENT_USER/software/7-zip

The key with name Lang should be C:\Program Files\7-Zip\Lang\nl.txt

Would it work when I say in my regtweaks.reg file:

[HKEY_CURRENT_USER/software/7-zip]
"Lang"="%systemdrive%\Program Files\7-Zip\Lang\nl.txt"

Or do I have to say c: in stead of %systemdrive%?

Link to comment
Share on other sites

Ok, I think I found a sollution for the association of files also, for example the .zip:

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/.zip]
@ = "7-zip.zip"

(I suppose the @ stands for default? I'm not yet into this register-business)

So, now windows knows he has to use 7-zip.zip for .zip-files, but wat is 7-zip.zip? Well, lets define it:

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip]
@ = "zip Archive"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/DefaultIcon]
@ = "C:\Program Files\7-Zip\Formats\zip.dll"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/shell]

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/shell/open]

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/shell/open/command]
@ = "C:\Program Files\7-Zip\7zFMn.exe" "%1"

This has NOT BEEN TESTED. I'll try it this afternoon, have to go now. I'll let you know if it worked :)

Link to comment
Share on other sites

Ok, it's possible to do it a bit shorter:

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/.zip]
@ = "7-zip.zip"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip]
@ = "zip Archive"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/DefaultIcon]
@ = "C:\Program Files\7-Zip\Formats\zip.dll"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/shell/open/command]
@ = "C:\Program Files\7-Zip\7zFMn.exe" "%1"

But he won't put the link to the folders in the key, it stays empty. How can this be solved?

Link to comment
Share on other sites

Don't forget to put double back slash in your tweaks:

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/.zip]
@="7-zip.zip"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip]
@="zip Archive"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/DefaultIcon]
@="C:\\Program Files\\7-Zip\\Formats\\zip.dll"

[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/7-zip.zip/shell/open/command]
@="C:\\Program Files\\7-Zip\\7zFMn.exe\" \"%1\""

Link to comment
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.
×
×
  • Create New...