如何验证OSC是否安装在Outlook 2007和Outlook 2003上 [英] How to verify whether the OSC is installed on Outlook 2007 and Outlook 2003

查看:93
本文介绍了如何验证OSC是否安装在Outlook 2007和Outlook 2003上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


 


我正在阅读OSC文档,我无法验证OSC是否已安装在Outlook 2007/2003上。我已经尝试了几次使用已安装的OSC版本,但我仍然无法成功。 


 


p.s。我尝试过这种方法,但显然有错误


  [DllImport(" msi.dll",CharSet = CharSet.Auto)]
$
        public static extern UInt32 MsiGetComponentPath(string szProduct,string szComponent,[Out] StringBuilder lpPathBuf,ref UInt32 pcchBuf);


 


ps2 this在OSC文档中解释了步骤,但我对如何完成它并不十分有信心。 - > http://msdn.microsoft.com/en-us/library/ff759430.aspx



  1. 验证OSC是否已安装通过编写安装程序自定义操作来测试是否存在以下限定组件ID:


    {A3B82DA3-8AD9-4935-AEA8-54B754459483}


    限定组件ID是一个GUID,它提供单级间接方法,类似于指针。有关Windows Installer的详细信息,请参阅
    Windows Installer文档的路线图


 


如果有人可以在C#中提供示例,那将会很棒。


 


问候,


Petrov

解决方案

你好,


在我看来,最简单的方法是使用先决条件引导程序。


< a href ="http://msdn.microsoft.com/en-us/library/ee335701.aspx"> http://msdn.microsoft.com/en-us/library/ee335701.aspx


您可能只需要包含一个简单的命令行exe来返回已安装的Office版本,以便在安装检查中包含该版本。


&NBSP;


Hi,

 

I am reading the OSC documentation and I am not able to verify, whether OSC is installed on Outlook 2007/2003. I've tried a couple of times to get the installed version of OSC, using but I still cannot succeed. 

 

p.s. I've tried with this method, but obviously there are errors

  [DllImport("msi.dll", CharSet = CharSet.Auto)]
        public static extern UInt32 MsiGetComponentPath(string szProduct, string szComponent, [Out] StringBuilder lpPathBuf, ref UInt32 pcchBuf);

 

p.s.2 This step is explained in the OSC documentation, but I am not very confident about how to complete it. -> http://msdn.microsoft.com/en-us/library/ff759430.aspx

  1. Verify whether the OSC is installed by writing an installer custom action to test for the existence of the following qualified component ID:

    {A3B82DA3-8AD9-4935-AEA8-54B754459483}

    The qualified component ID is a GUID that provides a method of single-level indirection, similar to a pointer. For more information about Windows Installer, see Roadmap to Windows Installer Documentation .

 

It will be awesome if someone can provide an example in C#.

 

Regards,

Petrov

解决方案

Hi T,

The easiest way to do this in my opinion is with the prerequisites bootstrapper.

http://msdn.microsoft.com/en-us/library/ee335701.aspx

You'd just probably need to include a simple command-line exe to return the version of Office that's installed so you can include that in your install checks.

 


这篇关于如何验证OSC是否安装在Outlook 2007和Outlook 2003上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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