Hi All,
I have a code that generates list of installed softwares available on the pc but the code works fine when written in a console application in visual basic 2005.
How can the same code be used to generate a list of software information using a button click available in windows application
the code is as follows
Dim hklm As Microsoft.Win32 .RegistryKey
Dim software As Microsoft.Win32 .RegistryKey
Dim subkeys() As String
Dim keyname As String
hklm = My.Computer.Reg istry.LocalMach ine
software = hklm.OpenSubKey ("SOFTWARE\Micr osoft\Windows\C urrentVersion\U ninstall")
subkeys = software.GetSub KeyNames()
For Each keyname In subkeys
Console.WriteLi ne(keyname)
Next
MsgBox(subkeys)
Console.WriteLi ne("press ENTER to exit")
Console.ReadLin e()
I have a code that generates list of installed softwares available on the pc but the code works fine when written in a console application in visual basic 2005.
How can the same code be used to generate a list of software information using a button click available in windows application
the code is as follows
Dim hklm As Microsoft.Win32 .RegistryKey
Dim software As Microsoft.Win32 .RegistryKey
Dim subkeys() As String
Dim keyname As String
hklm = My.Computer.Reg istry.LocalMach ine
software = hklm.OpenSubKey ("SOFTWARE\Micr osoft\Windows\C urrentVersion\U ninstall")
subkeys = software.GetSub KeyNames()
For Each keyname In subkeys
Console.WriteLi ne(keyname)
Next
MsgBox(subkeys)
Console.WriteLi ne("press ENTER to exit")
Console.ReadLin e()