AddInPostDeploymentActionArgs.InstallationStatus 属性

获取正在执行的外接程序安装的类型。

命名空间:  Microsoft.VisualStudio.Tools.Applications.Deployment
程序集:  Microsoft.VisualStudio.Tools.Applications.Runtime(在 Microsoft.VisualStudio.Tools.Applications.Runtime.dll 中)

语法

声明
Public ReadOnly Property InstallationStatus As AddInInstallationStatus
public AddInInstallationStatus InstallationStatus { get; }

属性值

类型:Microsoft.VisualStudio.Tools.Applications.Deployment.AddInInstallationStatus
正在执行的外接程序安装的类型。

备注

下表显示了 InstallationStatus 的枚举值。

成员

说明

InitialInstall

第一次安装外接程序。会检索应用程序和部署清单,并调用 VerifyAddInPermissions 来分析清单,然后分析签名。

如果使用“不受信任的发行者”列表中的证书对部署清单进行了签名,则安装结束。对于所有其他情况,VerifyAddInTrust 检查信任证据以了解正确权限级别。

Offline

已计划运行外接程序来检查更新,但无法访问更新位置。

RunFromCache

外接程序不需要更新,将从 ClickOnce 缓存中运行。

RunFromFolder

外接程序从包含部署清单的文件夹中运行,因为主机应用程序已将 RunFromFolder 属性设置为 true。如果要测试或运行外接程序而不安装它,这很有用。此外,外接程序也未安装到 ClickOnce 高速缓存中。

Uninstall

正在卸载外接程序。

Update

正在更新外接程序。安装步骤与 InitialInstall 相同。

Rollback

正在卸载外接程序的当前版本,而且正在安装外接程序的以前版本。

.NET Framework 安全性

请参见

参考

AddInPostDeploymentActionArgs 类

Microsoft.VisualStudio.Tools.Applications.Deployment 命名空间