Sign in to follow this  
Followers 0
gcue

check for installed apps on remote pc

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

awesome!

thank you VERY much!

Edited by gcue

Share this post


Link to post
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
Sign in to follow this  
Followers 0