如何恢复要宣传的已安装功能? [英] How to revert an installed feature to be advertised?

查看:35
本文介绍了如何恢复要宣传的已安装功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的产品中有一项功能,我希望通过指定的广告按需安装(即 当访问广告文件、快捷方式或 COM 类时,它会真正安装).安装此功能存在一些安全隐患,这就是为什么我希望仅在需要时才安装它.出于同样的原因,我还希望在不再需要该功能时将其删除.理想情况下,它会再次发布广告,以便在需要时可以重新激活.

是否有可能使用标准 MSI 技术将功能恢复到广告状态,而不是将其删除?

解决方案

您可以使用安装程序 API 函数MsiConfigureFeature".您可以在那里控制功能的状态.

MSDN - MsiConfigureFeature 功能

I have a feature in my product that I would like to be installed on demand via assigned advertising (i.e., it's installed for real when an advertised file, shortcut or COM class is accessed). There are some security implications associated with installing this feature, which is why I would like it to be only installed when it's required. For the same reason, I would also like the feature to be removed when it is no longer needed. Ideally, it would become advertised again, so that it could be re-activated if required.

Is it possible, using standard MSI technology, to revert a feature to the advertised state, rather than removing it?

解决方案

You can use the Installer API function "MsiConfigureFeature". There you can control the state of the Feature.

MSDN - MsiConfigureFeature Function

这篇关于如何恢复要宣传的已安装功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆