User Guide
494
Calling WiseScripts with Custom Actions
Calling WiseScripts with Custom Actions
The Run WiseScript custom actions provide the ability to call WiseScripts. WiseScript
technology provides many specialized functions that are not available in or are difficult
to do with Windows Installer technology. In a WiseScript, you can use special actions
that let you pass information between the main Windows Installer installation and the
WiseScript .EXE that is being called. For information on which WiseScript editing tool
comes with your software, see WiseScript Editing Tools.
Note
If the main Windows Installer installation is run silently, a called WiseScript is called silently.
WiseScript Editing Tools
Three WiseScript editing tools are available from Wise Solutions:
! WiseScript Express
Included in Wise for Windows Installer and Wise Package Studio - Standard Edition.
! WiseScript Editor
Included in Wise Package Studio - Professional Edition.
! Wise Installation System
A fully-featured stand-alone product for creating WiseScripts. You must use version 8
or later to create WiseScripts that can be run by Windows Installer.
Determining Your Default WiseScript Editing Tool
Use the following to determine the WiseScript Editing tool that opens by default when
you open a WiseScript from a Call WiseScript custom action or from a menu:
! If you have Wise for Windows Installer, it launches Wise Installation System, if
available. If it is not available, it launches WiseScript Express.
! If you have Wise Package Studio - Standard Edition, it launches Wise Installation
System, if available. If Wise Installation System is not available, it launches
WiseScript Express.
! If you have Wise Package Studio - Professional Edition, it always launches WiseScript
Editor.
Adding script actions to Wise Installation System
If you have Wise Installation System, but it doesn’t contain the script actions that
communicate with Windows Installer (Get Windows Installer Property, Set Windows
Installer Property, and Evaluate Windows Installer Condition), you can copy them into
the Wise Installation System. From the Wise for Windows Installer/WiseScript Express/
Actions folder, copy the 3 .WSE files named for these 3 script actions and paste them in
your Wise Installation System/Actions folder. After you reopen the Wise Installation
System, these actions are available.
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 the documentation for the WiseScript editing tool.