Restrict Add-in Unload

  • Thread starter Thread starter Stee
  • Start date Start date
S

Stee

Hi,

I want to restrict the user from unloading my add-in. I am
developing an add-in VC++. How do I do that?

I want to do this in PowerPoint 2000/2002

Thanks,
Stee
 
What do you mean by restricting? You can always unregister or unload any
add-in.

Regards
Shyam Pillai
 
Add-ins (macros) are a security risk. As you know, they can do a lot of
things, some of which the user may not want to allow them. It is always the
end user who should be able to select what level of risk they will accept.
If a user chooses not to allow add-ins (security set to high) then yours
will not be loaded or run.

But ...
Why not place a new first slide (glaring red with bright yellow text) that
says, "Please change security settings to run this presentation." Then do a
capture routine to catch the Show Open event and use it to delete this
slide. The do another to capture the Show Close event and use that to
rebuilds the slide.

This way the user who has the macros activated will not see the message and
those that do not, will.

B
===============
Please spend a few minutes checking vestprog2@
out www.pptfaq.com This link will yahoo.
answer most of our questions, before com
you think to ask them.

Change org to com to defuse anti-spam,
ant-virus, anti-nuisance misdirection.
..
..
 
Just as a bit more detail, you would also want to make the added slide no
advance on click or time.

If you really wanted to get fancy, you could also store the
hidden/non-hidden property in a slide tag and then hide all the slides
except yours.

B
 
The addin can't prevent itself from being unloaded, so far as I know.

If you create an install routine that registers the addin in

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\PowerPoint\AddIns

(change the 10.0 to reflect the correct version number you need)

then the addin won't appear in the Tools, Addins dialog box, so the user
can't manually uninstall it.

As Shyam's mentioned, the user can still remove the addin via the registry.



--
Posted to news://msnews.microsoft.com
Steve Rindsberg, PPT MVP
PowerPoint FAQ - www.pptfaq.com
PPTools - www.pptools.com
===============================
 
Yeah, I think atleast this will help me out. I am writing
a package with collection of add-ins in it. I generally do
not want the user to unload the add-in manually. I hope
your suggestion will help me avoiding that. I dont mind if
he still goes and make changes in registry and unload them.

Thanks a lot.
 
Back
Top