Objective: To achieve this without re-compiling the installation packageInstallShieldInstallationProgramFile update
Environment:Is2009
Steps:
1.From the installation directory. \ SystemExtractIscab.exe,Istools. dll,Mediabuild40.dllFile, copy them to the self-built folder, for example, copyD: \ testDirectory.
2.Copy the installation package to be modifiedD: \ testDirectory
Enter CMD Window, , Input D :, And then enter CD Test , Enter D: \ test Directory. Then use the command line Iscab data1.cab-lx-ICAB. ini Extract the installation package structure information and output it Cab. ini File, which roughly contains the header description segment [Iscab info] And file description [Program files in targetdir] Two-part format:
[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"
3.Add, delete, replace, and decompress the Update file to the original installation package through various command lines.
1) Add file: place the file to be added in D: \ test Directory to edit the exported Cab. ini File, retain only the header description segment ( [Iscab info] ) And the description section of the file to be added (note that the Group description of the file should be retained, as shown in [Public files in targerdir] ), Save the edited file Add. ini , In CMD Use the command line in the window Iscab data1.cab-a-iadd. ini , Add files to the original installation package.
Example:
Add"Moticdog. dll"FileCab, iniThe file is changed to the following:
[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"
InCMDUse the command line in the windowIscab data1.cab-a-iadd. ini,Double-click the installation package to install the software."Moticdog. DLThis file.
2) remove a file: edit the exported cab. INI file, retain only the header description section ( [iscab info] ) and description section of the file to be deleted (Note: The group description of the file should be retained, for example, [public files in targerdir] ) save the edited file as Del. INI , in CMD use the command line in the window iscab data1.cab-r-idel. INI to delete the installation package.
Example:
DeleteFile3 = "software help request.xls"FileCab, iniThe file is changed to the following:
[Iscab info]
Product = iscab
Version = 2.0
[Program files in targetdir]
File3 = "software help request.xls"
InCMDUse the command line in the windowIscab data1.cab-r-idel. ini,Double-click the installation package to install the software.Software help request.xlsFile
Copyright statement: Indicate the original source for reprinting.