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

W

w2000learner

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
 
P

pascal.groulx

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top