Need help w/ Read Registry Variable - Thanks!

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • gone211
    Forum Member
    • Mar 2002
    • 11

    Need help w/ Read Registry Variable - Thanks!

    Hi - Just upgraded to 3.0 and using Win 2K. Am having a problem getting a read registry variable to work. Want to run an EXE if Internet Info Services (IIS) is found in registry, or jump to Page 2 in AutoPlay menu if not found.

    Win 2k registry path is: HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp

    Made 3 actions for a text object (Mouse Click):

    Action 1 - Read from Registry:
    Name: %RegVar%
    Main Key: HKEY_LOCAL_MACHINE
    Sub Key: Software\Microsoft\InetStp
    Did not set a Value Name, but checked TRUE if Exists (as I understand, checking this makes a Value Name not required). Pretty sure this is all correct, now here's where I am guessing:

    Action 2 - Jump to Page 2 with a Boolean Condition:
    Value A is: %RegVar% Operator: = Value B is: No

    Action 3 - Execute Program with a Boolean Condition:
    Value A is: %RegVar% Operator: <> Value B is: No

    Well....it does not work. What did I do wrong? Tried flipping operators, values and defaults - even including the Value Name, but have hit a dead end. May be way off here, because IR info on this topic is thin. Thanks in advance for your advice!

    P.S. Suggestion to IR: give more details/examples on variables and the boolean stuff. It's awesome when it works, but the help is light on the details.

    T.
  • Jito463
    Forum Member
    • Oct 2001
    • 113

    #2
    Re: Need help w/ Read Registry Variable - Thanks!

    Did you try making your Action 3 like this:

    %RegVar% = True

    You set it to True if exists, so if it exists, why not make it execute on the registry read being true. I haven't tried this, mind you, but it should work. If not, you'll probably need a mod to help you. Good luck.

    Comment

    • Mark
      Indigo Rose Staff Member
      • Jun 2000
      • 1945

      #3
      Re: Need help w/ Read Registry Variable - Thanks!

      Hi,

      One thing to remember is the "True if exists" checkbox will set your variable to TRUE if the Registry Key exists, not if the Registry Value exists.

      Also what did you set your default to?

      mark.
      MSI Factory The Next Generation Intelligent Setup Builder

      Comment

      • gone211
        Forum Member
        • Mar 2002
        • 11

        #4
        Re: Need help w/ Read Registry Variable - Thanks!

        Thanks for the quick response Daryll. Upon uninstall, the InetStp folder and all of its contents are removed from the registry
        T.

        Comment

        • Darryl
          Indigo Rose Staff Member
          • Jul 2001
          • 1908

          #5
          Re: Need help w/ Read Registry Variable - Thanks!

          I can't really tell at this point what you may be doing wrong. If you like I can take a look at your menu if you create a ZIP ARCHIVE and send it to [email protected]. I'll then take a look and be able to test it.

          Also, are you using the most recent build of AutoPlay Menu Studio, 3.0.0.7?

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

          Darryl Hnatiuk
          Indigo Rose Corporation

          Comment

          • gone211
            Forum Member
            • Mar 2002
            • 11

            #6
            Re: Need help w/ Read Registry Variable - Thanks!

            Darryl. Thanks for the quick response. Your modified file worked. I saw that you changed No to False on the Boolean side - not sure what other changes you made but it works! Thanks for the fix. Will now try two registry actions within the same Mouse click.
            T.

            Comment

            • gone211
              Forum Member
              • Mar 2002
              • 11

              #7
              Re: Need help w/ Read Registry Variable - Thanks!

              Hi. Thanks for your responses. Jito, tried your settings, but didn't seem to help. Mark, I tried changing the default for Action 1 to both True and No. This changes the Page jumps to go to Page 2 (default No) and Page 3 (default True). But I can't get it to toggle to Page 2 and 3 after I remove and add IIS in from the registry (this is what I need). Any more suggestions? Thanks in advance.
              Tony

              Comment

              • gone211
                Forum Member
                • Mar 2002
                • 11

                #8
                Re: Need help w/ Read Registry Variable - Thanks!

                Whoops! Sorry, forgot one thing. On this latest model, I changed Action 3 to jump to Page 3 instead of an running an executable - just to make testing easier.
                Thanks!

                Comment

                • Darryl
                  Indigo Rose Staff Member
                  • Jul 2001
                  • 1908

                  #9
                  Re: Need help w/ Read Registry Variable - Thanks!

                  When you are performing your tests, what exactly are you removing from the Registry? Are you removing the Subkey, or the value? The Subkey is what is being checked, therefore if you are using the "TRUE If Exists" option, you must remove that portion(Subkey) of the Registry entry.

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

                  Darryl Hnatiuk
                  Indigo Rose Corporation

                  Comment

                  • Darryl
                    Indigo Rose Staff Member
                    • Jul 2001
                    • 1908

                    #10
                    Re: Need help w/ Read Registry Variable - Thanks!

                    Hi Tony,

                    I'm glad to hear that everything worked out for you. The main problem you had was the value entered in the Default field of your READ FROM REGISTRY action.

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

                    Darryl Hnatiuk
                    Indigo Rose Corporation

                    Comment

                    Working...
                    X