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
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.
.Net
Started by
rajkulkarni
, Dec 05 2009 00:28
3 replies to this topic
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.
[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.