下面这段代码是用开始菜单查卸载程序,如果是查主程序如何改
vb.net吧
全部回复
仅看楼主
level 7
暴牙归来 楼主
Const ProductName = "360压缩"
Const HKLM = &H80000002
Const strKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
Dim objReg As Object
objReg = GetObject("winmgmts://./root/default:StdRegProv")
Dim arrSubkeys()
objReg.EnumKey(HKLM, strKey, arrSubkeys)
Dim result, strValue, strName, strSubkey
For Each strSubkey In arrSubkeys
result = objReg.GetStringValue(HKLM, strKey & strSubkey, "DisplayName", strName)
If result = 0 Then
If InStr(LCase(strName), LCase(ProductName)) > 0 Then
result = objReg.GetStringValue(HKLM, strKey & strSubkey, "UninstallString", strValue)
If result = 0 Then
MsgBox("程序:" & strName & vbCrLf & "位置:" & strValue)
End If
End If
End If
Next
2016年06月02日 07点06分 1
level 11
咦,你这些代码是不是直接从6.0来的哦
2016年06月03日 17点06分 2
level 12
这个是典型的6.0代码转的.net
2016年06月06日 03点06分 3
说了等于白说[不高兴]
2016年06月06日 04点06分
1