1.首先生成安装文件,如(msi文件)。
2.配置inf文件
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Setup Hooks]
hook1=hook1
[hook1]
run=msiexec.exe /i "%EXTRACT_DIR%\spSetup.msi" /qn
[SoftPhone.dll]
file-win32-x86=thiscab
clsid={29A9A1E7-E99C-DFC1-EE91-F5B05978C75E}
FileVersion=1,1,0,0
RegisterServer=yes
RedirectToHKCU=yes
3.使用 cabarc工具,运行命令 c:\cabarc.exe n softphone.cab D:\SoftPhone\spSetup\Debug\spSetup.msi D:\SoftPhone\install.inf
生成cab文件。