I'm not really sure how to google this one . I would like to know how would I add an entry to the right click menu in a Windows system . Something like "Open with ..." or "Archive with ... " . I would preffer a solution that works under Windows XP .
in the registry, HKEY CLASSES ROOT houses the stuff you need.
specifically
(any file)
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
(any folder)
HKEY_CLASSES_ROOT\Directory\shell
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers
The old nvidia rightclick on desktop feature would remove the "new" from folders when you uninstalled the driver. So I had to figure out how to restore it.
Good luck.
Related
I'm not a Windows developer and my knowledge of the OS is very limited.
I wanted to write a very simply image viewer software for the Windows OS because such a thing doesn't seem to exist but we have such tools for Linux and they work well.
I am now at the stage where I have something working. But I have no idea how to "install the software program I have written" so that I can associate it with file types such as jpeg and other image files.
I have written this program in C++ although that probably isn't particularly important information.
The point being I am left with an executable file and no idea what to do with it.
I guess the first step to "install" it would be to create a directory in C:\Program Files\ and simply move the file there, although I'm sure I can do some research and figure out how to write an MSI installer to do that.
Where I become stuck is on other things, like how to create a start menu entry. (Desktop shortcut is easy it's just a link, moved to the users Desktop folder?) And then how to get a right click entry for file types such as PNG bmp and jpeg. (So that "open with" "my program" works)
I tried doing an internet search for this kind of thing but really didn't know what to search for. Can anyone offer me any advice on this or point me in the right direction?
Or is this perhaps the kind of thing I would just get an MSI to do everything for me?
For adding a Start Menu entry, you'd need to write a link into C:\ .ProgramData\Microsoft\Windows\Start Menu\Programs.
There you can add just the link to your application or put it in it's own folder. As for the Context Menu entries, there are two options: Adding it manually (But my guess is that you want your installer to do so) by selecting the exe or by modifying the registry.
I'm currently trying to add a contextual menu (right click menu) on a specific extension : .config
I managed to add a contextual menu to all files, unknown files, .jpg, and every other extension I've tried, except for .config, and I don't know why.
I even tried to use some external tools to do it. These tools worked for everything I tried, except .config again.
The .config register key has a master file type named config_auto_file.
I tried to create a \shell\My_command\command key on each of them (HKEY_CLASSES_ROOT\.config and HKEY_CLASSES_ROOT\config_auto_file) with no success. I'm now out of ideas.
An easy, similar test would be .jpg, which has a master file type too (jpegfile). And it works on this one while doing the exact same thing.
I'm on windows 7 and windows 10.
Thanks for your time on this.
I managed to do it thanks to another post on stackoverflow.
The "AppliesTo" on HKEY_CLASSES_ROOT* worked for me.
I recently changed the Default application for .jar files to be windows explorer, thinking that it would unzip them. I have since gotten a jar decompiler and would like to make windows explorer not the default application to open jar files ( as it basically crashes my computer). Nothing works, i have tried changing the default application by clicking open with, but the check box is greyed out. I have tried going Start menu -> Default Programs -> Associate a file type, but .jar doesn't even appear in the list. I have been googling for a couple hours now and can not find any response that isn't basically those two steps.
Does anyone have any idea how to fix this mess i made ?
Right click on a .jar, go to "Open With" > "Choose default program..." should do the trick. But you already did that, and "Choose default program..." was grayed out.
Edit:
Try FileTypesMan from Nirsoft
http://www.nirsoft.net/utils/file_types_manager.html
Go to .jar and select it, then you can see actions at the bottom and remove or edit them.
I Was able to fix it by messing around in the registry.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.jar\UserChoice
needed to be deleted. that let me choose a new default program for.jar files. Thank you for the responses.
Cheers.
I was testing an application called iTrash during which it seems like i have deleted the
"Contextual Menu Items " folder as its no longer present and i can no longer right-click
anywhere on my Snow Leopard. I don't have any backups. Can someone tell me how i can recover
that folder or if i can download the files needed to have in that folder (just the original
ones) to regain the Right-click again?
I managed to get around the problem by reinstalling the 10.6.3 update and also by replacing the Track preference file .plist using an app called Pacifist which allows you to look into MacOSX installation Disk or image and search and extract individual files, in my case the default .plist file for the System Menu Trackpad. glad to see the back of this bizarre predicament.
I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame showing me all the other folders on the left hand side. Does anyone know how to do this?
Thank you,
Rohit
When invoking ShellExecute(), use the explore verb instead of the open verb: http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx.
Edit: If you don't mean programmatically, open Windows Explorer, go to Tools -> Folder Options, select the File Types tab, locate the Folder entry in the list (not File Folder!), click Advanced, and set "explore" as default instead of "open".
There really isn't much difference anymore between 'explore' and 'open' if you're talking about a folder. They both open the same window, just with different options active. When you 'open' the folder, you're only one click away (on my system at least) from seeing the folder tree as well- just click the "Folders" button in the toolbar.