SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
-
Hi All, I am trying to list installed programs in client machine using ASP.NET But it showing only server programs not client This code working on VB.NET (.exe) I want to develop a web page Kindly guide. Code : Dim Software As String = Nothing ''The registry key: Dim SoftwareKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(SoftwareKey) 'Let's go through the registry keys and get the info we need: For Each skName As String In rk.GetSubKeyNames() Using sk As RegistryKey = rk.OpenSubKey(skName) Try 'If the key has value, continue, if not, skip it: If Not (sk.GetValue("DisplayName") Is Nothing) Then 'Is the install location known? If sk.GetValue("InstallLocation") Is Nothing Then Software += sk.GetValue("DisplayName") & " - Install path not known" & vbLf Else 'Nope, not here. Software += (sk.GetValue("DisplayName") & " - ") + sk.GetValue("InstallLocation") & vbLf Label1.Text = Software 'Yes, here it is... End If End If Catch ex As Exception End Try End Using Next End Using
Kirthi
-
Hi All, I am trying to list installed programs in client machine using ASP.NET But it showing only server programs not client This code working on VB.NET (.exe) I want to develop a web page Kindly guide. Code : Dim Software As String = Nothing ''The registry key: Dim SoftwareKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(SoftwareKey) 'Let's go through the registry keys and get the info we need: For Each skName As String In rk.GetSubKeyNames() Using sk As RegistryKey = rk.OpenSubKey(skName) Try 'If the key has value, continue, if not, skip it: If Not (sk.GetValue("DisplayName") Is Nothing) Then 'Is the install location known? If sk.GetValue("InstallLocation") Is Nothing Then Software += sk.GetValue("DisplayName") & " - Install path not known" & vbLf Else 'Nope, not here. Software += (sk.GetValue("DisplayName") & " - ") + sk.GetValue("InstallLocation") & vbLf Label1.Text = Software 'Yes, here it is... End If End If Catch ex As Exception End Try End Using Next End Using
Kirthi
-
Hi All, I am trying to list installed programs in client machine using ASP.NET But it showing only server programs not client This code working on VB.NET (.exe) I want to develop a web page Kindly guide. Code : Dim Software As String = Nothing ''The registry key: Dim SoftwareKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(SoftwareKey) 'Let's go through the registry keys and get the info we need: For Each skName As String In rk.GetSubKeyNames() Using sk As RegistryKey = rk.OpenSubKey(skName) Try 'If the key has value, continue, if not, skip it: If Not (sk.GetValue("DisplayName") Is Nothing) Then 'Is the install location known? If sk.GetValue("InstallLocation") Is Nothing Then Software += sk.GetValue("DisplayName") & " - Install path not known" & vbLf Else 'Nope, not here. Software += (sk.GetValue("DisplayName") & " - ") + sk.GetValue("InstallLocation") & vbLf Label1.Text = Software 'Yes, here it is... End If End If Catch ex As Exception End Try End Using Next End Using
Kirthi
I am not 100% sure but i think You can't do this with ASP.NET, which runs on the server. You need to create an application that is installed and runs on the client machine. It could perhaps collect the information and post it to your site using web services.
-
Web pages are not allowed access to client information like this unless you get the user to download a program which will run on their system. Not many users are likely to allow it.
Veni, vidi, abiit domum
Thanks for the reply. The below code which i pasted it is showing my local computer list (web page hosted) So i tried to get remote location but not working.
Kirthi
-
I am not 100% sure but i think You can't do this with ASP.NET, which runs on the server. You need to create an application that is installed and runs on the client machine. It could perhaps collect the information and post it to your site using web services.
Thanks for the reply.
Kirthi
-
Web pages are not allowed access to client information like this unless you get the user to download a program which will run on their system. Not many users are likely to allow it.
Veni, vidi, abiit domum
Thanks for the reply.
Kirthi
-
Thanks for the reply. The below code which i pasted it is showing my local computer list (web page hosted) So i tried to get remote location but not working.
Kirthi