Editing the "Open with" menu in Windows 10

20

3

I use PDF Split & Merge (PDF SAM) frequently, but don't want to set it as the default PDF handler.

When I right-click on a PDF and select Open with, these are the options I am given. To select PDF SAM I must click Choose another app and select PDF SAM there.

enter image description here

I would like for PDF SAM to be directly in the Open with menu.

I have looked over these questions for help:

I have modified the registry to set PDF SAM as the 2nd option in the OpenWithList:

enter image description here

But this does not appear to actually change anything.

I would be happy if Chrome, Edge, and Waterfox were simply not on that list of programs in the Open with menu, and I assume this would free up enough room for PDF SAM to graduate to the main list, but only Waterfox shows in the OpenWithList in the registry, and removing it does not appear to make any difference.

Update 1

Following the suggestions in the question linked in the comments (Manually Add Program to Open With in Windows 10) I tried DefaultProgramEditor and it failed utterly.

Then I opened the registry to HKCR.pdf\OpenWithProgids and removed the Waterfox entry from there, and this indeed removed Waterfox from the Open with list, but it did not add PDFSAM to that main list:

Registry:
enter image description here

Open with menu:
enter image description here

So, we've figured out how to remove unwanted entries from the primary list, but not how to add wanted entries to it.

I also found list similar question: Strange open with list (inconsistent with registry)

And checked to make sure that PDF SAM has both entries suggested by the answer there, and it does:
enter image description here

Update 2

A little bit after upgrading Windows 10 to build 1809 I noted PDF SAM is now showing in the Open With menu.

I have not tested yet to confirm that Microsoft has resolved this issue or if something else broke loose. Once I've confirmed this though, I'll write up an answer.

music2myear

Posted 2018-03-13T21:02:40.427

Reputation: 34 957

Not 100% sure, but I think it is a 2part edit and you have to edit/add to HKEY_CLASSES_ROOT\.pdf also. Check how the keys are added and I think you can figure it out – Narzard – 2018-03-13T21:14:04.923

Looks like they finally added context menus to allow this, but haven't tried it personally - https://superuser.com/questions/981962/manually-add-program-to-open-with-in-windows-10

– panhandel – 2018-03-13T21:15:02.597

If you go to open with, pick PDF SAM in the "choose another app", and open the file, the next time you go to the open with menu for that filetype it should auto populate it with PDF SAM listed. I just tried this out by opening an image with IE via the open with menu and it populated the next time. Does this not work for you? I suppose not, since you are clearly a power users, but it is a curiosity that this isn't happening. – Dispenser – 2018-03-20T18:59:38.360

Yea, you could call me a Power User. Also, yea, the list does not change based on use. – music2myear – 2018-03-20T19:08:11.837

@music2myear Have you tried Default Programs Editor ? check it out and I assume that it has the exact feature that you need.

– Ĭsααc tիε βöss – 2018-03-21T07:14:00.633

Have you used NirSofts app OpenWithView? Sonuds like exactly what you are looking for, I use it myself along with their Context menu editor to create custom "Right click" menus. https://www.nirsoft.net/utils/open_with_view.html

– Panomosh – 2018-03-21T13:34:21.287

@Ĭsααctիεβöss yes, that is listed in Update 1. – music2myear – 2018-03-22T15:22:12.847

@Panomosh this utility only disables/enables for ALL associated file types. It does not allow me to prevent applications from showing per-filetype. – music2myear – 2018-03-22T15:30:02.103

Answers

3

I had the exact same problem when I couldn't add Nitro Pro to the "Open with" Context Menu for *.pdf files. That's on Win7, but it doesn't look like if MS' approach to the feature has changed between both Operating Systems.

Trying out all kind of suggestions found online, I also gave NirSoft's OpenWithView a shot. (see http://www.nirsoft.net/utils/open_with_view.html ) This tool lists "all available applications in the 'Open With' dialog-box of Windows". Sure enough, it also listed Nitro Pro, but I became suspicious because the default icon of the tool wasn't displayed in the overview screen, whereas for all other programs it was. Next doublechecking the application's path (that's another column in the same overview), I found that it listed an old path, not the current one. (I had changed a folder name in the path at some point, an was surprized to find it back in this overview)

With yet another NirSoft tool, MUI Cacheview (see http://www.nirsoft.net/utils/muicache_view.html ), which allows to "view and edit the list of all MuiCache items on a system", I found that the MUIcache contained several values for Nitro Pro. Not only the most recent (and correct) one: somehow the obsolete name had also pertained. Apparently, this erroneous/obsolete value was the first one encountered and withheld by other applications, which could explain the abnormal behavior of the program.

As soon as OpenWithView displayed Nitro Pro correctly (i.e. correct path, also reflected by the tool's icon being shown), I was able to add it to the "Open With" list by following the steps indicated already: right click a pdf file >> Open with >> Choose another app (or "Choose another program..." in Win7). Next browse to the correct location, select the executable, and click "Open" button.

I'm not claiming that the same is happening in OP's case, as several elements of the "Open with" menu seem to behave bizarrely (see e.g. also this other post Strange open with list (inconsistent with registry) mentioned by OP), but it's not excluded either. The NirSoft tools are freeware AND portable, so OP could easily & quickly give the above a try.

WinMike

Posted 2018-03-13T21:02:40.427

Reputation: 53

1

Here is a workaround but it does work.

1) Select Open With and select Choose Another App

2) Select the App you want to add to the Open With list and click the Always open with this app radio button.

The app will now appear on the Open With context menu so if you do not want it to be the default app, go through the process again and select Adobe PDF Reader as the default app.

Windows registry has become a bit disorganized over the years and it is difficult to figure out what is going on. If you have the time, you could post before and after differences in your registry to see what Win 10 changed in this process.

Dan Sp.

Posted 2018-03-13T21:02:40.427

Reputation: 191

2This does not work. I set PDF SAM as the default handler the way your described and opened the Open With menu again and it was still not listed there. I set the default handler back to Reader and PDF SAM still does not show in the main Open With menu. – music2myear – 2018-03-21T20:24:23.273

@ music2myear Interesting. My Win10 is up to date and I just tried it to make sure it has those results. It does on mine. Does it show up while it is the default handler and disappear when you set Reader back? – Dan Sp. – 2018-03-21T23:45:51.707

Nope. It does not show up in the list at any point in these steps. – music2myear – 2018-03-22T15:23:49.687

1

For anyone that still has this problem, the solution would be going to

\HKEY_CLASSES_ROOT\Applications\"ProgramName.exe"\SupportedTypes

and add a new string containing the format you want to open e.g. ".mp4"

Chorong Park

Posted 2018-03-13T21:02:40.427

Reputation: 11

I'll check that out. – music2myear – 2019-02-19T17:04:05.160

I've tried that but I didn't success. SupportedTypes is a key? What .mp4 should be? Another key? Would you please develop your answer in detail? – cdlvcdlv – 2019-03-22T17:20:21.940

@cdlvcdlv Just check the other registry items for reference. For example mspaint.exe. – Tara – 2019-10-23T11:15:40.877

0

For those who are still having the same issue when deploying app via APP-V 5x:

I had success to make a program selectable (and use default) in Open With context menu. The solution above is working well but usually users don't want to use context menu at every time instead associate to file type. As we are in a managed environment and not automatically associate anything via SCCM deployment therefore a small workaround could be:

First explored some reason even our app in virtual HKCR\Applicatons\something.exe could not be selected from Open With after published to user. I made the following PowerShell script and the trick will be done when running at add-package as run in machine-context and put necessary data into native registry. Yes, this script could be easier and more transparent, but for testing purposes should be fine for first shot:

$ConnectorScriptRootPath = Split-Path -Path ((Get-Variable MyInvocation).Value).MyCommand.Path -Parent

$ConnectorRootPath = Split-Path -Path $ConnectorScriptRootPath -Parent

$OWExecutable = """" + $ConnectorRootPath + "\Root\VFS\ProgramFilesX64\VLC\vlc.exe" + """" + " --started-from-file " + """" + "%1" + """"

New-Item -Path HKLM:\Software\Classes\Applications -Name vlc.exe –Force

New-Item -Path HKLM:\Software\Classes\Applications\vlc.exe -Name shell –Force

New-Item -Path HKLM:\Software\Classes\Applications\vlc.exe\shell -Name Open –Force

New-Item -Path HKLM:\Software\Classes\Applications\vlc.exe\shell\Open -Name Command –Force

New-ItemProperty -Path HKLM:\Software\Classes\Applications\vlc.exe -Name "FriendlyAppName" -Value "VLC Media Player" -PropertyType String -Force

Set-Item -Path HKLM:\Software\Classes\Applications\vlc.exe\shell\Open -Value "Play with VLC Media Player" -Force

Set-Item -Path HKLM:\Software\Classes\Applications\vlc.exe\shell\Open\Command  -Value $OWExecutable -Force

And I place this file into script directory:

[{AppVPackageRoot}]\..\Scripts\VLC_AddPackage.ps1

After sequenced and in package editor I exported the manifest file and opened with App-V Manifest Editor from TMUrgent solution. In manifest editor I went to scripts/machine scripts/Add-package and set:

Path: PowerShell.exe
Arguments: -executionpolicy bypass [{AppVPackageRoot}]\..\Scripts\VLC_AddPackage.ps1
wait: true
Timeout:30

Be careful with AppvEnvvars have to be as above: [{AppVPackageRoot}] Be careful with wait: if script goes wrong and there is no timeout then you could be in an unwanted situation.

After adding (and publishing) the package, it can be browsed from more applications in Open With and the user can be set it up as a default one.

Here not mentioned but take care when removing the package; there should be another script which removes entries added when publishing.

Hope this helps.

tamasult

Posted 2018-03-13T21:02:40.427

Reputation: 1