Jump to content
SeWeX

Finding if theres specific software in "add/remove programs"

Recommended Posts

SeWeX

So... I am making program that removes selected softwares. And for it I need AutoIt to know if there's specific software in the "add/remove programs" or "appwiz.cpl"

but it seems like AutoIt can't find the text in the list. AutoIt Window Info in doesn't show the text either

#RequireAdmin
del_pspp()
Func del_pspp()
MsgBox(0, 0, "Pspp", 1)
Run("C:\Windows\System32\control.exe appwiz.cpl")
WinWaitActive("[CLASS:CabinetWClass]")
Sleep(2000)

;~ find the program name "PSSP" from the list, if not, continue with next program
   If WinGetText("PSPP", "") Then
      Send("PSPP")
      Send("{ENTER}")
      WinWaitActive("[CLASS:#32770]")
      Send("!u")
      MsgBox(0,"", "Software Deleted",4)
   Else
      MsgBox(0,"Error", "Software not found", 5)
      Return
   EndIf
EndFunc

MsgBox(0,0,"Script Continues...")

 

Share this post


Link to post
Share on other sites
Danyfirex

Check this.

 

 

Saludos

Share this post


Link to post
Share on other sites
jdelaney

That app is filled in by registry data:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

 

You can loop through those, and then not need to launch the application.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.