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

  • Thread starter Thread starter w2000learner
  • Start date Start date
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
 
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);
 
Back
Top