Announcement

Collapse
No announcement yet.

Registering File-Extention

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Registering File-Extention

    How could I register a File-Extention for my Program and an icon as a default icon for my own extention

  • #2
    Re: Registering File-Extention

    Hi,
    This is taken from the HELP file, in the Registry Command Properties:

    Example
    Perhaps you want to create a file association for a common file type with your program. This way the system will use your program to open the file type. To create a file association for the .txt file type that associates it with our program called myeditor.exe there are three separate Registry commands:

    Command One:
    Action: Set Value
    Main Key: HKEY_CURRENT_USER
    Sub Key: .txt
    Value: Name
    Value: Type REG_SZ
    Value: Data MyTextEditor
    If Value Exists: Action Overwrite
    If Value Exists Separator: N/A

    Command Two:
    Action: Set Value
    Main Key: HKEY_CURRENT_USER
    Sub Key: MyTextEditor\shell\open\command
    Value: Name
    Value: Type REG_SZ
    Value: Data %AppDir%\myeditor.exe %1
    If Value Exists: Action Overwrite
    If Value Exists Separator: N/A

    Command Three (Optional - Specifies an icon for the file type):
    Action: Set Value
    Main Key: HKEY_CURRENT_USER
    Sub Key: MyTextEditor\DefaultIcon
    Value: Name
    Value: Type REG_SZ
    Value: Data %AppDir%\myeditor.exe,0
    If Value Exists: Action Overwrite
    If Value Exists Separator: N/A

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    Working...
    X