Sign in to follow this  
Followers 0
PerryRaptor

Uninstalling from Add/Remove Programs

2 posts in this topic

can I write the registry entries to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ ?

Keys are: DisplayIcon, DisplayName, NoModify, NoRepair, UninstallString.

Point the UninstallString key to the uninstall script that I create.

I'd like to be able to list compiled scripts in the Add/Remove Programs under WindowsXP.

Share this post


Link to post
Share on other sites



Yes, you can..

$var = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Your programs name"
RegWrite( $var, "DisplayName", "REG_SZ", "title")
RegWrite( $var, "DisplayVersion", "REG_SZ", "1.0")
RegWrite( $var, "UninstallString", "REG_SZ", "rundll32.exe advpack.dll,LaunchINFSection " & @scriptdir & "\programs name.inf ,UnInstall")
RegWrite( $var, "Publisher", "REG_SZ", "your name")
RegWrite( $var, "URLInfoAbout", "REG_SZ", "http://???")
RegWrite( $var, "DispalyIcon", "REG_SZ", "Icon or exe name")
RegWrite( $var, "NoRepair", "REG_DWORD", "00000001")
RegWrite( $var, "NoModify", "REG_DWORD", "00000001")
RegWrite( $var, "InstallLocation", "REG_SZ", @scriptdir)
..and so on.

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