Update files embedded inside CAB file.

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
时间: 2024-11-08 20:28:26

Update files embedded inside CAB file.的相关文章

Compress multiple files into a zip file and assign a password.

First things first, include maven dependency to download zip4j jar files 1 <dependency> 2 <groupId>net.lingala.zip4j</groupId> 3 <artifactId>zip4j</artifactId> 4 <version>1.3.1</version> 5 </dependency> Seco

Problem with generating association inside dbml file for LINQ to SQL

Question: I have created a dbml file in my project, and then dragged two tables from a database into the designer. This is the tables for order header and order lines, and order lines have a foreign key to order header to make it a one to many relati

How can I add files to a Jar file?

https://stackoverflow.com/questions/12239764/how-can-i-add-files-to-a-jar-file M.java class M{ public static void main(String args[]){ System.out.println("Hello, world!"); } } MANIFEST.MF Manifest-Version: 1.0 Created-By: 1.8.0_144 (Oracle Corpo

How to distribute your own Android library through jCenter and Maven Central from Android Studio

In Android Studio, if you wish to include any library to your application. You could just simply add a following line of dependency in module's build.gradle file. 1 2 3 dependencies {     compile 'com.inthecheesefactory.thecheeselibrary:fb-like:0.9.3

Cabarc Overview (Microsoft TechNet)

Original Link:  Cabarc Overview Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2 Cabarc.exe: Cabinet Tool This command-line tool allows users to create, query and extract Windows cabi

Combine small files to Sequence file

Combine small files to sequence file or avro files are a good method to feed hadoop. Small files in hadoop will take more namenode memory resource. SequenceFileInputFormat 是一种Key value 格式的文件格式. Key和Value的类型可以自己实现其序列化和反序列化内容. 以下的代码仅供参考作用,真实的项目中使用的时候,可

Java文件IO操作应该抛弃File拥抱Path和Files

Java7中文件IO发生了很大的变化,专门引入了很多新的类: import java.nio.file.DirectoryStream;import java.nio.file.FileSystem;import java.nio.file.FileSystems;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;import java.nio.file.attribute.FileAt

如何限制oracle的trace files及alert file大小

Each server and background process writes to a trace file. When a process detects an internal error, it writes information about the error to its trace file. The file name format of a trace file is sid_processname_unixpid.trc, where: ■sid is the inst

Java基础教程——File类、Paths类、Files类

File类 File类在java.io包中.io代表input和output,输入和输出. 代表与平台无关的文件和目录. 可以新建.删除.重命名,但不能访问文件内容. File类里的常量: import java.io.File; public class TestFileConst { public static void main(String[] args) { String s = ""; // 文件分隔符:win反斜杠(\)linux正斜杠(/) s = File.separ