Where "path" is a the full path of a PDF file to open. To do this instead: public void ShowDefaultDialog(string path) Note that this is quite hacky and it's probably much better to just direct the user to the default programs dialog. (back up the registry before making big changes!!) This is Microsoft's attempt to stop apps from modifying the default programmatically like this.ĭownload the REG file from that page and merge it with the registry first - it prevents Microsoft's apps from resetting the defaults. pdf files, so it was reset to Microsoft Edge". Then navigate to a PDF file and right-click it.
Make adobe default pdf reader windows 10 how to#
You may need to change the permissions on the registry value - to do this run regedit, navigate to "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts.pdf\UserChoice", press Edit -> Permissions, and change ALL APPLICATION PACKAGES to "Full Control".Īs of Windows 10, you may receive a notification when doing this that "An app caused a problem with the default app setting for. Method 1: How to Make Adobe Default via File Properties Step 1. Having to make adjustments every time you open a PDF can get a bit time consuming though. You can easily change this by using the Zoom buttons on the top toolbar. Open PowerPDF > File > Options > General > Integrations > select Disable - View PDF documents in Internet Explorer. After installing Adobe Reader X on my computer, it would display PDF files with a very small view. Then you can use SetPDFDefault(Readers.AdobeReader) to change the default. Open PowerPDF > File > Options > General > Startup > Default PDF Program > Return to Previous default application application. You can see that Microsoft Edge is displayed as its default reader.
Step 3: Click Associate a file type or protocol with a program when you come to the following interface. String nVal = nVal,RegistryValueKind.String) Step 2: In the main interface of Control Panel, choose Programs to get the following page, then click Default Programs. Public void SetPDFDefault(Readers program) If your application has administrator privileges you can use something like the following: public enum Readersĭictionary _PDFReaders = new Dictionary()