1.    07 Nov 2015 #1
    Join Date : Nov 2015
    Posts : 1
    Windows 10 64-bit

    Adding file associations using registry entries?


    I've recently upgraded from Windows XP to 10 (64-bit), and the .reg files I've crafted for adding custom file associations don't work anymore. What's changed? How do I make them work again? Sample:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Classes\.pdf]
    @="user.sumatra.pdf"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf]
    @="PDF Document"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\\DefaultIcon]
    @="F:\\BIN\\SumatraPDF\\SumatraPDF.exe,1"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open\command]
    @="\"F:\\BIN\\SumatraPDF\\SumatraPDF.exe\" \"%1\""
    Last edited by kaka55tyanh; 08 Nov 2015 at 03:25.
      My ComputerSystem Spec
  2.    30 Nov 2015 #2
    Join Date : Nov 2015
    Posts : 6
    *

    Add this at the top:
    Code:
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
    Like:
    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
    
    [HKEY_CURRENT_USER\Software\Classes\.pdf]
    @="user.sumatra.pdf"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf]
    @="PDF Document"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\\DefaultIcon]
    @="F:\\BIN\\SumatraPDF\\SumatraPDF.exe,1"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open\command]
    @="\"F:\\BIN\\SumatraPDF\\SumatraPDF.exe\" \"%1\""
    Source:
    The AppSense Bigot: Deploying per-user file type associations (FTAs) on XenApp 7.6 Server 2012 R2 (slightly reloaded)
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Customization Add Registry File to New Context Menu in Windows 10
.Reg files are registration entries that are text-based human-readable files for exporting and importing portions of the Registry. The New context menu allows users to quickly create new files, folders, and shortcuts. You can right click or press...
Tutorials
Solved How do I show file extensions?
I've just 'upgraded' to Windows 10 from Windows 7. I've noticed that file extensions are not shown when I display the files in a folder. For example I have a folder containing html files, and all that appears is e.g. Chapter00 when it should show...
General Support
Windows 7 Pro to Windows 10 upgrade deletes registry entries
Hello folks. In advance, I really haven't lost my marbles. Here's the deal. The org for which I work runs an application on a couple of thousand pcs. This application, when installed creates the following registry entry....
Installation and Upgrade
File explorer Duplicate entries for external drives
After a system refresh of Windows 10 all external disk storage drives, Micro SD and USB are listed twice in file explorer. This is a common problem, reported many times in forums and community support web sites. Could a solution be to reload file...
Drivers and Hardware
Adding Windows Update to control panel, registry write error.
I am trying to add the windows update tab under the control panel. I have made a new notepad document on my desktop and named it Add_Windows_Update_to_Control_Panel.reg this was pasted inside the notepad Windows Registry Editor Version5.00 ...
Windows Updates and Activation
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 00:01.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums