Jump to content

check for installed apps on remote pc


Recommended Posts

this should populate a list.. or does $prog have to be an array?

i checked the help and it didnt show that it needed to be

For $j = 1 To 100
            $key = RegEnumKey("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", $j)
            $prog = RegRead("\\" & $asset & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & $key, "DisplayName")
            If @error <> 0 Then ContinueLoop
            
            Local $aText[3] = ["Check Installed Programs", @TAB & "Status", @TAB & @TAB & "Writing results to file"]
            Local $aParts[3] = [200, 175, -1]
            $dSTATUS = _GUICtrlStatusBar_Create($dGUI, $aParts, $aText)

            FileWrite($file, '' & @CRLF & _
                    $asset_label & "," & $prog & "," & $status)
        Next
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...