weixin_39807896
weixin_39807896
2020-12-26 03:31

Support restricted environments - How to do this if the VSTO redistributable is not found on the machine?

A pre-requisite for a VSTO addin is the VSTO runtime which requires admin level to install - how do we get around this to keep the addin "Support restricted environments"

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

该提问来源于开源项目:MicrosoftDocs/visualstudio-docs

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39973271 weixin_39973271 4月前

    -Hart FYI

    点赞 评论 复制链接分享
  • weixin_39897758 weixin_39897758 4月前

    the VSTO runtime will also be installed with Office. If Office is already installed on the machine the runtime should be available.

    点赞 评论 复制链接分享
  • weixin_39807896 weixin_39807896 4月前

    -Hart

    Thanks for the response.

    Our installer checks the following registry key to get the version of VSTO and if it is not there or it is there but a lower version than the runtime we need, we prompt to install it for our users:

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VSTO Runtime Setup\v4R

    We find that even if Office (2010/2013/2016) is installed, this registry key is not there.

    Is there a different way we should be detecting the VSTO runtime?

    点赞 评论 复制链接分享
  • weixin_39897758 weixin_39897758 4月前

    depending on how VSTO runtime is installed you may find the version under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VSTO Runtime Setup\v4

    This Stackflow discussion has some good information: https://stackoverflow.com/questions/2799941/how-to-determine-if-vsto-2010-runtime-is-installed

    点赞 评论 复制链接分享

相关推荐