Microsoft MVP성태의 닷넷 이야기
개발환경 구성 : 10. .NET 2.0 설치 전에 사전 조사되는 항목들 [링크 복사], [링크+제목 복사],
조회: 11235
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Pre-installation checks performed by .NET Framework 2.0 setup
; http://blogs.msdn.com/astebner/archive/2006/07/09/660808.aspx

잘 정리해 놓았군요.
만약, .NET 2.0 이 클라이언트에 어떠한 사유로 인해서 설치되지 않는 다면 이 문서를 보시면서, 하나 하나 체크해 볼 수 있겠습니다.

아예... 내용을 아래에 복사해 둡니다.


The setup wrapper for the .NET Framework 2.0 performs several system and prerequisite checks before it allows the user to start installing. This blog post will explain the implementation details of each of the checks that .NET Framework 2.0 setup performs behind the scenes so that you can implement your own checks or enforce higher prerequisite levels if necessary.

If you are planning to deploy the .NET Framework 2.0 to your network or include it as a prerequisite in your setup package, it is very important that you understand what these checks do so that you can verify that the computers on your network will meet the minimum system requirements and deployment will be able to proceed correctly.

In addition, if you are planning to install the .NET Framework 2.0 in silent mode as a part of your installation package, you must be able to check for these conditions yourself or be able to handle cases where these conditions are not met and .NET Framework 2.0 setup fails as a result.

Single instance of setup check

.NET Framework 2.0 setup attempts to acquire a mutex at the beginning of execution. If it is already owned by another process, it exits and tells the user that another instance of setup is already running.

Administrative privileges check

.NET Framework 2.0 setup uses the algorithm documented in this knowledge base article to check whether or not the setup process has the necessary administrative privileges.

OS version check

.NET Framework 2.0 setup first calls the GetVersionEx API. If the dwPlatformId member of the returned OSVERSIONINFO structure equals VER_PLATFORM_WIN32_WINDOWS, then the OS version is Windows 9x and the OS version check is done.

If dwPlatformId equals VER_PLATFORM_WIN32_NT, then setup checks the dwMajorVersion and dwMinorVersion members of the returned OSVERSIONINFO structure.

If dwMajorVersion < 5, then setup blocks installation because Windows NT 4.0 and earlier versions of Windows NT are not supported platforms for installing the .NET Framework 2.0.

If dwMajorVersion is greater than or equal to 5, then the OS is a valid OS to install the .NET Framework 2.0, and the following logic is used to determine exact OS version:

  • Windows 2000: if dwMajorVersion = 5 and dwMinorVersion = 0
  • Windows XP: if dwMajorVersion = 5 and dwMinorVersion = 1
  • Windows Server 2003: if dwMajorVersion = 5 and dwMinorVersion = 2

64-bit OS check

The .NET Framework 2.0 shipped both as 32-bit and 64-bit packages. Setup requires that the version of the .NET Framework 2.0 that matches the current processor architecture be installed, and attempting to install mismatched versions will be blocked.

The 32-bit version of .NET Framework 2.0 setup blocks the user from installing on a 64-bit OS. It does this by checking to see if the current setup process is running in the WOW64 layer. To do this, .NET Framework 2.0 setup attempts to locate the GetSystemWow64Directory API. If this API exists on the system and it returns a valid path, then setup reports that the system is a 64-bit OS and the current instance of setup is a 32-bit process running in the WOW64 layer, and it blocks the user from installing.

The 64-bit version of .NET Framework 2.0 setup will not run on a 32-bit OS. There is not a specific block implemented in setup for this. Instead, setup will display a generic error just like all 64-bit executables do when they are launched on a 32-bit OS. It could be one of the following:

  • If setup is launched from the self-extracting EXE: Error creating process <C:\DOCUME~1\username\LOCALS~1\Temp\IXP000.TMP\Install.exe>. Reason: C:\WINDOWS\system32\advpack.dll
  • If setup is launched by running install.exe directly: install.exe is not a valid Win32 application.
  • If setup is launched by running msiexec.exe /i netfx.msi: This installation package is not supported by this processor type. Contact your product vendor.

Check to see if the .NET Framework 2.0 was installed as part of the OS

.NET Framework 2.0 setup checks to see if it is being run on an OS that already has the .NET Frameowork 2.0 installed as part of the OS. To do this, it checks the following registry value:

  • Key name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
  • Value name: OCM
  • Value data type: REG_DWORD
  • Value data: 1

Currently, the only OS that includes the .NET Framework 2.0 is Windows Vista. However, that could change in the future, so the safest way to detect whether the .NET Framework 2.0 is installed as an OS component is to check the above registry value as opposed to trying to detect the OS version.

Microsoft Internet Explorer 5.01 version check

.NET Framework 2.0 setup verifies that the version of Internet Explorer installed on the system is at least version 5.01. To do this, it checks the following registry value:

  • Key name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer
  • Value name: Version
  • Value data type: REG_SZ
  • Value data: greater than or equal to 5.0.2919.6307

Note that this check requires splitting the Version registry value into 4 different parts by splitting on the period and comparing each part of the version against the minimum values 5, 0, 2919 and 6307. A simple string comparison will not work because, for example, version 2.0.0.0 would be greather than 10.0.0.0 when using a string comparison.

Windows Installer version check

.NET Framework 2.0 setup validates the Windows Installer version installed on the system. To do this, it first determines the location of msi.dll by checking the following registry value:

  • Key name: HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Installer
  • Value name: InstallerLocation
  • Value data type: REG_SZ

The InstallerLocation value will contain a folder path. .NET Framework 2.0 setup then appends msi.dll to the value of the InstallerLocation value, and loads and attempts to call the DllGetVersion API in msi.dll. If that API returns success, setup checks for the following return values:

  • If the OS is Windows 9x: dwMajorVersion is greater than or equal to 2 and dwMinorVersion is greater than or equal to 0
  • If the OS is Windows 2000 or later: dwMajorVersion is greater than or equal to 3 and dwMinorVersion is greater than or equal to 0

Note that while the initial .NET Framework 2.0 setup only checks for Windows Installer 3.0 or later on Windows 2000 and later, hotfixes and service packs for the .NET Framework 2.0 will require Windows Installer 3.1 or later in order to install correctly. As a best practice, your setup should enforce that Windows Installer 3.1 is present as well.

Previous beta product check

.NET Framework 2.0 setup uses the algorithm in this blog post to check for previous beta products that are installed on the system.

.NET Framework 2.0 already installed check

In order to determine whether or not to enter maintenance (repair/uninstall) mode or not, .NET Framework 2.0 setup checks to see if the .NET Framework 2.0 MSI is already installed on the system. It retrieves the product code for netfx.msi, then calls the MsiQueryProductState API and passes in this product code. If MsiQueryProductState returns INSTALLSTATE_DEFAULT, then setup enters maintenance mode. Otherwise, setup enters initial install mode.








[최초 등록일: ]
[최종 수정일: 7/25/2006]


비밀번호

댓글 작성자
 




1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
1103정성태11/18/200910729개발 환경 구성: 135. How to Configure WPL v1.0 SRE
1102정성태11/18/200912337개발 환경 구성: 134. Oracle Visual Studio tools and Oracle .NET data provider
1101정성태11/17/200911319Windows 2008 : 15. R2 - Personal Virtual Desktops
1100정성태11/17/200911135개발 환경 구성: 133. SQL Server 2008 "with" SP1 설치 버전 만들기
1099정성태11/13/200911325VS.NET IDE : 56. John Robbins' Blog - Visual Studio 2010 베타 2의 디버거 기능 설명 시리즈
1098정성태11/13/200914822.NET : 108. PathTooLongException - 260자 파일 경로 제한
1097정성태11/11/200910783Visual C++ : 17. overwrite_buffer, unbounded_buffer, combinable
1096정성태11/10/200910992IIS : 30. 웹 응용 프로그램의 현재 요청을 모두 마치고 종료하고 싶다면?
1095정성태11/9/200911601TFS : 178. TFS2010: Public Workspaces
1094정성태11/5/200911354.NET : 107. 예제로 보는 .NET 명명 규칙
1093정성태11/5/200911253.NET 3.0 : 35. WCF - TokenImpersonationLevel.Delegation
1092정성태11/3/200912144개발 환경 구성: 132. sdb2xml.exe 도구
1091정성태10/29/200912296.NET 4.0: 11. WPF - UseLayoutRounding을 이용하여 글자가 흐릿하게 나오는 문제 해결
1090정성태10/27/200911106VS.NET IDE : 55. Visual Studio 2010 - XAML 디자이너 바뀐 점
1089정성태10/27/200911324TFS : 177. TFS 2010 - MSF Agile 5.0 / 4.2 비교 설명
1088정성태10/23/200911262Debug : 44. John Robbins의 VS 2010 디버거 기능 관련 글
1087정성태10/22/200910755.NET 4.0: 10. 베타 2에서 새롭게 소개되는 추가 기능 [3]
1086정성태10/21/200912750Windows 2008 : 14. R2 - 향상된 기능 소개
1085정성태10/21/200911759VS.NET IDE : 54. Visual Studio 2010 - (신기능) IntelliTrace [1]
1084정성태10/21/200911913IIS : 29. IIS 7.5 의 신 기능 2가지 - Auto-Start / Warm-Up
1083정성태10/20/200910373VS.NET IDE : 53. Visual Studio 2010 베타 2의 알려진 버그
1082정성태10/15/200910335개발 환경 구성: 131. 도메인에 참여하지 않은 컴퓨터에서 도메인 계정으로 프로그램 실행
1081정성태10/12/200910219.NET : 106. IE에 Embedded 형태의 UserControl 보안 관련
1080정성태10/8/200911040Debug : 43. Visual Studio 디버깅 100% 활용
1079정성태10/6/200910936TFS : 176. Integration between Word and TFS (Team Foundation Server) with Team Spec
1078정성태10/6/200912192IIS : 28. WebDeploy 도구 - WebDeploy Auto-Completion UI
1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...