Help - Search - Members - Calendar
Full Version: 7-zip as default for .zip etc...
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
bbackx
My first unattended XP-install went prutty well, some minor details (typo's unsure.gif ) 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 biggrin.gif):
The adjustments in the register aren't executed, I have this in the .cmd-file:
CODE
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 tongue.gif
The language of 7-zip should be dutch, can this be changed? Possibly some register tweak?
[/edit]
bbackx
Third problem is already solved smile.gif
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:

CODE
[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%?
bbackx
Ok, I think I found a sollution for the association of files also, for example the .zip:

CODE
[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:
CODE
[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 smile.gif
bbackx
Ok, it's possible to do it a bit shorter:
CODE
[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?
big_gie
Don't forget to put double back slash in your tweaks:
CODE
[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\""
bbackx
QUOTE (big_gie @ Sep 7 2004, 09:58 AM)
Don't forget to put double back slash in your tweaks

thumbup.gif
It seems to work perfect now smile.gif
thx biggrin.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.