Home All Groups Group Topic Archive Search About

GUID for .Net framework

Author
19 Feb 2005 1:49 AM
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

Author
19 Feb 2005 10:25 AM
Mattias Sjögren
>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

--
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Are all your drivers up to date? click for free checkup

Author
19 Feb 2005 3:42 PM
STom
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
Show quoteHide quote
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:%23rQDT1mFFHA.3732@TK2MSFTNGP14.phx.gbl...
>
>>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
>
> --
> Mattias Sjögren [MVP]  mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
Author
20 Feb 2005 6:23 PM
Phil Wilson
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

Show quoteHide quote
"STom" <stombiztal***@hotmail.com> wrote in message
news:e37mHViFFHA.2180@TK2MSFTNGP10.phx.gbl...
> 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
>
Author
20 Feb 2005 9:30 PM
STom
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 :-)

Show quoteHide quote
"Phil Wilson" <pdjwilson@nospam.cox.net> wrote in message
news:e4kfRj3FFHA.1264@TK2MSFTNGP12.phx.gbl...
> 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" <stombiztal***@hotmail.com> wrote in message
> news:e37mHViFFHA.2180@TK2MSFTNGP10.phx.gbl...
>> 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
>>
>
>
Author
21 Feb 2005 2:45 PM
Daniel Billingsley
"STom" <stombiztal***@hotmail.com> wrote in message
news:%23bjaXN5FFHA.1396@tk2msftngp13.phx.gbl...

> 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?

Bookmark and Share