registry reads in 64bit OS-- Part II

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jassing
    Indigo Rose Customer
    • Jan 2001
    • 3124

    #16
    Functions done.

    With the help of Eagle & an indirect slap in the face by Adam [Pointing out that I really wasn't using the wow functions correctly] -- I now have a working set of functions completed that are a drop in replacement for the Registry.[actions] -- You just include the Registry64.lua file in your project and go...

    You can use the Intellisense for the Registry object, then change "Registry." to "Registry64." and it will work. It uses the SUF7 Registry object for non 64bit os's -- and reg.exe for 64bit os's.

    I have everything but Registry.GetAccess() done -- and not sure I can do that.

    I cannot test it on too many 64bit os' -- so I hesitate to post the code, but if others have a 64bit OS around and would like to test the code -- I would share it if they'd let me know any problems or suggestions.

    josh

    Comment

    • Eagle
      Indigo Rose Customer
      • Mar 2005
      • 944

      #17
      Josh, glad you got a handle on things,
      when using the FS dis-en functions:
      * the key is to maintain the stability of the runtime *

      some things to keep in mind too:

      * IR Lan.actions do not work if FS is Disabled
      * Test Web connection does not Work if FS is Disabled

      I'd be happy to test your funcs, .lua etc.

      you can PM me or upload\post here, if you wish.

      I am testing the msdn .vbs and seeing if I can use Bretts luacom plugin
      to drive things (eliminate the need for a .vbs and file run stuff, hopefully).

      (I am also considering wether to 'enforce Service Pack 2 or later is installed'
      if 64 bit XP or 2K3, there are a truck load of fixes in SP2, my 64bit OS is a different
      machine with SP2 installed)

      anyhoo, good job :yes
      Last edited by Eagle; 08-25-2007, 08:09 PM.

      Comment

      • Eagle
        Indigo Rose Customer
        • Mar 2005
        • 944

        #18
        I have emailed you Josh as requested :yes

        received the email 'attachment' Josh
        Last edited by Eagle; 08-25-2007, 09:28 PM.

        Comment

        • gt2win
          Forum Member
          • Sep 2007
          • 2

          #19
          Urgent help required !!! Eagle

          Hi,
          basically doing the similar task for accessing 64-bit registry keys from 32-bit application. agentprocess which we run to deploy on 64-bit machine is a 32-bit process .. it will run a batch command (inside we have REG QUERY) to check the version and add/edit some registry key's.
          since agentprocess is 32 bit can't access 64-bit registry values!!!

          please help me with code in VBScript or which I can run batch
          command file before I run the REG QUERY in that batch command.

          greatly appreciate your help .. impressed with your in-depth knowledge in this subject

          Comment

          • jassing
            Indigo Rose Customer
            • Jan 2001
            • 3124

            #20
            Originally posted by gt2win View Post
            Hi,
            basically doing the similar task for accessing 64-bit registry keys from 32-bit application. agentprocess which we run to deploy on 64-bit machine is a 32-bit process .. it will run a batch command (inside we have REG QUERY) to check the version and add/edit some registry key's.
            since agentprocess is 32 bit can't access 64-bit registry values!!!

            please help me with code in VBScript or which I can run batch
            command file before I run the REG QUERY in that batch command.

            greatly appreciate your help .. impressed with your in-depth knowledge in this subject
            all my code is in suf7-lua code... sorry. no vbscript or batch file; it's an ojbect replacement for registry.

            Comment

            • jassing
              Indigo Rose Customer
              • Jan 2001
              • 3124

              #21
              Registry64 support files.

              Per a PM -- I'm posting the code.
              This code has only been really tested on win2003/64. I tested a bit on xp & vista.

              The code is "compatiable" with 32bit (in fact, it just calls the native suf object in 32bit mode) -- just about all registry functions were converted.
              Easiest way to use it is to add it into script files, along with Brett's "random.lua" and Eagle's "wow64.lua" files (included in the zip file)
              Then open up all your script files & .sf7 file (close suf first) in your fav. editor (uedit32, etc -- be sure to close regsitry64.lua!) and then do a global searcn and replace on Registry. to Registry64. -- you should be done.

              Any issues or problems -- please let me know. If you make any changes, let me kwow too. I have tried not to use any functions in my standard tool-kit so it's a portable unit -- but if you find a function that doesn't exist -- let me know.

              thanks
              -josh
              Last edited by jassing; 09-20-2007, 11:22 AM.

              Comment

              • gt2win
                Forum Member
                • Sep 2007
                • 2

                #22
                Thank you so much !!!

                Thank you Jassing!!!

                Comment

                • Eagle
                  Indigo Rose Customer
                  • Mar 2005
                  • 944

                  #23
                  I've nearly finalised some tested VBS functions that currently handle:
                  registry access permissions
                  target value - read or write (all registry types)

                  access via WMI exec method, the 64 bit registry provider from a 32bit APP

                  I'll post soon....

                  Comment

                  • jassing
                    Indigo Rose Customer
                    • Jan 2001
                    • 3124

                    #24
                    Originally posted by Eagle View Post
                    I've nearly finalised some tested VBS functions that currently handle:
                    registry access permissions
                    target value - read or write (all registry types)

                    access via WMI exec method, the 64 bit registry provider from a 32bit APP

                    I'll post soon....
                    Can't wait to see it -- the reg.exe version I'm running is taking way too long on complex installs -- what os's have you tried it on? is it a "drop in" replacement?

                    Comment

                    • Eagle
                      Indigo Rose Customer
                      • Mar 2005
                      • 944

                      #25
                      XP\Vista 64bit

                      No not drop in at this time(I thought I might leave that to you if ya want )

                      1 function creates core vbs script and the others format the rest, run the
                      vbs and get the result. I am doing my best to support IR constants for
                      input and conversion. Still a bit raw but seems to work without issue.

                      will be tomorrow for this stuff, anyone with VBS nouse I'm sure could refine etc. I'm a newby with VBS

                      Comment

                      • jassing
                        Indigo Rose Customer
                        • Jan 2001
                        • 3124

                        #26
                        Originally posted by gt2win View Post
                        Thank you Jassing!!!
                        It's been few days -- how's it working for you?

                        Comment

                        • Eagle
                          Indigo Rose Customer
                          • Mar 2005
                          • 944

                          #27
                          Preliminary 64bit registry access VBS test script:

                          ( min 64bit OS requirement: XP rtm\2K3(sps1) or later OSs to work)

                          - VB script to set local registry provider to 64 bit version -
                          Note: (below functions currently limited to values of type DWORD and STRING)

                          attatched test sample codes:

                          Global functions.txt
                          HowtoCall.txt

                          use at own risk

                          if this stuff is 'worthwhile' will add more functionality ...
                          Attached Files
                          Last edited by Eagle; 10-03-2007, 09:53 AM.

                          Comment

                          • jassing
                            Indigo Rose Customer
                            • Jan 2001
                            • 3124

                            #28
                            Thanks Eagle!

                            I'll do some testing and might make some lua wrappers for it so that it can be a drop in replacement...

                            Comment

                            • Paul Bachner
                              Forum Member
                              • Mar 2008
                              • 2

                              #29
                              Thanks jassing for posting this solution, man you just saved my beacon

                              Comment

                              • NitLions
                                Forum Member
                                • Jan 2007
                                • 176

                                #30
                                Can this Registry64.lua be used with AMS 6.0 projects?

                                What I want to do is search the registry for IIS 6 Compat Pack entries. What I was thinking is if OS is 64 bit, use the functions included in Registry64.lua. If not, just use the regular, canned Registry functions.

                                Will this work? How do I actually include the Registry64.lua? Do I need to include the other two .lua files contained in the zip referenced earlier in this thread or will the Reg 64 .lua suffice for me?

                                Any information is greatly appreciated!

                                Comment

                                Working...
                                X