Getting install location of add in

C

cramhead

I'm hoping you brilliant people can me me out yet again.

My Outlook addin has images that it uses in a form. The user has the
ability to install any where they choose. How can I get the location
of the images to have my addin display them.

Thanks
marc
 
K

Ken Slovak - [MVP - Outlook]

..NET code, right?

Something like this:

private string myPath = Application.StartupPath();

In general you should use a resource in your project instead of storing
things externally in the installation folder. That way they are less prone
to corruption, the user deleting or changing things or various other
mishaps.

That goes double for any data or file you want to write to, the user may not
have permissions to write there especially under Vista. You should use a
path like c:\documents and settings\<logon>\local settings\application
data\my application\ to store any data your application writes out. You can
get that path from the registry.
 

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