Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: How to find Directory in which shared add-in was installed

Geek News

How to find Directory in which shared add-in was installed
w2000learner <keys.ricjai[ at ]gmail.com> 5/31/2007 2:33:26 PM
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

Re: How to find Directory in which shared add-in was installed
pascal.groulx[ at ]analystik.ca 5/31/2007 8:11:08 PM
On May 31, 10:33 am, w2000learner <keys.ric...[ at ]gmail.com> wrote:
[Quoted Text]
> 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);

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net