Announcement

Collapse
No announcement yet.

Variable for W2K Service Pack 2 - Darryl? Thanks!

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

  • Variable for W2K Service Pack 2 - Darryl? Thanks!

    Hi. Really jazzed, I am getting close to doing something very cool with AMS: By clicking one button, I check 3 different reg entries and go to another screen that shows which entry is Found/Not Found. You can click on any Not Found line and get directions on how to install that feature. Once all three items are found, a different screen appears and tells you all items are found and you can proceed with the install.

    Here's the problem: Only two of the three variables work - the W2K SP2 variable does not see if SP2 is installed or uninstalled.

    My entry is:
    Main Key: HKEY_LOCAL_MACHINE
    Subentry: Software\Microsoft\Windows NT\CurrentVersion\CSDVersion
    Value: Service Pack 2

    Tried both True and False defaults. This toggles the Found and Not Found lines but not accurately according to finding/not finding the reg entry.

    The difference between this entry and the other two that work, is that it has a value entry and longer path, where the ones that work don't - they use the True if Exists.

    Hope this all makes sense - thanks in advance!

    Tony



  • #2
    Re: Variable for W2K Service Pack 2 - Darryl? Thanks!

    If I have understood your question correctly, you don't want to check for the existence of the Key, which is what you will check for if you use the "True if Exists" option.

    Instead what you likely want to do is read the Data of the CSDVersion Value which will be the string "Service Pack 2". This string is what you will store in the variable.

    You can then use that variable in some sort of condition such as %RegSearch% = Service Pack 2 to control whether some actions should be performed.

    Hope this helps and I have understood your question correctly.

    ------------------
    Sincerely,

    Darryl Hnatiuk
    Indigo Rose Corporation

    Comment


    • #3
      Re: Variable for W2K Service Pack 2 - Darryl? Thanks!

      Thanks for the quick response Darryl. Not sure I understand what you mean by not checking "existence of the Key", the only Key I see is HKEY_LOCAL_MACHINE.

      And I am trying to read the data of the CSDVersion Value which is "Service Pack 2" - thus I am not using the "True if Exists" setting. Check out the entries above again. May have to send this file to you.

      Thanks!
      Tony


      Comment


      • #4
        Re: Variable for W2K Service Pack 2 - Darryl? Thanks!

        From looking at what you had written, you seem to have the subkey, value and data mixed up. From looking at that particular entry in the Registry, it has the following format as far as I can tell:

        The Main Key would be HKEY_LOCAL_MACHINE
        The SubKey would be Software\Microsoft\Windows NT\CurrentVersion
        The Value would be CSDVersion
        and the Data would be Service Pack 2

        Therefore in your Registry read, you would be reading the Data stored in the CSDVersion Value which would return the string "Service Pack 2"

        ------------------
        Sincerely,

        Darryl Hnatiuk
        Indigo Rose Corporation

        Comment


        • #5
          Re: Variable for W2K Service Pack 2 - Darryl? Thanks!

          Darryl, you were right. Thanks. I was trying to read the Value Data, Not the Value Name. Got the variable to work, but still had trouble with toggling the related Found / Not Found objects on and off. Finally got this part to work by putting the Value Data in the Boolean equation in Value B of each object and making one equals and one not equals.

          Does not say anywhere in your docs if I should do this, but it works.

          Thanks.

          Comment


          • #6
            Re: Variable for W2K Service Pack 2 - Darryl? Thanks!

            I'm happy to hear that you got it working.

            ------------------
            Sincerely,

            Darryl Hnatiuk
            Indigo Rose Corporation

            Comment

            Working...
            X