I have an issue with a custom file extension that I've added in the registry, I've followed all steps, reviewed the .ico file path, deleted the associated registry entries and tried again, rebooting Windows and nothing.

Due I have low reputation points I can't add an image, but the file with the custom extension has an icon with the white sheet and the application icon in the center of it.

The extension is .mqs and it's in the registry as .mqs with MQSFile value in HKEY_CLASSES_ROOT, and the second key named MQSFile in HKEY_CLASSES_ROOT default value is "Encrypted MQS script" and DefaultIcon value has the icon path "C:\Program Files\MQS\resources\folder_icon.ico"

So what's wrong, the registry keys? Or the icon cache?


You make it in the DefaultIcon default value.

Windows Registry Editor Version 5.00


Example, regedit icon for .reg files.

Windows Registry Editor Version 5.00


Value decoded


The comma, one is the icon position in-case of multiple icons.

| improve this answer | |
  • so if you are confident this is correct in your app, we should flush the icon cache, what OS are you on XP, W7, W8 ??? – Knuckle-Dragger Dec 18 '13 at 18:19
  • C:\Users\KNUCKLE-DRAGGER\AppData\Local\IconCache.db on my W7, probably safer to delete while logged as a different user. – Knuckle-Dragger Dec 18 '13 at 18:22
  • Thanks, in your answer just noted that DefaultIcon must be a subkey and not the value in MQSFile! I have Windows 7, sorry for not adding that info! And to update icon cache just used ie4uinit.exe -ClearIconCache – FukYouAll Dec 18 '13 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.