本文介绍了如何验证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 验证OSC是否已安装通过编写安装程序自定义操作来测试是否存在以下限定组件ID: {A3B82DA3-8AD9-4935-AEA8-54B754459483} 限定组件ID是一个GUID,它提供单级间接方法,类似于指针。有关Windows Installer的详细信息,请参阅 Windows Installer文档的路线图。   如果有人可以在C#中提供示例,那将会很棒。   问候, Petrov 解决方案 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.aspxVerify 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, seeRoadmap to Windows Installer Documentation . It will be awesome if someone can provide an example in C#. Regards,Petrov 解决方案 这篇关于如何验证OSC是否安装在Outlook 2007和Outlook 2003上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-27 13:01