PreBuildEvent Property (Windows Installer)
Visual Studio 2010
The PreBuildEvent property for a deployment project specifies a command line to be executed before the build starts. The PreBuildEvent property can be set in the Properties window when a deployment project is selected in the Solution Explorer.