How to run addin as a "Invoker"

D

Dhananjay

I have created my addin in VSTO / Office 2007 / Vb 2005. My addin's
one functionality is to insert records in one mdb file.
My addin works under XP machine perfectly. Now, if I run my addin
under Windows Vista, & if my addin tries to insert the records

in the mdb file, it is not allowing me to do so. I checked the
permissions to mdb file by going to properties -> security, I can

see that "Admin-PC\Administrators" is having full control on the file,
but "Admin-PC\Users" is having just read & execute

permission. Those permissions are inherited from the drive's
permission. If I remove inherited permissions & fourcefully gave the

permissions "Full Control" to the mdb file, my addin's functionality
(insertion of records to mdb file) works fine.
Hence my first guess is that my addin is not working as a "Invoker"
rights & hence my addin is getting the permission of Users

rights & not the Administrators rights. So how can I use my addin as a
"Invoker".
Another problem I faced with the similar situation is that, my addin
tries to create the key under "CLASSES_ROOT", but it failed.

Though I can create the key manually under "CLASSES_ROOT", my addin
can not write the keys under "CLASSES_ROOT". Hence I wrote my

"Key creation" part in one executable & I execute that exe at the time
of installtion. It worked perfectly! i.e. my installer is

getting the permission as a "Invoker". I think if I can run my addin
as a "Invoker", then may be I will get success.
So please can anybody tell me how can I run my addin as a "Invoker".
Thanks,
Dhananjay
 
G

Guest

What account are you logged in to Windows with that has access to the
database? This is the account the add-in will use to access any system
resources AFAIK.

Are you restricting access to the .mdb file? Can these users insert records
directly in Access without using the Add-In?

What key are you trying to write to CLASSES_ROOT?
 

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