AddinPath

  • Thread starter Thread starter Hans Hofmann
  • Start date Start date
H

Hans Hofmann

Hi,

how to determine the (default) Path of Addins.
I do not find a registry key.
Any hints?

Thank you
HW
 
Hi Hans,

I believe the default is almost the same as the template path (substitute
\addins for \templates). That doesn't preclude someone changing it though.

Glenna
 
how to determine the (default) Path of Addins.
I do not find a registry key.
Any hints?

There isn't any as such because PowerPoint won't auto-load addins found in a
particular directory the way Word does.

What do you need to do once you have this info? Maybe there's some other way
...

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
There isn't any as such because PowerPoint won't auto-load addins found in a
particular directory the way Word does.

What do you need to do once you have this info? Maybe there's some other way

I want to save my favorit animations. So I want to place the file in
the same directory the addin located. Or writing an installer to save
the Addin to the default directory.

@Glenna
So I am afraid that I have the next problem. How to obtain the
template path?

Greeting HW
 
I want to save my favorit animations. So I want to place the file in
the same directory the addin located. Or writing an installer to save
the Addin to the default directory.

So this is with an addin you're writing yourself?
If so, you can install it wherever you like (or let the user choose where to
install it).

This will give you the full path to your addin:

Addins("YourAddinName").Fullname

You'll need to extract just the path portion:

Debug.Print Left$(.FullName, _
Len(.FullName) - Len("YourAddinName" & ".PPA"))
@Glenna
So I am afraid that I have the next problem. How to obtain the
template path?

Greeting HW

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
On Mon, 23 Aug 2004 16:46:47 EDT, Steve Rindsberg

8<---------------
This will give you the full path to your addin:

Addins("YourAddinName").Fullname

Jep, but this depends on the filename of addin. The filename must be
hardcoded and changing filename will fail this code...

is there realy no way to gather default directory of addins?


Gruß HW


WebSite Powerpoint interaktiv: www.lemitec.de/ppt
PowerPoint-Anwendertage im Oktober 2004 in Fulda:
http://www.ppt-user.de/ppt-at-2004/default.htm
Mail Reply: remove devnull :-(
 
On Mon, 23 Aug 2004 16:46:47 EDT, Steve Rindsberg

8<---------------

Jep, but this depends on the filename of addin. The filename must be
hardcoded and changing filename will fail this code...

How often will the filename change?
Declare a constant and set it to the name of the addin.
That's simple enough to maintain.

Save a file as an Addin. PowerPoint will try to save to its default addins
folder. But there's not much point.

Installing addin files there will have no effect. PowerPoint won't run them
automatically.

Gruß HW

WebSite Powerpoint interaktiv: www.lemitec.de/ppt
PowerPoint-Anwendertage im Oktober 2004 in Fulda:
http://www.ppt-user.de/ppt-at-2004/default.htm
Mail Reply: remove devnull :-(

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
On Mon, 23 Aug 2004 23:37:45 EDT, Steve Rindsberg

8<---------------
How often will the filename change?
Declare a constant and set it to the name of the addin.
That's simple enough to maintain.

But it's not foolproof :-)
OK, thank you for your help...

HW
 
But it's not foolproof :-)

No, Mother Nature can always evolve fools powerful enough to overcome our best
efforts. I'm living proof. ;-)
OK, thank you for your help...

HW

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top