PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins How to find Directory in which shared add-in was installed

Reply

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

 
Thread Tools Rate Thread
Old 31-05-2007, 03:33 PM   #1
w2000learner
Guest
 
Posts: n/a
Default How to find Directory in which shared add-in was installed


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

  Reply With Quote
Old 31-05-2007, 09:11 PM   #2
pascal.groulx@analystik.ca
Guest
 
Posts: n/a
Default Re: How to find Directory in which shared add-in was installed

On May 31, 10:33 am, w2000learner <keys.ric...@gmail.com> wrote:
> 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


MessageBox.Show(System.AppDomain.CurrentDomain.BaseDirectory);
MessageBox.Show(System.Reflection.Assembly.GetExecutingAssembly().Location);

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off