Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6995577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:02:51+00:00 2026-05-27T20:02:51+00:00

I am trying to get Windows to recognise my program’s File extensions but without

  • 0

I am trying to get Windows to recognise my program’s File extensions but without much luck, as usual.

This is what I am doing, please advise where or what I am doing wrong – I think I might have the registry locations or naming set incorrectly:

Sample Names

MyProg.exe = The name of the program.
%InstallPath% = Where the program will be installed.
.ext1 = 1st File Extension.
.ext2 = 2nd File Extension.
.ext3 = 3rd File Extension.

Registry Locations (where I have added to)

HKEY_CLASSES_ROOT\.ext1
HKEY_CLASSES_ROOT\.ext2
HKEY_CLASSES_ROOT\.ext3

HKEY_CLASSES_ROOT\.ext1\DefaultIcon,2
HKEY_CLASSES_ROOT\.ext1\shell\open\command\%InstallPath%\MyProg.exe %1

I got kind of lost off after that 🙁

File Images

I have added the 3 icon files from the XE IDE Resources Menu, and named them 2,3,4. I think if I have an Icon named 1, it will override the Project icon?

I want to get these working right before using an installer such as Inno Setup on a machine that has never seen my program (to see if the installation was flawless).

I can’t find any easy to follow guides 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:02:52+00:00Added an answer on May 27, 2026 at 8:02 pm

    You are setting up the Registry keys wrong. You need to associate the file extensions with ProgIDs, then associate the ProgIDs with your app, like this:

    HKEY_CLASSES_ROOT\.ext1 
    (Default) = "ext1File"
    
    HKEY_CLASSES_ROOT\.ext2 
    (Default) = "ext2File"
    
    HKEY_CLASSES_ROOT\.ext3 
    (Default) = "ext3File"
    
    HKEY_CLASSES_ROOT\ext1File\DefaultIcon
    (Default) = "%InstallPath%\MyProg.exe,2" 
    
    HKEY_CLASSES_ROOT\ext1File\shell\open\command
    (Default) = ""%InstallPath%\MyProg.exe" "%1""
    
    HKEY_CLASSES_ROOT\ext2File\DefaultIcon
    (Default) = "%InstallPath%\MyProg.exe,3" 
    
    HKEY_CLASSES_ROOT\ext2File\shell\open\command
    (Default) = ""%InstallPath%\MyProg.exe" "%1""
    
    HKEY_CLASSES_ROOT\ext3File\DefaultIcon
    (Default) = "%InstallPath%\MyProg.exe,4" 
    
    HKEY_CLASSES_ROOT\ext3File\shell\open\command
    (Default) = ""%InstallPath%\MyProg.exe" "%1""
    

    Read the following documentation for more details:

    File Types and File Associations

    FYI, you should not be writing data to HKEY_CLASSES_ROOT directly. Write to either HKEY_CURRENT_USER\Software\Classes and/or HKEY_LOCAL_MACHINE\Software\Classes instead, depending on whether you want per-user or machine-global registration. Read the following documentation for more details as to why.

    HKEY_CLASSES_ROOT Key

    Merged View of HKEY_CLASSES_ROOT

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get this simple program to work on windows, but it crashes:
I'm trying to get this simple windows dialog to spawn but as soon as
Trying to get Thin working with Bundle on Windows, I know, major PITA but
I'm trying to get Eclipse to recognise the PyLint configuration file that I use
I'm trying to get emacs tramp running under Windows XP to work over putty
I'm trying to get an updated version for Windows vista. I previously got 21.4.22
I'm trying to get a better understanding of how Windows, 32-bit, calculates the virtual
I'm trying to get a PHP site working in IIS on Windows Server with
I am trying to get a post-commit.bat script running on a Windows Vista Ultimate
I'm trying to get an application to pass the Windows 7 Software Logo Toolkit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.