Jump to content

window "Add or Remove Programs". How to work with it?


LibiO
 Share

Recommended Posts

How is possble to do some actions on window "Add or Remove Programs" (Control Panel -> Add or Remove Programs).

For example, to select some program and open its window?

OS is XP.

Thanks

If you mean "How do you select the uninstall program for a ceratin application then maybe this will help.

The information on how to uninstall a program is (should be) stored in the registry at

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall

Suppose there is some program called SilverSpoon. When SilverSpoon is installed there should be information written in the registry so that windows knows how to uninstall it.

;This is for XP, not sure about Vista but I think it's the same, ie I've done the same for Vista and had no problems.
$prgname = $SilverSpoon"
$progDisplayname = "SSfeeder"
$uninstallProg = "SSremove.exe"
RegWrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & $Progname, "DisplayName", "REG_SZ", $progDisplayname")
RegWrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & $Progname, "UninstallString", "REG_SZ", '"' & $ProgFolder & '\' & $uninstallProg & '"')
RegWrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & $Progname, "DisplayIcon", "REG_SZ", '"' & $ProgFolder & '\Images\uninst.ico"')

;If both NoModify and NoRepair are set to 1, the button (in Windows Add/Remove programs) displays "Remove" instead of "Modify/Remove".
RegWrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & $Progname, "NoModify", "REG_DWORD", 1)
RegWrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & $Progname, "NoRepair", "REG_DWORD", 1)
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...