A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to run addin as a "Invoker"



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 1st 07, 11:08 AM posted to microsoft.public.outlook.program_vba
Dhananjay
external usenet poster
 
Posts: 33
Default How to run addin as a "Invoker"

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

Ads
  #2  
Old November 1st 07, 06:58 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default How to run addin as a "Invoker"

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?

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Dhananjay" wrote:

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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Archive "Sent Items" shows "From" not "To" bugcrash Outlook - Installation 1 August 30th 07 04:54 PM
MOSA addin gives error "Your modem doesn't support PDU format" Shann Add-ins for Outlook 0 April 24th 07 08:56 AM
Outlook addin - toolbar in "New Message" Window Naveed Mughal Add-ins for Outlook 1 December 11th 06 07:54 AM
Include "Telecommuting" or "Teleworking" as a "Show time as" statu Gordon Greene Outlook - Calandaring 0 July 31st 06 04:37 PM
Cannot "Open" "Import/Export' or use "Data File Management" Ed Isenberg Outlook - Installation 3 July 16th 06 01:31 AM


All times are GMT +1. The time now is 09:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.