Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

.Net


3 replies to this topic

rajkulkarni

rajkulkarni
  • Full Members
  • 44 posts

Posted 05 December 2009 - 00:28

I want my program to detect the presence of .NET. If it isn't installed, then my program should install it. How should I attempt to do this? I have tried this as a silent install, but it takes a long time, and a user might think that the installation has hung. Is there a way to to inform the user the status of the .NET installation?

Thanks,

Raj

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 07 December 2009 - 23:01

Which version of the .NET Framework?
user posted image

rajkulkarni

rajkulkarni
  • Full Members
  • 44 posts

Posted 09 December 2009 - 19:37

.NET 2.0

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 09 December 2009 - 21:03

To simply detect the presence of .NET Framework 2.0, then confirm the existence of the following registry entry value:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727]
"Install"=dword:00000001

As for silent installing the .NET Framework, there are options as how silent it should be. I personally recommend the basic UI approach (that will include a progress bar & a Cancel button) without automatically restarting the system which can be accomplished via the following setup arguments:

- For 2.0 SP0, "/q:a /c:\"install.exe /qb!\""
- For 2.0 SP1, "/q:a /c:\"setup.exe /qb /norestart\""

Good luck and hope it helps.
user posted image