Hi!

Currently I go to Control panel and remove the program via "Add remove
programs".
1) How do I know if the program is installed ?
2) How do I uninstall it ?

Thanks
Maurice

Re: How can I uninstall a program (via VB Script of course) ? by Torgeir

Torgeir
Sun May 29 12:53:16 CDT 2005

zmau@UltimateEmail.com wrote:
> Hi!
>
> Currently I go to Control panel and remove the program via
> "Add remove programs".
> 1) How do I know if the program is installed ?

By checking for registry entries or files unique to the program.


> 2) How do I uninstall it ?

Depends on the "technology" used by the installer for the program. If
it used Windows Installer, InstallShield or Wise, it is usually
possible to use VBScript to uninstall the program.

If you have some specific programs you want to handle, could you
please post the registry data in the UninstallString value under the
registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
for the programs you are thinking about?


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: How can I uninstall a program (via VB Script of course) ? by Carles

Carles
Sun May 29 13:26:01 CDT 2005

zmau@UltimateEmail.com escribió:
>
> Currently I go to Control panel and remove the program via "Add remove
> programs".
> 1) How do I know if the program is installed ?
> 2) How do I uninstall it ?

Here can be found some vbscripts wich you could try to customize for
uninstalling other programs:

http://www.appdeploy.com/packages/detail_pf.asp?id=362
http://www.dougknox.com/xp/scripts_desc/xp_tweak_uninst.htm
http://www.windowsitpro.com/Article/ArticleID/44619/44619.html

--
Regards,

Carles Arjona nospammer@bigfoot.com ( nospammer IS my real username )

Re: How can I uninstall a program (via VB Script of course) ? by zmau

zmau
Sun May 29 14:17:31 CDT 2005

Wow, Thanks for the quick answer.
I read the answers and did some more reading meanwhile, and it seems to
me that now my question comes down to "searching the registry for a
string containing a string". I summerized it in another question :
http://groups-beta.google.com/group/microsoft.public.scripting.vbscript/browse_thread/thread/f68aa87af3fd574a/22bea198cb76cb7a?hl=en#22bea198cb76cb7a


Thanks
Maurice