-
Notifications
You must be signed in to change notification settings - Fork 5
/
Search64BitReg.ahk
54 lines (43 loc) · 1.22 KB
/
Search64BitReg.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance ignore
FindInstalled()
{
REGPATH =SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Loop, HKEY_LOCAL_MACHINE, %REGPATH%, 1, 1
{
If A_LoopRegName = DisplayName
{
RegRead, value
StringLower, value, value
GuiControl,, MyListBox, %value%
}
}
REGPATH =SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Loop, HKEY_LOCAL_MACHINE, %REGPATH%, 1, 1
{
If A_LoopRegName = DisplayName
{
RegRead, value
StringLower, value, value
GuiControl,, MyListBox, %value%
}
}
}
Gui, Add, ListBox, vMyListBox gMyListBox w640 r10
Gui, Add, Button, Default, OK
FindInstalled()
Gui, Hide
SetTimer, GuiEscape, 8000
return
MyListBox:
if A_GuiEvent <> DoubleClick
return
; Otherwise, the user double-clicked a list item, so treat that the same as pressing OK.
; So fall through to the next label.
ButtonOK:
GuiClose:
GuiEscape:
ExitApp