Re: Anomoly with ShellExecute

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 08/24/04


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
: 


Relevant Pages

  • Re: No sound...?
    ... The feature list is irrelevant, since what is required is an explanation ... I've read Apple feature lists and been happy at the thought of being ... I said `an installer' meaning `any installer'. ...
    (uk.comp.sys.mac)
  • Re: Anomoly with ShellExecute
    ... When a different and "new" user attempts to access a feature of office, ... There are plenty of pages in the MSDN KB on installer dialog "errors" at ... : Dim loaddir as string ... : vbNullString, vbNullString, 1) ...
    (microsoft.public.vb.general.discussion)
  • Re: How to remove Office 2000 prior to reinstall
    ... You may receive a "The feature you are trying to use is on a network resource ... Description of the Windows Installer CleanUp Utility ... Microsoft Newsgroups ...
    (microsoft.public.office.misc)
  • Re: PC antivirus software
    ... Trend micro pc-cillin for a few years, but it seems the 2008 version is not ... The -only- issue I had with it was their 'new feature' for web-page link ... special magic incantation to use when running the *installer* that doesn't ...
    (rec.outdoors.rv-travel)
  • Re: No sound...?
    ... feature lists are mostly lies and exaggerations. ... Indeed, I agree there, manuals now are generally pretty rubbish. ... I said `an installer' meaning `any installer'. ...
    (uk.comp.sys.mac)