gleem Posted September 27, 2008 Posted September 27, 2008 (edited) Greetings... I am looking to write an script that will list all installed applications. I was able to locate the directory in registry in which I will want to extract my information from but I am sort of running into a mental block when it comes to variables. The path I want to read from is: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Uninstall > (All the Subfolder) Now, when I use the Regread command in autoit, I will need to tell it which subfolder I want to use to pull the DisplayName, InstallLocation, and Publisher keys from. However, I am unsure on how to tell Autoit to read each sub directory for this information. If someone can help me get over this hurdle or guide me in the right direction, the rest should be cake. Edited September 27, 2008 by gleem
zackrspv Posted September 27, 2008 Posted September 27, 2008 Greetings... I am looking to write an script that will list all installed applications.I was able to locate the directory in registry in which I will want to extract my information from but I am sort of running into a mental block when it comes to variables.The path I want to read from is: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Uninstall > (All the Subfolder)Now, when I use the Regread command in autoit, I will need to tell it which subfolder I want to use to pull the DisplayName, InstallLocation, and Publisher keys from. However, I am unsure on how to tell Autoit to read each sub directory for this information.If someone can help me get over this hurdle or guide me in the right direction, the rest should be cake.I'd do a search in the example scripts forum, there are many Application lists, etc, and even one that does uninstalls for you. -_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.
bluelamp Posted September 27, 2008 Posted September 27, 2008 Const $NODE = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Local $i = 1 While 1 $var = RegEnumKey($NODE, $i) If @error <> 0 then ExitLoop MsgBox(4096, "#" & $i, $var) $i+=1 WEnd
gleem Posted September 28, 2008 Author Posted September 28, 2008 Const $NODE = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Local $i = 1 While 1 $var = RegEnumKey($NODE, $i) If @error <> 0 then ExitLoop MsgBox(4096, "#" & $i, $var) $i+=1 WEnd Thank you SOOOO much. This is exactly what I was looking for. thank you again!
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