The way you do this is with something like the script I've pasted below.
However keep in mind that there is no "the .NET framework". By the end of
the year there could be three versions all on the same machine, so which
one will you uninstall? And what do you do when the framework is part of
the OS as it already is on Server 2003?
Option Explicit
Public installer, fullmsg, comp, prod, a, fso, pname, ploc, pid, psorce
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.CreateTextFile("prods.txt", True)
' Connect to Windows Installer object
Set installer = CreateObject("WindowsInstaller.Installer")
a.writeline ("Products")
on error resume next
For Each prod In installer.products
pid = installer.productinfo (prod, "ProductID")
pname = installer.productinfo (prod, "InstalledProductName")
psorce=installer.productinfo(prod, "InstallSource")
ploc = installer.productinfo (prod, "InstallLocation")
a.writeline (prod & " " & pname & " " & ploc & " " & psorce)
Next
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
STom said:
Where in the registry would you find the GUID for the installed version
of the .Net framework? I assume this GUID would be the same on every
machine that had the same version of the framework?
Thanks.
STom