Jump to content

ControlTreeView not working on windows 10


Recommended Posts

if ControlClick("[CLASS:MsiDialogCloseClass]"," ","[CLASS:SysTreeView32; INSTANCE:1]") Then
        $htreeview=ControlGetHandle($hwnd,"","[CLASS:SysTreeView32; INSTANCE:1]")
        ControlTreeView($hwnd," ",$htreeview,"Select","#4")

The above code worked well to enable the martupgrade feature on windows 7.

As part of our Installation Testing Automation before delivering the installer to end user.To confirm whether all the screens are working good.


But it is not working on windows 10.


$h= ControlTreeView($hwnd," ",$htreeview,"Select","#4")

The $h is getting value 1,which means error.

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

  • Create New...