Guest ElementCZ Posted July 28, 2005 Posted July 28, 2005 Hello, is there some script for geting more values/whole branch from registry at once ? I'm developing script for software uninstall via autoit script and I'd like to export whole HLKM\...\Uninstall branch so I can find values I need and use them for SW silent uninstall. So far I have found only way how to do this by using another .vbs or simple .bat script for exporting registry branch into some file and then process it with autoit. Is there some way how to do that only with autoit functions ? Thanks
blindwig Posted July 28, 2005 Posted July 28, 2005 Hello,is there some script for geting more values/whole branch from registry at once ? I'm developing script for software uninstall via autoit script and I'd like to export whole HLKM\...\Uninstall branch so I can find values I need and use them for SW silent uninstall. So far I have found only way how to do this by using another .vbs or simple .bat script for exporting registry branch into some file and then process it with autoit. Is there some way how to do that only with autoit functions ?Thanks<{POST_SNAPBACK}>Yes there are different ways of doing it. If you have a way of doing it on the command line (like in your batch file) you can use the RunWait() function to execute that code.Or you can use the AutoIt built-in Reg*() functions. I'm sure that there are UDFs here for doing that sort of thing as well. My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions
nobby Posted July 28, 2005 Posted July 28, 2005 I am sure that the Microsoft site has the documentation you are looking for but here is a link that may answer your question:http://techsupt.winbatch.com/TS/T000001029F18.html CheersNobby
seandisanti Posted July 28, 2005 Posted July 28, 2005 Hello,is there some script for geting more values/whole branch from registry at once ? I'm developing script for software uninstall via autoit script and I'd like to export whole HLKM\...\Uninstall branch so I can find values I need and use them for SW silent uninstall. So far I have found only way how to do this by using another .vbs or simple .bat script for exporting registry branch into some file and then process it with autoit. Is there some way how to do that only with autoit functions ?Thanks<{POST_SNAPBACK}>one (ugly) way i can think of to do it is to export the entire registry to a file which could then be parsed for the information you need...maybe have a variable to track how many branches deep you are, and have it check for each line at the first lvl till it hits the hklm line, then increment it, have it check until it hits the system (or whatever the next one is you're looking for) etc etc until you hit the final branch you want, and have it write everything to a file from there until it hits the next key at the same lvl as the branch you're exporting... not sure how to have it check what lvl the variable folder names are at except to know the exact path you're looking to export and the folder after the lowest folder you want, unless you want to check the registry on each iteration of the loop to have it check, and that would slow the script considerably i bet.
Guest ElementCZ Posted July 28, 2005 Posted July 28, 2005 Long day, no air-condition, very hot day and I'm dumb as my brother :-) Of course this one was easy... I can just use RegEnumKey and RegRead in while loop and I'm done in five minutes . Pure RTFM problem.....
seandisanti Posted July 28, 2005 Posted July 28, 2005 Long day, no air-condition, very hot day and I'm dumb as my brother :-)Of course this one was easy... I can just use RegEnumKey and RegRead in while loop and I'm done in five minutes . Pure RTFM problem..... <{POST_SNAPBACK}>happens to everybody man
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now