Ken Dibble wrote on 2010-06-09:
> This is a continuation of my "Word Automation: OLE exception error
> 5981 in Windows 7" thread.
<snip>
>
> However, even with the "User Account Control: Behavior of the
> elevation prompt for standard users" item set to "Prompt for
> credentials", when the Word 97 automation code is encountered, there is no
prompt.
> Instead, the object reference to the "Word.Application" object is
> successfully created, and then I get "could not open macro storage" on
> .documents.Add. What is notable about this was, before I disabled
> prompts and confirmations for administrators, I would get a different
> error, "operation requires elevation", on the
> CREATEOBJECT("Word.Application") call when running in my Domain
> Administrator account.
>
> Some digging in Microsoft publications on UAC brought up an article
> that suggested that if I could find a Class folder for the Word
> automation object in the registry, I could give it a new key called
> "Elevation" with a DWORD variable called "Enabled" set to 1. However,
> I couldn't find any appropriate Class in the registry for Word.
>
> So. Does anyone have any suggestions on how I can force Windows 7 to
> let a restricted user a VFP 9 SP 1 .exe that contains Word 97
> automation code?
>
> Thanks very much.
>
> Ken Dibble
> www.stic-cil.org
>
>
Ken,
Running as a Domain Administrator removes UAC on Vista, I believe it is the
same on Windows 7. Even Internet Explorer will run in the administrative
privilege with this user.
You found the Word.Application in the HKCR/Classes, it has a CLSID entry. Go
to this in HKCR/Classes/CLSID. I believe this is where you need to add that
Elevation key.
HKCR = HKEY_CLASSES_ROOT
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/000601cb080d$6da81480$48f83d...@com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.