jeanm1242 Posted April 28, 2014 Share Posted April 28, 2014 (edited) Hello, Newbie question: How to get any installed application path (knowing the application name or exe name) ??. Many thanks for any answer. Jean Edited April 28, 2014 by jeanm1242 Link to comment Share on other sites More sharing options...
Starstar Posted April 28, 2014 Share Posted April 28, 2014 Search file with his name and go to file location and copy path from address bar. Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 28, 2014 Moderators Share Posted April 28, 2014 Something like this should get you started: $path = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" For $i = 1 To 1000 $key = RegEnumKey($path, $i) $val = RegRead($path & "\" & $key, "DisplayName") If StringInStr($val, "AutoIt") Then MsgBox(0, "", RegRead($path & "\" & $key, "InstallLocation")) Next "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jeanm1242 Posted April 28, 2014 Author Share Posted April 28, 2014 Many thanks for all your answers... @JLogan3o13, This script is working very well, many thanks, but your example suggest me 2 questions: 1- I think there is no other way that using the BDR ?? 2- Is there a way to scan the BDR (uninstall) until the last Key (1 to 1000 is too much or not enough..). Regards Jean Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 28, 2014 Moderators Share Posted April 28, 2014 Yes, there is a way. As I mentioned, this script was to get you started. Look at doing something like this after the RegEnumKey line: If @error Then ExitLoop That way it will scan only until it finds what it wants. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jeanm1242 Posted April 28, 2014 Author Share Posted April 28, 2014 @JLogan3o13, Many thanks, excuse a newbie... Your last statement works perfectly... Thanks again. Regards Jean Link to comment Share on other sites More sharing options...
jguinch Posted April 28, 2014 Share Posted April 28, 2014 And you can make a second loop with HKLM64 for x64 apps Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
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