아래에서 퍼옴
http://blog.naver.com/chizeta?Redirect=Log&logNo=100071508252


VC 8.0 런타임 (vcredist) 패키지 몰래 인스톨하기


얼마전에 비주얼 C++ 8.0 런타임 재배포 셑업 패키지의 사일런트 설치 (몰래 설치) 옵션에 대해 포스팅을 했다. (원문의 번역임에 주의) 이 포스팅을 썼을 때, 난 비주얼 스튜디오 2005를 설치하여 깔리는 %ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages 디렉토리에 있는 버전의 vcredist_x86.exe, vcredist_x64.exe, vcredist_ia64.exe 의 명령행 옵션을 기준으로 작성했었다.

그러나, 한 고객이 얼마전에 내가 모르던 점을 알려주었다. 웹으로 다운로드할 수 있는 VC 런타임 재배포 패키지 스탠드얼론 버전은 좀 다르게 패키징 되어 있어서, 이전 포스팅에서 설명한 몰래 설치방법의 명령행 옵션이 먹지 않는다. 즉, 스탠드얼론 버전은 EULA를 먼저 보여주고 실제 실행되는 메인 셑업 패키지가 풀려 실행되도록 한 겹 더 싸여있다. 비주얼 스튜디오 2005에 포함된 패키지는 두겹으로 싸여있지 않았다.

그래서, 여기 수정된 VC 8.0 런타임 재배포 패키지에 대한 몰래 설치법이 있다. 비주얼 스튜디오 2005에 포함된 패키지를 사용한다면, 이전 포스팅의 명령행 스위치를 사용해도 된다.

하지만, 스탠드얼론 VC 8.0 재배포 패키지를 다운로드 했다면, 명령행 옵션을 조금 바꿔야 한다. 아래 명령으로 오리지널 스탠드얼론 VC 8.0 재배포 패키지를 설치할 수 있다.

  • For x86: vcredist_x86.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
  • For x64: vcredist_x64.exe /q:a /c:"VCREDI~2.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
  • For ia64: vcredist_ia64.exe /q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "

아래 명령으로는 비주얼 스튜디오 2005 SP1 스탠드얼론 VC 8.0 재배포 패키지를 설치할 수 있다.

  • For x86: vcredist_x86.exe /q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
  • For x64: vcredist_x64.exe /q:a /c:"VCREDI~2.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
  • For ia64: vcredist_ia64.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "

VC 런타임 패키지를 언어텐디드 모드 (작은 프로그레스바를 보여주지만 사용자 인터렉션은 요구하지 않는 모드)로 설치하려면, /qn 스위치를 /qb로 바꾸면 된다. 프로그레스바가 취소 버튼을 보이지 않길 원한다면, /qn 스위치를 /qb!로 바꾸어 주면 된다.

http://blogs.msdn.com/astebner/archive/2007/02/07/update-regarding-silent-install-of-the-vc-8-0-runtime-vcredist-packages.aspx

Update regarding silent install of the VC 8.0 runtime (vcredist) packages

A while back, I posted this item on my blog that describes optionsfor silent installation of the Visual C++ 8.0 runtime redistributable setup packages.  When I investigated this issue and wrote that blog post, I based the command line parameters on the versions of vcredist_x86.exe, vcredist_x64.exe and vcredist_ia64.exe that are included in the directory %ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages when installing Visual Studio 2005.

However, a customer recently alerted me to an issue that I wasn't aware of previously.  The standalone versions of the VC runtime redistributable packages that are available for download via the web are packaged differently, and so the command lines that I previously documented for silent installation will not work with those versions of the packages.  Essentially, the standalone versions are wrapped in a second self-extracting EXE that displays a EULA before allowing extraction and execution of the main setup package, whereas the packages included as part of Visual Studio 2005 directly launch setup and are not doubly wrapped.

Therefore, here are some amended silent install instructions for the VC 8.0 runtime redistributable packages.  If you are using the packages included as a part of Visual Studio 2005, you can continue to use the silent install switches from my previous blog post.

However, if you have downloaded the standalone VC 8.0 redistributable packages, you will need to modify the command lines slightly.  The following command lines can be used to install the original release of the standalone VC 8.0 redistributable packages:

    * For x86: vcredist_x86.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
    * For x64: vcredist_x64.exe /q:a /c:"VCREDI~2.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
    * For ia64: vcredist_ia64.exe /q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "

The following command lines can be used to install the Visual Studio 2005 SP1 release of the standalone VC 8.0 redistributable packages:

    * For x86: vcredist_x86.exe /q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
    * For x64: vcredist_x64.exe /q:a /c:"VCREDI~2.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
    * For ia64: vcredist_ia64.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "

If you would like to install the VC runtime packages in unattended mode (which will show a small progress bar but not require any user interaction), you can change the /qn switch above to /qb.  If you would like the progress bar to not show a cancel button, then you can change the /qn switch above to /qb!

출처 : http://secuprint.tistory.com/entry/vcredist-몰래설치

 


 

Posted by 노을삼킨별
,