找回密码
 加入
搜索
查看: 1406|回复: 0

[AU3基础] 使用autoit检测电脑是否已经安装了某一软件

[复制链接]
发表于 2012-6-13 22:58:20 | 显示全部楼层 |阅读模式
Dim $regkey,$uninstallkey,$displayname,$uninstallstring
Dim $i,$haveinstall
$regkey="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
For $i= 1 To 100
$uninstallRegKey = RegEnumKey($regKey , $i)
$uninstallstring=$regkey&'\'&$uninstallRegKey
$displayname=RegRead($uninstallstring,"displayname")
If $displayname="Total Commander"Then
        $haveinstall="ture"

EndIf
Next

If $haveinstall="ture"Then
        MsgBox(0,"title","您已经安装了tc")
Else
        MsgBox(0,"title","您没有安装了tc")
        EndIf
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-20 14:43 , Processed in 0.079185 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表