Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-admin
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kirthikirthi
    wrote on last edited by
    #1

    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

    L 2 Replies Last reply
    0
    • K kirthikirthi

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      K 2 Replies Last reply
      0
      • K kirthikirthi

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        K 1 Reply Last reply
        0
        • L Lost User

          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

          K Offline
          K Offline
          kirthikirthi
          wrote on last edited by
          #4

          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

          L 1 Reply Last reply
          0
          • L Lost User

            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.

            K Offline
            K Offline
            kirthikirthi
            wrote on last edited by
            #5

            Thanks for the reply.

            Kirthi

            1 Reply Last reply
            0
            • L Lost User

              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

              K Offline
              K Offline
              kirthikirthi
              wrote on last edited by
              #6

              Thanks for the reply.

              Kirthi

              1 Reply Last reply
              0
              • K kirthikirthi

                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

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Did you actually read my response? You cannot access the client's registry from code in a web page; it would make the client system vulnerable to all sorts of abuse, viruses, worms etc.

                Veni, vidi, abiit domum

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups