{"id":96175,"date":"2017-05-17T07:00:00","date_gmt":"2017-05-17T21:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/?p=96175"},"modified":"2019-03-13T01:11:35","modified_gmt":"2019-03-13T08:11:35","slug":"20170517-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20170517-00\/?p=96175","title":{"rendered":"Why do my PDF file associations get reset every time I restart?"},"content":{"rendered":"<p>A customer reported that each time they restart their Windows&nbsp;10 PC, the file association for PDF documents keeps getting reset to the default, which is Microsoft Edge. They use the &#8220;Set Default Programs&#8221; control panel to change the default handler to Program&nbsp;X, but the changes don&#8217;t stick past a reboot. <\/p>\n<p>The feature team for file associations explained that Windows&nbsp;10 changed the way the user&#8217;s file associations are recorded. Program&nbsp;X wants to set itself as the user&#8217;s preferred handler, but they want to do so without requiring the user to confirm the change. How considerate of them. So they manipulate the registry keys directly. (<a HREF=\"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20061101-03\/?p=29153\">I bet somebody got a really nice bonus for that feature<\/a>.) But they are manipulating them the pre-Windows&nbsp;10 way. This means that Windows&nbsp;10 detects the settings as corrupted and throws them away, causing the handler to fall back to the system default. <\/p>\n<p>The customer has a few choices here. <\/p>\n<p>The obvious choice is to stop using Program&nbsp;X. Easier said than done. Program&nbsp;X is probably essential to the customer&#8217;s workflow. That&#8217;s why they want to set it as the default! <\/p>\n<p>Another option is to work with the vendors who produce Program&nbsp;X and get them to stop mucking around in internal registry keys. (Good luck with that.) <\/p>\n<p>Yet another option is to set the system default handler to Program&nbsp;X, so that when Program&nbsp;X accidentally-on-purpose corrupts the user preferences, Windows&nbsp;10 falls back to the system default, which now happens to be Program&nbsp;X. <\/p>\n<p>It does mean that the user won&#8217;t be able to change their default handler to anything <i>other than<\/i> Program&nbsp;X. But given that Program&nbsp;X is corrupting the user preferences, this is the best you can hope for, assuming you are required to keep using Program&nbsp;X. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, that doesn&#8217;t look right.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-96175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>Hey, that doesn&#8217;t look right.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/96175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=96175"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/96175\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=96175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=96175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=96175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}