PowerPoint adding button removal

N

Nick

Hi there,

I'm trying to find out the correct procedure for removing a toolbar
button from powerpoint that has been created with an addin. Examples I have
seen remove the button on shutting down the adding and add it again the next
time it starts up, this causes the buttons saved location to get lost.
Would I be right in saying that I need to launch PowerPoint upon
uninstallation of the adding and remove the button then? Thanks loads in
advance for any help.
 
N

Nick

My theory was correct, using the powerpoint application object you can get a
reference to the toolbar button, remove it then quit upon uninstallation.

Nick.

Nick said:
"Adding" -> "Add-in", sorry! :-|
 
B

- B@rney

Several issues to address here:

1) Are you using Visual Studio's Shared Add-In project type?

If so, you can add a Setup Project and the .msi that gets built do the
installation and uninstallation for you.

2) Keeping the position of a button for furture use has been addressed by
David Thielen here:
http://thielen.typepad.com/programming/2005/06/saverestore_too.html

HTH

--
- B@rney
___________________________
http://www.sharepointdemo.biz/
http://www.sharepointdemo.biz/blogs/bjarne/


Nick said:
My theory was correct, using the powerpoint application object you can get a
reference to the toolbar button, remove it then quit upon uninstallation.

Nick.
 
N

Nick

Hi there,

Unfortunately the MSI does not handle removing the button, it simply
unregisters the COM object, nothing more. I've modified the code to launch
PPT and remove the button upon uninstallation and it works great now.

Cheers for your help.

Nick.

- B@rney said:
Several issues to address here:

1) Are you using Visual Studio's Shared Add-In project type?

If so, you can add a Setup Project and the .msi that gets built do the
installation and uninstallation for you.

2) Keeping the position of a button for furture use has been addressed by
David Thielen here:
http://thielen.typepad.com/programming/2005/06/saverestore_too.html

HTH
 

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