Jump to content

Recommended Posts

Posted

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\"" /f

The 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.


Posted

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

?

Posted

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.

Posted

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 switch

REG ADD %KEY%\046 /V 1 /D "%SYSTEMDRIVE%\install\7zip\7z442.exe /S /D=%PROGRAMFILES%\7-Zip"

</Edit>

Posted

That's odd!

From that entry you should be getting

Extract files…

Extract Here

Extract to <Folder>

Test Archive

Open archive

Add to archive…

Compress and email

Here is the options list I have!
Extract files…
1 (0x00000001)

Extract Here
2 (0x00000002)

Extract to <Folder>
4 (0x00000004)

Test Archive
16 (0x00000010)

Open archive
32 (0x00000020)

Add to archive…
256 (0x00000100)

Add to <Archive>
512 (0x00000200)

Compress and email
1024 (0x00000400)

Compress to <Archive> and email
2048 (0x00000800)

All of the Context Menu items above
3895 (0x00000f37)

Select the ones you want and either

  • add the decimal values and convert to hex using Microsoft Calculator
  • add the (hex values) together directly using Microsoft Calculator

Posted
REGEDIT4

[HKEY_CURRENT_USER\Software\7-Zip\Options]
"ContextMenu"=dword:00000f37

You could, as I would also have it as a cascaded menu item

REGEDIT4

[HKEY_CURRENT_USER\Software\7-Zip\Options]
"CascadedMenu"=dword:00000001
"ContextMenu"=dword:00000f37

Posted
Use a regfile after install
REGEDIT4
[HKEY_CURRENT_USER\Software\7-Zip\Options]
"ContextMenu"=dword:00000537

The 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....

Posted

Use a regfile after install


Extract files… | 1 | 0x00000001
Extract Here | 2 | 0x00000002
Extract to <Folder> | 4 | 0x00000004
Test Archive | 16 | 0x00000010
Open archive | 32 | 0x00000020
Add to archive… | 256 | 0x00000100
Compress and email | 1024 | 0x00000400
______________________ | ____ | _________
Total(s) | 1335 | 0x00000537

just_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

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