Accessing addin startuppath

A

Andy Stevens

Hi,

Can anyone provide a technique for accessing the startuppath of an addin
from within the connect class, for the purpose of accessing settings and
XM:L data?

Would I need to add a registry entry on install? Or is there an easier way?

Regards,

Andy
 
C

Cindy M -WordMVP-

Hi Andy,
Can anyone provide a technique for accessing the startuppath of an addin
from within the connect class, for the purpose of accessing settings and
XM:L data?

Would I need to add a registry entry on install? Or is there an easier way?
Which programming language are you using?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
A

Andy Stevens

Hi,

Thanks for your response.
I'm using VB.NET, and am implementing the COM Shim. Application.StartupPath
returns the Outlook startup path. I had hoped with the addin having its own
app domain it would return its own start up path. ie c:\Program
Files\***Company Name\***Addin Is there a simple mechanism or will I have
to set a registry entry in the msi installer?

Regards,

Andy
 
C

Cindy M -WordMVP-

Hi Andy,
I'm using VB.NET, and am implementing the COM Shim. Application.StartupPath
returns the Outlook startup path. I had hoped with the addin having its own
app domain it would return its own start up path. ie c:\Program
Files\***Company Name\***Addin Is there a simple mechanism or will I have
to set a registry entry in the msi installer?
You should be able to get this from the VB.NET side (i.e. don't address the
Outlook application, but the containing .NET application). Try, for example

System.Environment.CurrentDirectory.ToString()

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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