09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 16: Building, Testing, and Distributing Installations<br />

Configuring and Building Releases<br />

MSBuild Scripts<br />

MSBuild natively understands one file format: its XML build script, which is used as the project file<br />

format for Visual C# and Visual Basic .NET projects (.csproj and .vbproj). MSBuild also has internal<br />

hooks to handle solution files and the Visual C++ project file format (.sln and .vcproj).<br />

The <strong>InstallShield</strong> integration with Visual Studio uses an MSBuild-compatible XML format project file<br />

(.isproj), which enables MSBuild to seamlessly build Visual Studio solutions that include <strong>InstallShield</strong><br />

projects.<br />

Customizing the .isproj File<br />

To incorporate changes for your <strong>InstallShield</strong> project into your .isproj file, add a PropertyGroup element<br />

or an ItemGroup element near the top of your .isproj file, or update an existing PropertyGroup or<br />

ItemGroup element. Then add <strong>InstallShield</strong>-related parameters as needed.<br />

The following sample code from an .isproj file demonstrates how to do the following:<br />

• Set the product version.<br />

• Set the product name.<br />

• Set a custom public property called MY_PROPERTY to the value My Value.<br />

• Specify the following search paths for <strong>InstallShield</strong> prerequisites:<br />

\SetupPrerequisites and \MyCustomPrerequisites.<br />

<br />

1.2.3<br />

<br />

<br />

<br />

ProductName<br />

<br />

<br />

MY_PROPERTY<br />

<br />

<br />

<br />

<br />

Using MSBuild to Build a Release from the Command Line<br />

Note: If you use MSBuild to build Visual Studio solutions with <strong>InstallShield</strong> projects, MSBuild requires .NET Framework 3.5<br />

or later.<br />

MSBuild provides an easy way to build a release from the command line on a machine on which Visual<br />

Studio is not installed. The only components that you must have installed on the machine are the .NET<br />

Framework and <strong>InstallShield</strong>. Place a copy of your Visual Studio solution on the machine, and run<br />

MSBuild.<br />

304 ISE-1800-UG01 <strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!