Compartilhar via


DeployManifest.Install Property

Gets or sets a value indicating whether the application is an installed application or an online-only application.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property Install As Boolean
public bool Install { get; set; }
public:
property bool Install {
    bool get ();
    void set (bool value);
}
member Install : bool with get, set
function get Install () : boolean 
function set Install (value : boolean)

Property Value

Type: System.Boolean
true if the application is an installed application; otherwise, false.

Remarks

If this property is set to true, the application will be installed on the user's Start menu, and it can be removed by using Add or Remove Programs in Control Panel. The default is true. If this property is set to false, the application is intended for online use from a Web page and is available online only.

Note

For WPF Web Browser Applications, you must set the HostInBrowser property to true, and you must also set Install to false. If this condition is not met, you will receive MSBuild Error MSB3116.

.NET Framework Security

See Also

Reference

DeployManifest Class

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace

HostInBrowser

Other Resources

MSBuild Error MSB3116