Windows Installer Editor Reference
484
Macro Editor
(Visual Studio integrated editor only.) In MSI Script, right-click in the
Installation Sequence pane and select Macros.
The Macro dialog box appears.
2. From Macro Is Run, select:
Manually to edit a manually-run macro.
On Windows Installer Editor event to edit a macro that runs on an event.
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
on page 485.
5. Edit the macro.
6. In the Macro Editor, select File menu > Save.
7. Exit the Macro Editor.
To run a macro manually
1. Do one of the following:
(Wise editor only.) Select Edit menu > Macros.
(Visual Studio integrated editor only.) In MSI Script, right-click in the
Installation Sequence pane and select 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 482
Events That Can Trigger a Macro
on page 484
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
on page 483.