Re: Anomoly with ShellExecute
From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 08/24/04
- Next message: Randy Birch: "Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error""
- Previous message: Ken Halter: "Re: Somebody know how can disable Crtl+X, Crtl+C, Crtl+V, Crtl+Z"
- In reply to: Rusty: "Anomoly with ShellExecute"
- Next in thread: Rusty: "RE: Anomoly with ShellExecute"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Aug 2004 17:43:17 -0400
>From what I've read - and I hope I'm paraphrasing this correctly - when
office is installed for a particular user it does its thing and is ready to
use. When a different and "new" user attempts to access a feature of office,
the installer runs to establish the registry keys for that user.
For some reason - and I have no idea why - it appears that your app -
running as a service and therefore as a different user - is causing the
office install to fire to set up office for this service "user".
There are plenty of pages in the MSDN KB on installer dialog "errors" at
search.microsoft.com or msdn.microsoft.com's msdn search.
-- Randy Birch MVP Visual Basic http://vbnet.mvps.org/ Please respond only to the newsgroups so all can benefit. "Rusty" <Rusty@discussions.microsoft.com> wrote in message news:5CBD2A02-405A-4341-99E2-888F7CA88E1D@microsoft.com... : Hope you can help... I'm seeing something strange happen on Win2k with Office : 2K SR-1, and using ShellExecute. When my program (running as a service), : calls another program (which is mine) with ShellExecute, up pops the : installer for MS Office 2k SR-1 Pro, saying a feature I'm trying to use is : unavailable?? My program has nothing to do with Office 2k, nor is it called : anything close (see code fragment below), nor does my service do anything : even remotely associated with Office. This doesn't happen on boxes with XP : with Office XP?? Anyone ever see this or have any ideas? : : My code fragment: : : Dim loaddir as string : Dim Ret As Long : loaddir = "c:\Program Files\cpfiles" : Ret = ShellExecute(hwnd, "Open", loaddir & "\cpupdate.exe", : vbNullString, vbNullString, 1) : : Thanks in advance for any information, : Rusty :
- Next message: Randy Birch: "Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error""
- Previous message: Ken Halter: "Re: Somebody know how can disable Crtl+X, Crtl+C, Crtl+V, Crtl+Z"
- In reply to: Rusty: "Anomoly with ShellExecute"
- Next in thread: Rusty: "RE: Anomoly with ShellExecute"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|