just_laze Posted December 17, 2006 Posted December 17, 2006 Hello,I am installing 7-Zip using RunOnceEx.REG ADD %KEY%\046 /V 1 /D "\"%systemdrive%\install\7zip\7z442.exe /S /D=%systemdrive%\program files\7-Zip\"" /fThe program installs itself and using the software i can extract and create archives.The problem lies with the right-click context menu, 7-Zip is added, but it will not expand.Any ideas?laze.
Yzöwl Posted December 17, 2006 Posted December 17, 2006 Regardless of whether your commands are correct, should your code not read,REG ADD %KEY%\046 /V 1 /D "%systemdrive%\install\7zip\7z442.exe /S /D=\"%systemdrive%\program files\7-Zip\"" /f?Or better still,REG ADD %KEY%\046 /V 1 /D "%systemdrive%\install\7zip\7z442.exe /S /D=\"%programfiles%\7-Zip\"" /f?
just_laze Posted December 17, 2006 Author Posted December 17, 2006 Quite possibly,It installs to 'C:\program files\7-Zip f\' which suggests it's ignoring the surrounding speech marks and including /f as part of the destination folder.The context-menu error also occurs when 7-Zip is installed on my current installation of XP through normal methods, so i'm beginning to think it's an issue with 7-Zip not my method of install.laze.
Yzöwl Posted December 17, 2006 Posted December 17, 2006 Well from the information contained here, you may not need the additional double quotes in your 'output directory'.REG ADD %KEY%\046 /V 1 /D "%SYSTEMDRIVE%\install\7zip\7z442.exe /S /D=%PROGRAMFILES%\7-Zip" /F<Edit>Additionally, because only you are writing to the runonceex key and therefore not overwriting that particular value name, there is no need at all for the /f switchREG ADD %KEY%\046 /V 1 /D "%SYSTEMDRIVE%\install\7zip\7z442.exe /S /D=%PROGRAMFILES%\7-Zip"</Edit>
Sonic Posted December 17, 2006 Posted December 17, 2006 Use a regfile after install REGEDIT4[HKEY_CURRENT_USER\Software\7-Zip\Options]"ContextMenu"=dword:00000537
just_laze Posted December 18, 2006 Author Posted December 18, 2006 Hello Sonic,Thank you, but this only adds "Open Archive", is there a registry tweak for "Add to Archive" too?laze.
Yzöwl Posted December 18, 2006 Posted December 18, 2006 That's odd!From that entry you should be gettingExtract files…Extract HereExtract to <Folder>Test ArchiveOpen archiveAdd to archive…Compress and emailHere is the options list I have!Extract files…1 (0x00000001)Extract Here2 (0x00000002)Extract to <Folder>4 (0x00000004)Test Archive16 (0x00000010)Open archive32 (0x00000020)Add to archive…256 (0x00000100)Add to <Archive>512 (0x00000200)Compress and email1024 (0x00000400)Compress to <Archive> and email2048 (0x00000800)All of the Context Menu items above3895 (0x00000f37)Select the ones you want and eitheradd the decimal values and convert to hex using Microsoft Calculatoradd the (hex values) together directly using Microsoft Calculator
just_laze Posted December 18, 2006 Author Posted December 18, 2006 Hello,Idealy I'd like "All of the Context Menu items above3895 (0x00000f37)" but have no idea how to perform the conversions you list.laze.
Yzöwl Posted December 18, 2006 Posted December 18, 2006 REGEDIT4[HKEY_CURRENT_USER\Software\7-Zip\Options]"ContextMenu"=dword:00000f37You could, as I would also have it as a cascaded menu itemREGEDIT4[HKEY_CURRENT_USER\Software\7-Zip\Options]"CascadedMenu"=dword:00000001"ContextMenu"=dword:00000f37
just_laze Posted December 18, 2006 Author Posted December 18, 2006 Thank you very much!I will test this and report back.laze.
Speeddymon Posted December 18, 2006 Posted December 18, 2006 Use a regfile after install REGEDIT4[HKEY_CURRENT_USER\Software\7-Zip\Options]"ContextMenu"=dword:00000537The problem is that Sonic put 537 instead of f37 in his example.. That would be why the menu added items but not all of them....
just_laze Posted December 18, 2006 Author Posted December 18, 2006 Thanks,I managed to reach that conclusion myself.laze.
Yzöwl Posted December 18, 2006 Posted December 18, 2006 Use a regfile after install Extract files… | 1 | 0x00000001Extract Here | 2 | 0x00000002Extract to <Folder> | 4 | 0x00000004Test Archive | 16 | 0x00000010Open archive | 32 | 0x00000020Add to archive… | 256 | 0x00000100Compress and email | 1024 | 0x00000400 ______________________ | ____ | _________Total(s) | 1335 | 0x00000537just_laze said that only Open archive was added, but as you can see from the lists I've provided, Open archive only would be achieved by dword:00000020
Yzöwl Posted December 19, 2006 Posted December 19, 2006 Thank you very much!I will test this and report back.laze.Hrmph :-/And the prize for Best Report goes to
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now