Install InstallShieldProgramFile update
Objective: To update the installer file created by InstallShield without re-compiling the installation package
Environment: is2009
Steps:
1. Extract iscab.exe, istools. dll, and mediabuild40.dll files from the. \ systemdirectory of the installation directory and copy them to the self-built folder. For example, copy them to the D: \ test directory.
2. Copy the installation package to be changed to the D: \ test directory.
3. In the CMD window, enter D:, and then CD test to enter the D: \ test directory. Then use the command line iscab data1.cab-lx-ICAB. INI extracts the structure information of the installation package and outputs it to the cab. INI file, which generally contains the header description section [iscab info] and the file description section [program files in targetdir:
[Iscab info]
Product = iscab
Version = 2.0
[<Support> English files]
File1 = "_ isres. dll"
[<Engine> engine files]
File1 = "corecomp. ini"
[<Support> Chinese (simplified) OS independent files]
File1 = "license.txt"
File2 = "vssver. SCC"
[<Support> non-selfregistering]
File1 = "ISRT. dll"
File2 = "Default. Pal"
[<Support> English OS independent files]
File1 = "license.txt"
[<Support> language independent intel 32 files]
[Program files in targetdir]
File1 = "motictools. dll"
File2 = "motictrace.exe"
File3 = "software help request.xls"
[<Support> script]
File1 = "setup. enabled"
[<Engine> scriptengine]
File1 = "isw.dll"
[<Support> Chinese (simplified) intel 32 files]
[<Support> English intel 32 files]
[<Disk1> disk1 files (1)]
File1 = "layout. bin"
File2 = "data1.hdr"
File3 = "data1.cab"
[<Disk1> disk1 files (2)]
File1 = "setup.exe"
File2 = "setup. ini"
[<Disk1> disk1 files (3)]
File1 = "setup. enabled"
[<Support> Chinese (simplified) string tables]
File1 = "value. SHL"
File2 = "vssver. SCC"
[<Support> English string tables]
File1 = "value. SHL"
[<Support> language independent OS independent files]
[<Engine> selfregistering]
File1 = "ctor. dll"
File2 = "objectps. dll"
File3 = "iuser. dll"
[<Support> Chinese (simplified) files]
File1 = "_ isres. dll"
[<Engine> kernel placeholder]
File1 = "ikernel.exe"
4. add, delete, replace, and decompress the Update file to the original installation package through various command lines.
1) Add a file: place the file to be added in the D: \ test directory and edit the exported cab. INI file, only the header description section ([iscab info]) and the description section of the file to be added (Note: The group description of the file should be retained, for example, [public files in targerdir]), save the edited file as ADD. INI, use the command line iscab data1.cab-a-iadd In the CMD window. INI to add files to the original installation package.
Example:
Add the "moticdog. dll" file and change the cab and INI files as follows:
[Iscab info]
Product = iscab
Version = 2.0
[Program files in targetdir]
File1 = "motictools. dll"
File2 = "motictrace.exe"
File3 = "software help request.xls"
File4 = "moticdog. dll"
In the CMD window, use the command line iscab data1.cab-a-iadd. ini. Double-click the installation package to install the software. The "moticdog. DL" file is added to the installation directory.
2) Remove File: edit the exported cab. INI file, only the header description section ([iscab info]) and the description section of the file to be deleted (note that the Group description of the file should be retained, for example, [public files in targerdir]) save the edited file as Del. INI, use the command line iscab data1.cab-r-idel In the CMD window. INI to delete the installation package.
Example:
Delete the file3 = "software help request.xls" file, and change the cab and INI files to the following:
[Iscab info]
Product = iscab
Version = 2.0
[Program files in targetdir]
File3 = "software help request.xls"
In the CMD window, use the command line iscab data1.cab-r-idel. ini. Double-click the installation package to install the software. In the installation directory, you can see the delete software help request.xls file.