sodcalculator

10 Tech How-To

How to Add Programs to Open With List in Windows

Guide 10-44645 · Updated · Step by step

This guide shows you how to add or remove programs from the “Open with” context menu in Windows. This menu appears when you right-click a file and hover over “Open with,” letting you choose which application should open that file type. You’ll learn how to manually add any installed program to the list and remove entries that no longer work or that you don’t want cluttering the menu.

What You’ll Need

  • Administrator access to your Windows PC (required for editing the registry)
  • The path to the .exe file of the program you want to add (e.g., C:\Program Files\MyApp\myapp.exe)
  • Backup of your registry (recommended before making changes)

Step-by-Step

  1. Open the Registry Editor. Press Win + R, type regedit, and press Enter. Click “Yes” if prompted by User Account Control.
  2. Back up the registry (recommended). In Registry Editor, go to File > Export, choose a location, name the file, and click Save. This lets you restore if something goes wrong.
  3. Navigate to the OpenWith key. In the left sidebar, paste this path into the address bar and press Enter:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
  4. Find your file extension. Under FileExts, you’ll see folders for each file extension (like .txt, .jpg, .pdf). Click the one you want to modify. If it doesn’t exist, right-click FileExts, choose New > Key, and name it with the extension including the dot (e.g., .xyz).
  5. Create the OpenWithList key. Inside your extension folder, right-click in the empty space, select New > Key, and name it OpenWithList. If it already exists, skip this step.
  6. Add a new program entry. Right-click inside OpenWithList, select New > String Value. Name it a (or the next letter if a exists — check existing values like b, c).
  7. Set the program path. Double-click the new value you created. In the Value data field, enter the full path to the program’s .exe file (e.g., C:\Program Files\Notepad++\notepad++.exe). Click OK.
  8. Remove a program from the list. To remove an entry, simply right-click the value (like a or b) that points to the program you want gone, and choose Delete. Confirm the deletion.
  9. Close Registry Editor. The changes take effect immediately, but you may need to restart Explorer or sign out/in for some versions of Windows to refresh the menu.

Common Mistakes

  • Editing the wrong extension folder. Double-check you’re inside the correct extension (e.g., .jpg not .jpeg).
  • Using the wrong registry hive. The steps above use HKEY_CURRENT_USER, which affects only your account. If you want it for all users, you’d edit HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts — but that’s riskier and often unnecessary.
  • Forgetting the leading dot. Extension folders always start with a period (.pdf, not pdf).
  • Typing the wrong path. A typo in the .exe path means the entry won’t work. Copy the path from the program’s shortcut properties to avoid mistakes.
  • Skipping the backup. A single wrong delete can break file associations. Always export before editing.

Tips

  • Use the “Open with” dialog first. Often, you don’t need the registry. Right-click a file, choose Open with > Choose another app, select the program, and check “Always use this app” — this adds it to the list automatically.
  • Check the “Applications” subkey. Some programs appear under HKEY_CLASSES_ROOT\Applications\yourapp.exe. If your manual entry doesn’t show up, look there and add a shell\open\command value pointing to the exe.
  • Use letters in order. The registry lists values alphabetically. If you have a and b, the next should be c — but any letter works as long as it’s unique.
  • Restart Explorer if needed. Press Ctrl+Shift+Esc to open Task Manager, find “Windows Explorer,” right-click it, and choose Restart.
  • For portable apps. You can add portable (non-installed) programs the same way — just point to the exe wherever it lives.

Troubleshooting

  • The program doesn’t appear in the list. Verify the path is correct and the .exe actually exists. Also confirm you’re looking at the right extension folder. If it still doesn’t show, try adding the program under HKEY_CLASSES_ROOT\Applications\yourapp.exe\shell\open\command with a default value of "C:\path\to\app.exe" "%1".
  • You get an “Access denied” error when editing. Make sure you’re logged in as an administrator. Right-click Registry Editor and choose “Run as administrator” before making changes.
  • The menu shows a broken entry (program uninstalled). Go back to the OpenWithList key and delete the value that points to the missing exe.
  • Changes affect only some file types. Each extension has its own OpenWithList. You must repeat the steps for every extension you want to modify.
  • Windows resets your changes after reboot. Some updates or system cleanups can rewrite these keys. Re-apply the registry edit, or better, use the built-in “Open with” dialog to set the association permanently.

Frequently Asked Questions

Is there a safer way than editing the registry?

Yes. Right-click the file, choose Open with > Choose another app, pick the program, and tick “Always use this app to open .ext files.” This adds it without touching the registry manually.

Why can’t I see the “Open with” option for some files?

Some system files or files with unknown extensions hide this option. You can force it by holding Shift while right-clicking the file — this shows “Open with” in the extended context menu.

Can I remove the “Open with” option entirely for a file type?

It’s not recommended. If you must, you can delete the OpenWithList key for that extension, but this can break the default behavior. Better to just remove the unwanted programs from the list.

Do I need to restart my PC after editing the registry?

Usually not. Restarting Windows Explorer (via Task Manager) or signing out and back in is enough to refresh the menu.

What if I want to add a program for all users on the PC?

Edit HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts instead of the HKEY_CURRENT_USER path. This requires admin rights and affects every account.

Why does my added program open the file but with a blank window?

The program may not support being launched with a file argument. Check the app’s documentation to see if it can handle command-line file opening. If not, it won’t work as an “Open with” target.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →