Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting the default icon in the registry

Setting the default icon in the registry

Scheduled Pinned Locked Moved C / C++ / MFC
htmlwindows-admintoolshelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Like2Byte
    wrote on last edited by
    #1

    Hi, I've got a few extensions I need to add to the registry so when the user is exploring via windows explorer they will see a default icon I've created for the extensions. I've already created a script to register the 'display description' (ie: '.htm' file extensions are described with 'HTML Document'). That, I have working. What keys do I need to create in order for an icon to be displayed for the file. (By default, the 'Unknown Document' is shown.) I want to display my own icon. All the sites I've explored during my research only mention how to change existing registry entries. I need a .reg file because the app is going to be deployed. Will I need to create a CLSID or use one from the App that has been created? I'm thinking I'm going to need 2 or 3 registry entries in order to get this to work but I don't know where to start. Anyone help? Thanks! :)

    L 1 Reply Last reply
    0
    • L Like2Byte

      Hi, I've got a few extensions I need to add to the registry so when the user is exploring via windows explorer they will see a default icon I've created for the extensions. I've already created a script to register the 'display description' (ie: '.htm' file extensions are described with 'HTML Document'). That, I have working. What keys do I need to create in order for an icon to be displayed for the file. (By default, the 'Unknown Document' is shown.) I want to display my own icon. All the sites I've explored during my research only mention how to change existing registry entries. I need a .reg file because the app is going to be deployed. Will I need to create a CLSID or use one from the App that has been created? I'm thinking I'm going to need 2 or 3 registry entries in order to get this to work but I don't know where to start. Anyone help? Thanks! :)

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Like2Byte wrote:

      but I don't know where to start.

      Like2Byte wrote:

      Anyone help?

      Sure I always enjoy helping the Google impaired. Knock yourself out[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups