Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: registry issues

  1. #1
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: registry issues

    You could try exporting the entire key, instead of just the single value you're interested in. Then search for that value in the resulting .reg file to determine whether it exists...
    --[[ Indigo Rose Software Developer ]]

  2. #2
    Join Date
    Jul 2000
    Location
    White Plains, MD
    Posts
    39

    Re: registry issues

    The big issue is that I can't check to see if the user is allowed to use REGEDIT without running it, and generating a non SF6 error (windows system error).



  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Grin Re: registry issues

    You might be able to check the user's permissions in the Registry.
    --[[ Indigo Rose Software Developer ]]

  4. #4
    Join Date
    Jul 2000
    Location
    White Plains, MD
    Posts
    39

    registry issues

    Ok - because SF6 does not allow you to determine if a value name exists, I have to use REGEDIT in silent mode to dump the key out to a text file then search for the value name. Well, I am trying to build in some error checking - for example, if the following value (HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Policies\System\DisableRegistryTools) exists and is 1, then I need to tell the user that they need to either gain admin access or be authorized to use REGEDIT. But since I cannot determine if the value name exists, I get an error, because when you try to read a value, and it doesn't exist, you get an error. The problem lies in the fact that I would like to trap an error if this value name cannot be read at all (because the user may not be permitted to read the registry) but I also need to determine if the valuename exists. Since this is all related to using REGEDIT, I guess SF6 really needs a way to check if a valuename exists, besides the current "if a key exists." If this was the case, I wouldn't have to use REGEDIT at all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts