Chapter 18: Macro Editor; About The Macro Editor; About Macro Files - Symantec WINDOWS INSTALLER EDITOR 7.0 SP2 - REFERENCE FOR WISE INSTALLATION STUDIO V1.0 Installation Manual

Table of Contents

Advertisement

Chapter 18
Macro Editor

About the Macro Editor

About Macro Files

Windows Installer Editor Reference
This chapter includes the following topics:
About the Macro Editor
About Macro Files
on page 482
About the Macro Editor Window
The Macro Editor provides access to Wise Automation, which programmatically controls
Windows Installer Editor. Use Wise Automation to perform tasks that occur regularly and
require multiple steps in the user interface. Example: You can write Wise Automation in
the Macro Editor to automate daily builds. To view the Wise Automation Reference, open
WiseAutomation.chm, which is in the Technical Documentation subdirectory of this
product's installation directory.
Warning
You should be familiar with macros and comfortable with Visual Basic to use this feature.
For information on Visual Basic, visit msdn.microsoft.com/vbasic/.
Note
You can use Wise Automation with Visual Studio or other scripting environments.
Use the Macro Editor to create and edit macro files. The default macro file in the
Templates folder (Macros.wbs) contains sample macros. These samples are commented
out, which means that you can view the script in the Macro Editor but you can't run the
macros unless you uncomment the script. You can add macros to Macros.wbs, and edit
and delete its macros.
Each new file you start in Windows Installer Editor has Macros.wbs attached. When you
open the Macro dialog box, you can attach a different macro file.
You can create the following types of macros:
Event macros that run when you fire the corresponding event.
Macros that you run manually.
If your .WBS files include event macros, you might encounter a situation in which you
want to create a new project that doesn't run these macros. Example: You might have a
macro that runs on the New event and adds a specific set of files to a specific set of
directories every time you start a new project. To start a new project that does not
include these files and directories, you can create a new .WBS file that doesn't contain
any macros. Then, attach this macro file to your project.
on page 482
on page 485
482

Advertisement

Table of Contents
loading

This manual is also suitable for:

Windows installer editor 7.0 sp2

Table of Contents