I need help creating a registry file. Detailed question, should be easy to answer.

Discussion in 'Software' started by chrisdab, Mar 11, 2008.

  1. chrisdab

    chrisdab Private E-2

    I want to create a registry key for a webcal link so that it can open external programs from IE or Firefox. I tried creating a registry file following these links:
    http://msdn2.microsoft.com/en-us/library/aa767914.aspx
    http://blogs.msdn.com/noahc/archive/2006/10/19/register-a-custom-url-protocol-handler.aspx

    When I created the file and named it webcal.reg, I get the error message: The specified file is not a registry script. You can only import binary registry files from within the registry editor.
    this is the reg file I used: named webcal.reg
    --

    [HKEY_CLASSES_ROOT]

    [webcal]

    (Default) = "URL:Webcal Protocol Handler"

    URL Protocol = ""

    [DefaultIcon]

    (Default) = "sunbird.exe”

    [shell]

    [open]

    [command]

    (Default) = "E:\Program Files\Mozilla Sunbird\sunbird.exe "%1""

    --

    and I created a batch file
    --
    @echo off
    regedit /s webcal.reg
    pause
    --
    batch file wouldnt have worked anyways.

    So I got this far but now I am stuck.
     
  2. Kniht

    Kniht Sergeant

    Re: I need help creating a registry file. Detailed question, should be easy to answe

    If I were creating a .reg file for what you specify I would create it something like this in notepad or some other text editor.

    [HKEY_CLASSES_ROOT\webcal]
    "Default"="URL:Webcal Protocol Handler"
    "URL Protocol"=****

    [HKEY_CLASSES_ROOT\webcal\DefaultIcon]
    "Default"="sunbird.exe"

    [HKEY_CLASSES_ROOT\webcal\shell]

    [HKEY_CLASSES_ROOT\webcal\shell\open]

    [HKEY_CLASSES_ROOT\webcal\shell\open\command]
    "Default"="E:\Program Files\Mozilla Sunbird\sunbird.exe" "%1"

    Save this to my desktop as an .reg file. Left click on the .reg file and select "Merge".
     
  3. chrisdab

    chrisdab Private E-2

    Re: I need help creating a registry file. Detailed question, should be easy to answe

    yes I did something similar to that already.

    My final version worked:

    --
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Webcal]
    "URL Protocol"=""
    @="Webcal Protocol Handler"

    [HKEY_CLASSES_ROOT\Webcal\Default Icon]
    @="e:\\program files\\mozilla sunbird\\sunbird.exe"

    [HKEY_CLASSES_ROOT\Webcal\Shell]

    [HKEY_CLASSES_ROOT\Webcal\Shell\Open]

    [HKEY_CLASSES_ROOT\Webcal\Shell\Open\Command]
    @="e:\\program files\\mozilla sunbird\\sunbird.exe %1"
    --

    thanks for your help.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds