Author Topic: File associations and Windows 8.1 (64 bit) (solved)  (Read 12765 times)

0 Members and 1 Guest are viewing this topic.

Offline JoKiv

  • Newbie
  • *
  • Join Date: Jul 2015
  • Posts: 4
  • Karma: 0
    • View Profile
File associations and Windows 8.1 (64 bit) (solved)
« on: July 22, 2015, 01:07:54 pm »
Hi,
I'm using Windows 8.1 (64 bit) and I have bit odd problem with file associations.

I will use PureBasic as example here. This same were with html (firefox), pdf (sumatrapdf) and few others but I'll type those later in this message. Programs will try to associate extension but does not seem to be able to do it normal way. This includes when installing, uninstalling (leaves associations there) or withing program "register files".

So PureBasic tries to associate .pb, .pbi and .pbp and fails to do so. It's not fault of the PureBasic since same happens with every other program.

I want to register .pb to it's program (PureBasic) and the double clicking gives normal "How do you want to open this file (.pb)?" and suggests to check windows store or select program. When I select program from "Program Files\PureBasic\PureBasic.exe" the association does not get remembered. Even when I choose "[X] Use this application for all .pb files".

When I right click any .pb file and "Properties"; the "Opens with" is with green arrow icon and "Pick an application". When I click "Change..." windows presents same situation as above. I can select correct program but "Pick an application" does not change into PureBasic.exe.

With admin elevated cmd this is seen before and after trying to associate.
Code: [Select]
C:\WINDOWS\system32>assoc .pb
File association not found for extension .pb

Using "assoc .pb=PureBasic" will get remembered but that requires PureBasic to have more data in registry.



One way to fix the problem.

I did this with .pdf and html (with default application protocol)

.pdf
If I create .reg file that will remove .pdf association from HKEY_CLASSES_ROOT and HKEY_LOCAL_MACHINE and re-inserts data there as it should be the problem were gone .. for that file association.

Doing this for every file association is quite lot of work.

.html
If program lists itself to Windows Default Applications re-registering (like with Firefox) does not help. Firefox would still ask to be default browser at every startup.

I modified registry directly by deleting htmlfile references and re-created them by hand and .html opens Firefox, http: protocol works and Firefox knows it's default application.

I'm not sure did I fix the problem or did I "stuck" it into correct program. If I change program I would suspect old association would haunt there.

Only deleting data from registry leaves "Pick an application" into effect. Program can't change association.


I have tried to reset registry permissions. I have run Tweaking.com 3.2.5 with default settings (did not help). I don't have system restore point so far back that I could use that. Every program seem to function properly. Just file associations are weird.

SFC /scannow gets into 100% but comments about some unfixable files. C:\Windows\Logs\CBS\CBS.log is quite large to paste here and I'm not sure does it posses any security concerns if I paste it publicly.



I still keep googling and checking and provide feedback if I find something. If someone has some feedback to provide I'll gladly would like some help :)

I would not prefer any restorations where I need to reinstall most of the stuff again. System restore points are not option. I realized this problem after I had cleaned old enough restore points.
Windows built in other options are not too preferable. They require more work and I don't even know would it fix this problem without complete re-install.
« Last Edit: July 22, 2015, 08:38:09 pm by JoKiv »

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: File associations and Windows 8.1 (64 bit)
« Reply #1 on: July 22, 2015, 03:27:46 pm »
To set a file association all has to do with the registry. Then info is stored there, as you know.

Take a .reg file for example. The locations for it are

Quote
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.REG]
@="regfile"

[HKEY_CLASSES_ROOT\.REG\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\regfile]
"EditFlags"=dword:00100000
@="Registration Entries"
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
  00,6f,00,6f,00,74,00,25,00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,\
  2e,00,65,00,78,00,65,00,2c,00,2d,00,33,00,30,00,39,00,00,00

[HKEY_CLASSES_ROOT\regfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,00,78,00,65,00,\
  2c,00,31,00,00,00

[HKEY_CLASSES_ROOT\regfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,00,\
  74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,\
  00,22,00,00,00

[HKEY_CLASSES_ROOT\regfile\shell\open]
@="Mer&ge"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,72,00,65,00,67,00,65,00,64,00,69,00,74,00,2e,00,65,\
  00,78,00,65,00,2c,00,2d,00,33,00,31,00,30,00,00,00

[HKEY_CLASSES_ROOT\regfile\shell\open\command]
@="regedit.exe \"%1\""

[HKEY_CLASSES_ROOT\regfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,00,\
  74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,70,00,20,\
  00,22,00,25,00,31,00,22,00,00,00

[HKEY_CLASSES_ROOT\regfile\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.REG\UserChoice]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.REG\OpenWithProgids]
"regfile"=hex(0):

That is the default and I pulled it from the reg files from my windows repair program. So you can see how it can set for the hkey current user as well.

So normally it sounds like it is a permissions problem, but my repair should have fixed that. So it is possible there is something else going on that is keeping the registry from getting updated, such as a 3rd party program or some other odd setting in the registry.

So two tests to try,

1. Try to set the File associations in windows safe mode, that way all 3rd party programs are out of the way. If that works then we know it is a 3rd party program, if it still fails then we know the programs are not getting in the way.

2. If the first test fails then for the next one try making a new user account, log into that account and try. If this works then it tells us that the problem is with the other user profile and perhaps something in the hkey current user for that profile. It i fails as well then I dont have a clue yet lol

Oh, and when you ran my windows repair, did you make sure to run it in safe mode?

Shane

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: File associations and Windows 8.1 (64 bit)
« Reply #2 on: July 22, 2015, 04:24:32 pm »
You could still post the CBS Log as it may be relevant.

Open a Command Prompt (Admin) and enter findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

That will place an icon onto the Desktop which when double clicked will open in Notepad which you can copy & paste.

This is an edited version of the CBS Log where it just lists the files it has and cannot repair.

Offline JoKiv

  • Newbie
  • *
  • Join Date: Jul 2015
  • Posts: 4
  • Karma: 0
    • View Profile
Re: File associations and Windows 8.1 (64 bit)
« Reply #3 on: July 22, 2015, 05:17:54 pm »
Running safe mode.

Sfcdetails.txt as attachment (from: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt", run at safe mode.)

File associations are still the same with safe-mode.

Will run your fixes again .. THIS TIME in safe mode. (Sorry for ignoring that one .. I know it's important but for some reason I had some sort of brainfart at that)

I'll edit more info into this message if no-one has not commented when I get back.
« Last Edit: July 22, 2015, 05:27:56 pm by JoKiv »

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: File associations and Windows 8.1 (64 bit)
« Reply #4 on: July 22, 2015, 05:28:32 pm »
Dont edit old posts, reason why is I have the forum set to email me of new replies, but it doesnt do that for edits :-)

Let me know how it goes, also dont forget to try a new user account if all else fails as well.

Shane

Offline JoKiv

  • Newbie
  • *
  • Join Date: Jul 2015
  • Posts: 4
  • Karma: 0
    • View Profile
Re: File associations and Windows 8.1 (64 bit)
« Reply #5 on: July 22, 2015, 06:54:50 pm »
I did run default options with Windows Repair + Reset File Permissions.

It did not fix problem in question. Rebooting to normal mode did took way longer than normally.

I did create another user and it seems problem is profile specific (new user account does not have association problem)

It's not too hard to migrate into another user account but if you want to give some tips how to possibly fix I'm open to suggestions.

Offline JoKiv

  • Newbie
  • *
  • Join Date: Jul 2015
  • Posts: 4
  • Karma: 0
    • View Profile
Re: File associations and Windows 8.1 (64 bit) (solved)
« Reply #6 on: July 22, 2015, 08:38:51 pm »
I did happen to do something that forced me for migration and restore files from backup. So I mark this as solved.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: File associations and Windows 8.1 (64 bit) (solved)
« Reply #7 on: July 23, 2015, 01:40:26 am »
Just for interest, that sfc error can be ignored as it is a result of KB3068708 just as its predecessor KB3022345 was producing Diagnostic Tracking Service errors.

A chkdsk or chkdsk /f would probably come up clean, but you can use SFCFix.exe which may correct those in the CBS Log.  http://thetechcookbook.com/automatic-sfc-corruption-repair-sfcfix-exe/

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: File associations and Windows 8.1 (64 bit) (solved)
« Reply #8 on: July 23, 2015, 11:56:33 pm »
Good to hear you got it working by going to a new profile. Too bad we couldnt find out what was in the registry blocking it.

Shane