Skip to main content
February 27, 2007
Question

Cannot open .CHM file when Application is running in Service Mode.

  • February 27, 2007
  • 2 replies
  • 423 views
Hello All,

I have a compiled HTML help file (.CHM) that i am trying to integrate with my VB 6.0 project.
I am using RH_ShowHelp function (which uses htmlhelp()) to launch the Help File.
All is fine when i run my program in Application Mode.
But, when i install my app in Service Mode, (running under SYSTEM account) - it does not work.

I have tried to use ShellExecute API as well, and that does not work either.


Does anyone have any suggestions on how to get this working from services mode?
Is there some other function call or parameters needed...

Any input is appreciated.

Thanks
G

This topic has been closed for replies.

2 replies

Inspiring
February 28, 2007
Software executed as a service is usually running as a background task and
is usually executed not by the current logged-in user but by a special
default "user" named "System". There are a number of advantages to having
software run as a service... it can run continuously no matter who's logged
into the system or even if the system is locked.

Mike
"Captiv8r" <webforumsuser@macromedia.com> wrote in message
news:es2ku9$5u3$1@forums.macromedia.com...
> Hi G and welcome to our community
>
> Ummm, really showing my ignorance here. What, ummm, exactly IS this
"SYSTEM"
> account you are talking about? Is this a Vista thing or what?
>
> Cheers... Rick (Who proudly purchases "For Dummies" books!)
>


Captiv8r
Legend
February 28, 2007
Hi G and welcome to our community

Ummm, really showing my ignorance here. What, ummm, exactly IS this "SYSTEM" account you are talking about? Is this a Vista thing or what?

Cheers... Rick (Who proudly purchases "For Dummies" books!)
March 30, 2007
Hello Rick, & Mike -

Sorry for the late response.

Yes, the program can be run both in Application mode (where all is fine), and can also be installed in Services Mode (Control Panel - Administrative Tools - Services). Now, when a program is running as a service, under the Local System Account ("SYSTEM") - the Help files (.CHM) do not work. On the other hand, when in Application mode, it usually runs under the User account that is currently logged in (ex: Administrator) - and that works fine.

Has anyone encountered this problem before? And if yes, do u know how to call/open the CHM file?

Thanks
G