Examples Of Wisescripts You Run From An .Msi; Using A Wisescript To Parse A Path - Symantec WINDOWS INSTALLER EDITOR 7.0 SP2 - REFERENCE FOR WISE INSTALLATION STUDIO V1.0 Installation Manual

Table of Contents

Advertisement

Examples of WiseScripts You Run From an .MSI

Windows Installer Editor Reference
Calling a WiseScript .EXE versus calling a regular .EXE
Creating a custom action that calls a WiseScript .EXE is similar to calling a regular .EXE,
except that communication can take place between Windows Installer and WiseScript.
This is possible through the use of the Get Windows Installer Property, Set Windows
Installer Property, and Evaluate Windows Installer Condition actions in the WiseScript.
For information on these actions, see About WiseScript Actions in the WiseScript Editor
Help.
See also:
Troubleshooting: When WiseScript Custom Actions Fail on Windows Vista or later
page 503
Run WiseScript From Destination
Run WiseScript From Installation
Run WiseScript From Installed Files
About Script Editor in the WiseScript Editor Help
This section provides examples of how to use WiseScripts that are called by a Windows
Installer installation.
For script examples, see:

Using a WiseScript to Parse a Path

Using a WiseScript to Install a License File
Uninstalling Changes Made by a WiseScript
Using a WiseScript to Parse a Path
Because the Microsoft Windows Installer technology does not allow for parsing, you
cannot use it to create an installation that extracts a path from the registry and then
parses the path to isolate the file name into a property. However, you can send the path
to a WiseScript executable, do the parsing, then send the file name back in a Windows
Installer property.
Example: You extract the path C:\Program Files\Application\Application.exe, use
WiseScript to parse the file name, Application.exe, and send the file name back in a
Windows Installer property.
To use a WiseScript to parse a path
1.
Write a WiseScript that uses:
Get Windows Installer Property script action to get the property named
APPLICATION_PATH into a temporary variable.
Parse String script action on the temporary variable to put the file name into
another temporary variable.
Set Windows Installer Property script action to put the file name back into the
Windows Installer property APPLICATION_PATH.
2.
In Installation Expert, use the System Search page to get a registry entry that
consists of a full path. Put the path into a property named APPLICATION_PATH.
on page 534
on page 535
on page 536
on page 499
on page 500
on page 501
Using MSI Script
on
499

Advertisement

Table of Contents
loading

This manual is also suitable for:

Windows installer editor 7.0 sp2

Table of Contents