Symantec WINDOWS INSTALLER EDITOR 7.0 SP2 - REFERENCE FOR WISE INSTALLATION STUDIO V1.0 Installation Manual page 502

Table of Contents

Advertisement

Windows Installer Editor Reference
4.
Add a Run WiseScript From Installation custom action and set the following:
Custom Action Name: ActionInstallCorePlus
WiseScript .EXE File: C:\Plus\CorePlus.EXE
Command Line: Leave this blank. On the Properties tab, leave the defaults.
5.
Add an End Statement.
The above script lines install CorePlus, which in this example is A.dll. In the
following script lines, you make provisions for the uninstall.
6.
Add an If Statement with a value of REMOVE~="ALL".
This condition causes it to only run during uninstall of Core.
7.
Add an Execute Program From Destination custom action and set the following:
Custom Action Name: RemoveCorePlus
Working Directory: INSTALLDIR
EXE and Command Line: [INSTALLDIR]Unwise32.exe /S install.log
On the Properties tab, leave the defaults.
8.
Add an End Statement.
The MSI script looks like this (the script lines are numbered for clarity):
1. If NOT Installed then
2. Run WiseScript From Installation C:\Plus\CorePlus.EXE
3. End
4. If REMOVE~="ALL" then
5. Execute Program From Destination [INSTALLDIR]unwise32.exe /S
install.log Default Directory Program Files\Core
6. End
In the CorePlus WiseScript, do the following:
1.
Add a Get Windows Installer Property script action and set the following:
Dest. Variable: MAINDIR
Property Name: INSTALLDIR
INSTALLDIR is the installation directory of Core, the main Windows Installer
installation. This sets the WiseScript installation directory to the same value as the
main installation's installation directory.
2.
Add a Set Variable script action and set the following:
Variable: MAINDIR
New Value: %MAINDIR%
Operation: Remove trailing backslashes.
INSTALLDIR has a trailing backslash, but to be compatible with WiseScript,
MAINDIR cannot have a trailing backslash.
3.
Add an Open/Close INSTALL.LOG script action with Open new installation log
marked and the log file path specified as %MAINDIR%\install.log.
Using MSI Script
502

Advertisement

Table of Contents
loading

This manual is also suitable for:

Windows installer editor 7.0 sp2

Table of Contents