The following example shows how to create a script and cabinet file to prepare a UNIX component for an IEAK package.
#!/bin/sh
|
|
cd $2
|
# Argument $2 is the target location of the component ([install_dir]/[target]). Go to the location of the compressed file.
|
mkdir foldername
|
# Create an installation folder (you may want to use the component's name).
|
mv compressed_filename foldername
|
# Move the compressed file into the installation folder.
|
cd foldername
|
# Switch to the installation folder.
|
gunzip compressed_componentname
|
# Decompress the component.
|
chmod +x componentname
|
# Assign "execute permissions" to this file, so it can be run as a program.
|
cd $1/bin
|
# Argument $1 is the installation location. Switch to the Internet Explorer bin folder.
|
ln -s ../foldername/componentname
|
# Create a link to the executable program.
|
"cabarc n componentname.cab compressedcomponent + componentname_install.sh"
Component
componentname
Location
The location of the componentname.cab file
Program
componentname_install.sh
When you run the wizard, it decompresses the cabinet file, runs the script, and installs your component before it customizes the browser.