标签:
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