15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

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

414 ❘ ChaPTer 17 deplOyment<br />

In the Solution Explorer window, click the project <strong>and</strong> then the Properties window. You will see a list of<br />

properties. These properties are displayed during the setup of your application. Some of these properties<br />

are also displayed in the Add/Remove Programs Control Panel applet. Because most of these properties are<br />

visible to users during the installation process (or when they are looking at your installation in Add<br />

or Remove Programs), setting them correctly adds a professional touch to your application.<br />

The list of properties is important, especially if your application will be deployed commercially. The<br />

following table describes the properties <strong>and</strong> the values that you should enter:<br />

ProjeCT ProPerTy<br />

desCriPTion<br />

AddRemoveProgramsIcon The icon that appears in the Add/Remove dialog box.<br />

Author<br />

Description<br />

DetectNewerInstalled<br />

Version<br />

InstallAllUsers<br />

Keywords<br />

Localization<br />

Manufacturer<br />

ManufacturerURL<br />

PostBuildEvent<br />

PreBuildEvent<br />

ProductCode<br />

ProductName<br />

RemovePrevious-<br />

Versions<br />

RunPostBuildEvent<br />

The author of the application. Generally this property setting is the same as the<br />

manufacturer. It displays on the Summary page of the Properties dialog of the msi<br />

package, as well as the Contact field of the SupportInfo page on the Add/Remove<br />

dialog box.<br />

A freeform text field that describes the application or component that is being<br />

installed. This information is displayed on the Summary page of the Properties<br />

dialog of the msi package, as well as the Comment field of the SupportInfo page<br />

on the Add/Remove dialog box.<br />

A Boolean value that, when set to true, checks to see if a newer version of the<br />

application is already installed. If so, the installation process will stop.<br />

Boolean value that, when set to true, will install that application for all users of<br />

the computer. If set to false, only the current user will have access.<br />

Keywords that can be used to search for the .msi file on the target computer.<br />

This information is displayed on the Summary page of the Properties dialog box<br />

of the msi package.<br />

The locale used for string resources <strong>and</strong> registry settings. This affects the user<br />

interface of the installer.<br />

Name of the company that manufactured the application or component. Typically,<br />

this is the same information as specified in the Author property. This information<br />

is displayed on the Summary page of the Properties dialog box of the msi<br />

package as well as the Publisher field of the SupportInfo page in the Add/Remove<br />

dialog box. It is used as part of the default installation path of the application.<br />

The URL for a web site that relates to the application or component<br />

being installed.<br />

A comm<strong>and</strong> that is executed after the build ends.<br />

A comm<strong>and</strong> that is executed before the build begins.<br />

A string GUID that is unique to this application or component. Windows Installer<br />

uses this property to identify the application for subsequent upgrades or installs.<br />

A name that describes the application. Used as the description of an application<br />

in the Add/Remove dialog box as well as part of the default install path:<br />

C:\Program Files\Manufacturer\ProductName.<br />

Boolean value that, if set to true, will check for a previous version of the<br />

application. If yes, the uninstall function of the previous version is called before<br />

installation continues. This property uses ProductCode <strong>and</strong> UpgradeCode<br />

to determine if uninstall should occur. UpgradeCode should be the same;<br />

ProductCode should be different.<br />

When the PostBuildEvent should be run. Options are On successful build<br />

or Always.<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!