码迷,mamicode.com
首页 > 其他好文 > 详细

Update files embedded inside CAB file.

时间:2015-03-03 18:22:42      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:

 

References:

https://community.flexerasoftware.com/showthread.php?182791-Replace-a-single-file-embedded-in-an-MSI 

Windows Installer Scripting Examples

WiFilVer.vbs : Manage File Sizes and Versions

WiMakCab.vbs: Generate File Cabinet

 

 

 

@ECHO administrative install msi, extract all the files to specified folder

msiexec /a InstallPackage\MyInstaller.msi TARGETDIR="D:\Test\BASE"

 

@ECHO replace file

copy SomeFile.dll " BASE\CommonAppData\{Company Name}\{Product Name}\SomeFile.dll "

 

@ECHO Display the file information of the database.

CScript //nologo WiFilVer.vbs BASE\MyInstaller.msi

 

@ECHO Update the file size, version, and language information in the database from the source.

CScript //nologo WiFilVer.vbs BASE\MyInstaller.msi /U

 

@ECHO Recapture the CAB file with WiMakCab.vbs

CScript //nologo WiMakCab.vbs "BASE\MyInstaller.msi " data /C /U /E /S

 

DEL /Q "Data1.CAB"

DEL /Q "Data1.INF"

DEL /Q "Data1.RPT"

DEL /Q "Data1.DDF"

 

@ECHO Done

 

Update files embedded inside CAB file.

标签:

原文地址:http://www.cnblogs.com/cindy-hu-23/p/4311537.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!