I have been searching for a way to retrieve the full path for Outlook.exe and have managed to do it like this:
On my current computer (Windows 7 64bit) it works just fine. On our Windows Server (also 64bit) it only works when it is building to "any CPU". When I change it to x86 it will return nothingCode:Public Function GetOutlookPath() As String Return My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE", "Path", Nothing) End Function
Our application needs to be run built as x86 on our 64bit computers to work correctly
Does anybody have any idea on how to solve this problem?


LinkBack URL
About LinkBacks




Reply With Quote


Bookmarks