Jump to content

Recommended Posts

Posted

Okay, as you've already been informed, you gave me an example of a key using a default value, and I converted it for you. This means that your answer is already presented before you.

Now to your particular keys, the tweak you are after is actually only half a tweak, the entire tweak should look a little more like this

[Version]
Signature = $Windows NT$

[DefaultInstall]
AddReg = Plus
DelReg = Minus

[Plus]
HKLM,%SC%\*\shell\OpenAsText,,,"Open in Text &Editor"
HKLM,%SC%\*\shell\OpenAsText\command,,,"%TE% ""%1"""
HKLM,%SC%\*\shell\OpenAs,,,"Open &with…"
HKLM,%SC%\*\shell\OpenAs\command,,,"rundll32.exe shell32.dll,OpenAs_RunDLL %1 %2"

[Minus]
HKLM,%SC%\Unknown\shell,,
HKLM,%SC%\Unknown\shell\openas
HKLM,"%SC%\*\shellex\ContextMenuHandlers\Open With"

[Strings]
SC = "SOFTWARE\Classes"
TE = "notepad.exe"

If you look in the strings section you can also see that it would be possible to use another registered text editor of choice!

Finally for some home truths:

Do not attempt to convert the examples from the Regtweaks.reg file from this site to an inf format.

Not only is it more difficult than you obviously imagined, it is actually impractical when using tweaks which require entries removing in addition to adding.

Despite the great amount of work which has gone into the file, it still contains some invalid, incorrect and in this case partial tweaks too.

You have obviously not mastered the syntax, do not appear to have a reasonable understanding of the registry and could severely impair the usability of your OS.

Even the example you gave in search of help on this latest occasion used the wrong syntax in the non-red text.

; Makes a right click option for unknown files (Open with notepad)

HKCR,*\shell\open,,,"Open &With Notepad"

HKCR,*\shell\open\command,,,"notepad.exe %1"

I have left the answer to your question in the same colour, so as to avoid further confusion.

I hope this has fully explained everything to you!


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