jeudi 29 mai 2014

c# - détecter Outlook installé et de charger dynamiquement INterop.Outlook - Stack Overflow


I have a Windows Forms application in VS2010. It has a reference to Interop.Outlook (2003). Then, I have reinstalled Windows XP and VS2010, but not install Outlook.


Now, the project not compiles.


I think this, my application will not work if Outlook not installed in machine that my program executes on.


I need to know if I detect Outlook installed, and load dynamically Interop.Outlook.dll (for using the Outlook PIA or Embedded Interop types in .NET 4).


If the machine has Outlook (2003, 2007, 2010, perhaps need code to detect version and do compatibility of Outlook versions) installed, the application works fine with functionally Outlook.


If the machine hasn't Outlook installed, the application works fine without functionally Outlook.


Any sample source code or goog patterns and practices about it??




check the Installer APIs to detect the install state of Outlook or use one of the method described here.



I have a Windows Forms application in VS2010. It has a reference to Interop.Outlook (2003). Then, I have reinstalled Windows XP and VS2010, but not install Outlook.


Now, the project not compiles.


I think this, my application will not work if Outlook not installed in machine that my program executes on.


I need to know if I detect Outlook installed, and load dynamically Interop.Outlook.dll (for using the Outlook PIA or Embedded Interop types in .NET 4).


If the machine has Outlook (2003, 2007, 2010, perhaps need code to detect version and do compatibility of Outlook versions) installed, the application works fine with functionally Outlook.


If the machine hasn't Outlook installed, the application works fine without functionally Outlook.


Any sample source code or goog patterns and practices about it??



check the Installer APIs to detect the install state of Outlook or use one of the method described here.


0 commentaires:

Enregistrer un commentaire