guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Windows 8 .NET 2 detection

Anyone know how I can detect in the Windows 8 preview software(s) whether .NET 2 is active?
.NET 3.5 (&3 & 2) come preinstalled on Windows 8 along with .NET 4.5, however one needs to activate earlier versions of .NET within program management.
The problem I have is that the standard .NET 2 advanced installer pre-requisite is showing that .NET 2 is installed so not prompting to activate it, however my REGASM fails.
Should I maybe look at changing my REGASM if installing on Windows 8? If so, how do I go about that as the External Tools reference I am using is locked at .NET 2 for earlier Windows compatibility.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows 8 .NET 2 detection

For a programmatic method of activating .NET 2.0 on Win8 I recommend you ask the question on one of Microsoft forums. I am sure they can suggest a solution for this.

Another method for registering your files is to call REGASM directly from the system using a custom action.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”