Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Bug: Incorrect registry key when created from GUI

  1. #1

    Default Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 2:26 AM]

    I added a registry key to HKLM using the GUI. RegTree.png shows that entry.
    In the script editor the GUI created entry shows HRCR as the root as shown in
    RegBadSource.png.

    ?PNG
    ?PNG

    --
    Best regards,

    Mark

  2. #2

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 8:34 AM]

    Mark,

    Do you know how to reproduce this?

    BTW, to "fix" this you can drag and drop the "Software" key to, say,
    HKEY_CLASSES_ROOT and then back to HKEY_LOCAL_MACHINE.

    Thanks,
    Friedrich

    --
    Friedrich Linder
    www.lindersoft.com
    Fax: 1.954.252.3910

  3. #3

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 8:47 AM]

    >Mark,
    >
    >Do you know how to reproduce this?

    I haven't tried to repeat it. When it occurred I had simply followed the
    steps necessary to add the key and value to HKLM, and then saw it was HKCR in
    the script.

    >BTW, to "fix" this you can drag and drop the "Software" key to, say,
    >HKEY CLASSES ROOT and then back to HKEY LOCAL MACHINE.

    Thanks, but I'll add them manually to the script. A bit a extra care when
    dealing with the registry is always worth the effort. :}

    --
    Best regards,

    Mark

  4. #4

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 9:03 AM]

    Hi Mark,

    >>BTW, to "fix" this you can drag and drop the "Software" key to, say,
    >>HKEY CLASSES ROOT and then back to HKEY LOCAL MACHINE.
    >
    > Thanks, but I'll add them manually to the script. A bit a extra care when
    > dealing with the registry is always worth the effort. :}

    Yes, I understand. But the above drag and drop method fixes this. Under
    certain circumstances, the IDE seems to lose the key name. The problem is
    that I cannot reproduce this :-(

    Thanks again,
    Friedrich

    --
    Friedrich Linder
    www.lindersoft.com
    Fax: 1.954.252.3910

  5. #5

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 5:15 PM]

    >Hi Mark,
    >
    >>>BTW, to "fix" this you can drag and drop the "Software" key to, say,
    >>>HKEY CLASSES ROOT and then back to HKEY LOCAL MACHINE.
    >>
    >> Thanks, but I'll add them manually to the script. A bit a extra care when
    >> dealing with the registry is always worth the effort. :}
    >
    >Yes, I understand. But the above drag and drop method fixes this. Under
    >certain circumstances, the IDE seems to lose the key name. The problem is
    >that I cannot reproduce this :-(

    Friedrich,

    Assuming it will help to have a script that was in that state, I'll try to do
    it again here. If I reproduce it, I'll send the script.

    --
    Best regards,

    Mark

  6. #6

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 5:18 PM]

    Hi Friedrich,

    >Yes, I understand. But the above drag and drop method fixes this. Under
    >certain circumstances, the IDE seems to lose the key name. The problem is
    >that I cannot reproduce this :-(

    Same thing I ran into. I never found any way to reproduce it
    reliably. Maybe you could run a check on the registry keys before
    compile or during compile to see if they are ok. If not, then add an
    error message to the compile window or something.

    Best regards,

    Arnór Baldvinsson
    Icetips Software

  7. #7

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 5:40 PM]

    Arnór,

    It's caused by a very simple bug - but the problem is that I cannot find the
    buggy line in our source code. A variable loses the root key id and is set
    to "1". But I don't know which function resets this variable (and why).
    Perhaps it's the EIP. I ran into this some time ago, but cannot reproduce
    it :-(

    Thanks,
    Friedrich

  8. #8

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 5:43 PM]

    >Arnór,
    >
    >It's caused by a very simple bug - but the problem is that I cannot find the
    >buggy line in our source code. A variable loses the root key id and is set
    >to "1". But I don't know which function resets this variable (and why).
    >Perhaps it's the EIP. I ran into this some time ago, but cannot reproduce
    >it :-(

    Friedrich,

    I just tried about a dozen times with a new script and can't get it to
    misbehave. If I ever see it again, I'll send the script instead of a couple
    of useless images.

    --
    Best regards,

    Mark

  9. #9

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 5:47 PM]

    Mark,

    Thank you!!! And I'll check our source code again.

    Friedrich

    --
    Friedrich Linder
    www.lindersoft.com
    Fax: 1.954.252.3910

  10. #10

    Default Re: Bug: Incorrect registry key when created from GUI

    [Wednesday, January 26, 2005 6:01 PM]

    >Mark,
    >
    >Thank you!!! And I'll check our source code again.

    Friedrich,

    I spoke too soon. I just sent you a script where that condition exists. It
    then occurred to me that I may have done something to help the behavior
    along. In case that's so, here's what I did this time and the first time I
    saw it.

    I copied a key name from a WISE script, "Software\RSC\OmniFleet Pro". In SB5,
    I selected HKLM, right-click, select key, and paste that string. You want a
    node, so it displays the error about bad chars in the string. I past it again
    and leave only "Software" in the key. I repeated the process for the next key
    using "\RSC\OmniFleet Pro", then finish creating the proper key name and add
    the string value named "Install Path" with % SB INSTALLDIR% as data. At that
    point I checked the script and had the four HKCR.

    HTH.

    --
    Best regards,

    Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. #00014: How to enumerate subkeys of a specified registry key?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 03-20-2006, 08:10 AM
  2. Incorrect version number being written into registry
    By linder in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 10-10-2005, 05:13 AM
  3. Entering registry values
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 03-28-2005, 07:12 AM
  4. Registry keys
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 03-28-2005, 07:12 AM
  5. Registry settings
    By sphair in forum SetupBuilder
    Replies: 0
    Last Post: 10-08-2004, 03:00 AM

Posting Permissions

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