Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / May 2007

Tip: Looking for answers? Try searching our database.

How to find Directory in which shared add-in was installed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
w2000learner - 31 May 2007 15:33 GMT
I have created a shared add-in for Microsoft Outlook. It adds a button
to the Outlook standard toolbar which when clicked opens up a windows
form and performs ceratin actions. The add-in is developed using
Microsoft Visual Basic.net using the Shared Add-in Wizard. It also
created a setup program (msi). When the setup is run, it asks for a
directory in which to install the dll.

What I want to do in my add-in code is to get the directory in which
the dll has been installed. I tried application.startuppath but that
gives me the directory from which outlook is running.

Please, can anyone tell me which command to use to get the directory
in which the dll exists.

Thank you,

kr
pascal.groulx@analystik.ca - 31 May 2007 21:11 GMT
> I have created a shared add-in for Microsoft Outlook. It adds a button
> to the Outlook standard toolbar which when clicked opens up a windows
[quoted text clipped - 13 lines]
>
> kr

MessageBox.Show(System.AppDomain.CurrentDomain.BaseDirectory);
MessageBox.Show(System.Reflection.Assembly.GetExecutingAssembly().Location);
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.