iHonda Posted April 12, 2006 Posted April 12, 2006 (edited) ok im just wondering if there is a way that a script can check if a specified program is installed??? edit: lol sorry i for got wut i was doing when i named the thread so please forgive me for that i have the attention span of a 4 year old chimp Edited April 12, 2006 by Zmaster A great place to start Autoit 1-2-3
Moderators big_daddy Posted April 12, 2006 Moderators Posted April 12, 2006 ok im just wondering if there is a way that a script can check if a specified program is installed??? edit: lol sorry i for got wut i was doing when i named the thread so please forgive me for that i have the attention span of a 4 year old chimpWell you could use FileExists() to see if the .exe file exists, or the way I would do it is by using the RegRead() on this key "HKLM\SOFTWARE". Something like this: $Name = "Name of Software company" $Key = "HKEY_LOCAL_MACHINE\SOFTWARE" For $i = 1 To 1000 $SubKey = RegEnumKey($Key, $i) If @error Then MsgBox(0, "", "Your software was not found.") ExitLoop Else If $SubKey = $Name Then MsgBox(0, "", "Your software was found.") ExitLoop EndIf EndIf Next
nfwu Posted April 12, 2006 Posted April 12, 2006 http://www.autoitscript.com/forum/index.php?showtopic=24564#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
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