Example How to Use Original.sxp

The Microsoft Office product can be installed in unattended mode, if you provide proper options and a response file as a parameter when Setup is called.

The Installer stores the modified response file (Rfile1 in the ResponseFiles section of original.sxp) in a temporary directory. The path of this modified file is supplied by the internal $(SxpRFile1) parameter.

Let us assume you copied the contents of the installation CD for Microsoft Office to the MSOFF_CD subdirectory of the version directory and created a MSOInsPath client parameter for the root directory of the product.

You must now insert the following lines in the Actions section of the original.sxp file:

#Actions#
Install="$(SxpSrvRelDir)\MSOFF_CD\setup.exe" /t $(SxpRFile1) /q1
Deinstall="$(MSOInsPath)\office\setup\acme.exe" /w offpro.stf /u /q1

Even if uninstallation is not required, you should enter a dummy entry in the Actions section, to ensure that it contains at least one entry. Otherwise, the Installer will report an error code when the product is installed on any target computer. A sample dummy entry follows:

Deinstall="$(SxpWinDir)\cmd.exe" /c echo deinstall

Specifying Calling Commands for Windows NT Technology

For Windows NT Technology to invoke any operating system commands, such as copy or del, in a pre-program or post-program, you must enter a line like the following in the Actions section of the original.sxp file:

"$(SxpWinDir)\cmd.exe" /c copy c:\temp\*.tmp

Sample Program Call

A sample install program call will look like this:

Install="setup.exe",0,20