PDA

View Full Version : How to determine if .Net 2.0 is installed.



Hamilton-Scott
07-11-2006, 11:26 AM
I don't want to install .Net 2.0 in my package but I would like to determine if it is already installed and then maybe display a dialog at runtime conveying that information? I could do a SystemSearch which is no great shakes to do but I'm wondering if there is a property that already has that status available. I'm using basic MSI by the way.

MartinMarkevics
07-11-2006, 11:54 AM
Take a look at the MSI property MsiNetAssemblySupport. This might suit your needs.

google44
07-12-2006, 08:45 AM
You can specify the option to verify and eventually install .net 2.0 at runtime in the Release Wizard (Build/Release Wizard)

sspencer
07-14-2006, 08:23 AM
If using InstallScript you could use the following command

if (Is(DOTNETFRAMEWORKINSTALLED, REGDB_KEYPATH_DOTNET_20)) = TRUE then -> Framework 2.0 is installed.