Reg File for Custom File Type Handler Program


  1. Posts : 8
    Windows 10
       #1

    Reg File for Custom File Type Handler Program


    Suppose instead of the default reg settings for, say, pdf files, one wants a reg file to set up a custom program handler.

    For instance, Sumatra. One would like Sumatra to handle pdf files. When one double-clicks on a pdf file, Sumatra loads and shows the pdf file.

    How would one set up a reg file to establish that?

    As has been noted elsewhere, presently many are reporting that Windows seems to be switching our default program apps. So, in the pdf case, Sumatra is being switched to Edge. A reg file, then, to make the switch back would be greatly appreciated.

    One can then study the requested reg file to use with other switched extensions as well.

    Thanks,
    Nicholas Kormanik
      My Computer


  2. Posts : 8,107
    windows 10
       #2

    Welcome to the forum. Set pdf to sumatra then goto reg edit Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts find the key and export it then you have your reg file
      My Computer


  3. Posts : 8
    Windows 10
    Thread Starter
       #3

    Did as suggested. Saved entire registry branch:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts

    Rebooted computer.

    Instantly see what I'd earlier set up has been switched to what Microsoft wants. All reset.

    Then I merged the saved 'customized' branch back into registry. Hoping to get back to the associations that I want.

    No luck. Pdfs still load in Edge. As do epubs. Not Sumatra.
    And web links bring up Edge as well, instead of Chrome.

    Any other suggestions?

    Thanks.
      My Computer


  4. Posts : 42,984
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Reg File for Custom File Type Handler Program-1.jpg
    That's the one that changes if you change the association.
    You can try it for yourself- change the association e.g. via Open with and tick the box, then refresh the registry display.

    (The Openwithlist should (more or less) match those displayed when rt clicking a pdf and clicking Open with of course).

    Adobe users have historically been much more prone to pdf association problems. Not something I've seen much of personally.

    If attempting to make the change by merging a reg file, you may have to do more to apply the change.
      My Computers


  5. Posts : 8,107
    windows 10
       #5

    Did you save the key for sumatra or the whole branch?
      My Computer


  6. Posts : 1,767
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #6

    Feel free to tell me to butt out but I can't duplicate this behaviour. Using Win 10 Home 1709 Build 16299.125 x64 I installed SumatraPDF 3.1.2 using the Use SumatraPDF as the default PDF reader option:
    Reg File for Custom File Type Handler Program-sumatrapdf01.jpg

    After installation, the usual nonsense notification appeared:
    Reg File for Custom File Type Handler Program-sumatrapdf02.jpg

    I used Start > Settings > Apps > Default apps > Choose default applications by file type to select SumatraPDF for PDF files.

    Two restarts and a shutdown/restart later and the default PDF handler is still SumatraPDF.

    I reset the VM afterwards and did exactly the same again... with the exact same results. SumatraPDF remains the default PDF handler.
      My Computer


  7. Posts : 42,984
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

    Hi, if you mean you don't find the default pdf handler reverting to Edge as described in post #1 I agree.

    However there are plenty of reports of this sort of thing, mostly related to the use of Adobe products. Older reports about unexpected changes to associations have occurred because of old versions of programs such as winzip being installed.
      My Computers


  8. Posts : 1,767
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #8

    dalchina said:
    However there are plenty of reports of this sort of thing, mostly related to the use of Adobe products.
    Ah, thanks. I avoid Adobe products if I can, hence why I haven't seen the issue before. I was just interested in case this was another 'MS knows best for you' across the board. :)
      My Computer


  9. Posts : 8
    Windows 10
    Thread Starter
       #9

    Reg File for Custom File Type Handler Program


    After searching and experimenting like crazy, I finally found one solution that seems to work. 97% of the Windows program associations problem solved!

    Christoph Kolbicz is the wizard.

    GetUserFTA
    SetUserFTA
    SetDefaultBrowser

    Too complicated for me to explain. Go to his site and read about it.

    http://kolbi.cz/blog/?p=433

    Thanks to all of you for helping.

    Nicholas Kormanik
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:58.
Find Us




Windows 10 Forums