Events That Can Trigger A Macro - Symantec WINDOWS INSTALLER EDITOR 8.0 Reference

Hide thumbs Also See for WINDOWS INSTALLER EDITOR 8.0:
Table of Contents

Advertisement

Events That Can Trigger a Macro

Windows Installer Editor Reference
3.
In the list box, select the macro to edit.
If the macro is in a file other than the one shown in Pathname, browse to the file's
location.
4.
Click Edit.
The Macro Editor window appears.
See
About the Macro Editor Window
5.
Edit the macro.
6.
In the Macro Editor, select File menu > Save.
7.
Exit the Macro Editor.
To run a macro manually
1.
Select Edit menu > Macros.
The Macro dialog box appears.
2.
From Macro Is Run, select Manually.
3.
In the list box, select the macro to run.
If the macro is in a file other than the one shown in Pathname, browse to the file's
location.
4.
Click Run.
See also:
About Macro Files
on page 431
Events That Can Trigger a Macro
Using the Macro Editor, you can write macros for OLE Automation events. Example: If
you write a macro for the AddFile event, the macro runs every time you add a file to an
installation.
See
Creating, Editing, and Running a Macro
Event
AddFile
New
Open
QueryDisplayValidation
on page 434.
on page 433
on page 432.
What you could do with a macro
Have each .DLL or .EXE file you add marked Read-only
or have all .DLL files placed into the System directory.
Have a specific set of files added each time you start a
new installation. You could also add a message box so
you can choose not to have the files added.
Replace all previously-added files with any updated
files in a certain folder each time you open an
installation.
Have Package Validation not display certain ICE error
messages. To do this, set the variable bDisplay to
FALSE for that error.
Macro Editor
433

Advertisement

Table of Contents
loading

Table of Contents