GUID for .Net framework

  • Thread starter Thread starter STom
  • Start date Start date
S

STom

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
 
Where in the registry would you find the GUID for the installed version of
the .Net framework?

What would be the purpose of that GUID?

There are other ways to detect installed .NET framework versions if
that's what you want to do.



Mattias
 
I would like to uninstall the .Net framework programmatically by using :

msiexec.exe /x "<guidofdotnetframework>" /qn

Is there another way to uninstall the .Net framework programmatically
without asking the user questions?

Thanks.

stom
 
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
 
I totally agree about not uninstalling the .Net framework, there is no way
of telling who is using it.

My customer is IBM and as such they said they want to make sure that if they
uninstall the product, this 'rogue' framework is installed with it. Those
were there exact words.

I supposed I could leave instructions for how they could do it from the
Add/Remove Programs :-)

Phil Wilson said:
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
 
My customer is IBM and as such they said they want to make sure that if they
uninstall the product, this 'rogue' framework is installed with it. Those
were there exact words.

Ooh, that's scary.

Do you have the option of calling that person's manager and explaining how
clueless he/she is? :)

If you were implementing a java app would they want you to uninstall the
'rogue' java framework when you uninstalled the app?
 
Back
Top