TechSpot

Registry Problem

By JustGreat
May 7, 2010
  1. Hi all,
    I have a problem related to registry and i hope you will help me to solve it

    I made a programm and wanted it to appear on the right click windows menu, of all files and folders, so i added it to registry in the following places :

    For admin users, i added it to

    To add it to all files :
    - HKEY_CLASSES_ROOT\*\shell\Open With My program\command


    To add it to all folders :
    - HKEY_CLASSES_ROOT\Directory\shell\Open With My program\command

    For users that are not admin (if they have rights to write in the registry) :

    To add it to all files :
    - HKEY_CURRENT_USER\Software\Classes\*\Shell\Open With My program\command

    To add it to all folders :
    - HKEY_CURRENT_USER\Software\Classes\Folder\Shell\Open With My program\command



    It's working as supposed, i mean it appears on the right click menu in windows for all files and folders, BUT THE PROBLEM IS :

    When i make double click with "LEFT" mouse, on files that is not associated to an application in my pc (.swf, .vbw etc..), my program is launched automatically !!
    USUALLY, when we do this, we have the open with form that appears, but since i added my program as described above , it's my program that run automatically ..
    What is weird, is that if i create a txt file and i changed it's extension from .txt to something like .moe, .zea etc....my programm is not launched like the case of .swf and others, but i get the normal OPEN WITH window !

    Can anyone tell me why and how to prevent this problem ?
     
  2. jobeard

    jobeard TS Ambassador Posts: 9,315   +618

    the last addition become the default action and you should see that in the right-click open with list

    does that stimulate ideas?
     
  3. JustGreat

    JustGreat TS Rookie Topic Starter

    jobeard, you are the only one who tried to help and i appreciate a lot, but honestly i didn't understand your sentence

    What i understand from you is that because i added the last one my key to the registry, my program become the default to be launched ?
    If yes, then how to solve this ?
    do i have to add my program + an empty dummy key after it, so the empty key will be the last ?

    am i adding in the right place in the registry ?
     
  4. thomasbeherns

    thomasbeherns TS Rookie

    It looks like the key you added has made your program the default program to open most of your files. You can try checking your default programs to verify that this is the problem. If your defaults is correct then it could be the location of the key and or the the way you wrote the key.
     
  5. JustGreat

    JustGreat TS Rookie Topic Starter

    thanks for your reply,

    How to check my default programs ? as for the place of the keys i added i mentioned them above, anything wrong with that ?
    As for the way i'am adding my keys, am writing a command key inside these keys and i am adding to it's value the path of my program

    thanks again to any suggestion and help provided
     
  6. thomasbeherns

    thomasbeherns TS Rookie

    In xp you can access your default programs from the control panel under add remove programs, and in vista you can access it from Control Panel\Programs\Default Programs. In xp however this is only a dummed down version. There are user defined programs that can control default actions for programs.

    Hope this helps
     
  7. JustGreat

    JustGreat TS Rookie Topic Starter

    thanks, I went there and my program is not inside any part of the default programs !
    By the way, my program is a stand alone exe
     
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...