如何在cab文件中部署Visual Studio 2008 C运行时库? [英] How can I deploy Visual Studio 2008 C Run-time Library in cab file?

查看:89
本文介绍了如何在cab文件中部署Visual Studio 2008 C运行时库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了ActiveX和ActiveX所需的dll.

I maked a ActiveX and dlls that is required at ActiveX.

这些都是使用/MD(多线程dll)选项构建的.

These are builded with /MD(multi thread dll) option.

所以系统是Visual Studio 2008 C运行时库.

So system is Visual Studio 2008 C Run-time Library.

我将这些文件部署在cab文件中.

I will deploy these in cab file.

如何安装Visual Studio 2008 C运行时库?

How can I install Visual Studio 2008 C Run-time Library?

推荐答案

彼得,

这就是我的操作方式,以下是我的.inf文件(如您所知,该文件也应位于cab文件中):

This is how I have done it, the following is my .inf file (which as you know should also be in the cab file):

[版本]
́签名="

[version]
  signature="


芝加哥


"
AdvancedINF = 2.0
"
  AdvancedINF=2.0

[添加代码]
msvcr90.dll = msvcr90.dll
msvcp90.dll = msvcp90.dll
PlayerCtrl.dll = PlayerCtrl.dll
; CRT DLL
[msvcr90.dll]
hook = crt.cab_Installer
FileVersion = 9,0,21022,8

[Add.Code]
  msvcr90.dll=msvcr90.dll
  msvcp90.dll=msvcp90.dll
  PlayerCtrl.dll=PlayerCtrl.dll
; CRT DLL
[msvcr90.dll]
  hook=crt.cab_Installer
  FileVersion=9,0,21022,8

; C ++ RT DLL
[msvcp90.dll]
hook = crt.cab_Installer
FileVersion = 9,0,21022,8

; C++RT DLL
[msvcp90.dll]
  hook=crt.cab_Installer
  FileVersion=9,0,21022,8

[crt.cab_Installer]
file-win32-x86 = vcredist_x86.cab
run =%EXTRACT_DIR%\ vcredist_x86.exe

[PlayerCtrl.dll]
file-win32- x86 = thiscab
clsid = {A2A6189E-44F4-4D69-9CE4-8329312D2E3A}
FileVersion = 2,3,0,0
RegisterServer =是

[crt.cab_Installer]
  file-win32-x86=vcredist_x86.cab
  run=%EXTRACT_DIR%\vcredist_x86.exe
 
[PlayerCtrl.dll]
  file-win32-x86=thiscab
  clsid={A2A6189E-44F4-4D69-9CE4-8329312D2E3A}
  FileVersion=2,3,0,0
  RegisterServer=yes

我已使用该钩子运行vcredist_x86.exe,该文件是MSDN上可供下载的CRT 9.0安装程序.我将vcredist_x86.exe放在另一个cab文件中.在安装过程中,将从用户中提取.exe并在用户单击安装过程中执行.

I've used the hook to run the vcredist_x86.exe which is the installer for CRT 9.0 available on MSDN for download. I've put the vcredist_x86.exe in another cab file. During installation the .exe will be extracted from it and executed as the user clicks through the installation.


这篇关于如何在cab文件中部署Visual Studio 2008 C运行时库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆