|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GUID for .Net frameworkWhere 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 What would be the purpose of that GUID?>the .Net framework? 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. 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. 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 -- Show quoteHide quotePhil 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 > 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 >> > > "STom" <stombiztal***@hotmail.com> wrote in message Ooh, that's scary.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. > 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?
Other interesting topics
Interlocked vs Mutex efficiency
Finalization and .NET/deterministic or orderly shutdown How to negotiate authenication with HttpWebRequest Using AL.exe to link modules into assembly Reversing text in TreeView nodes Reading Text datatype into a byte Array on_Windows_98 Accessing information on IIS programatically Silent Install Windows service configuration - registry or configuration file? |
|||||||||||||||||||||||