3 Replies Latest reply on Mar 30, 2007 2:25 PM by tlgautam

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

    tlgautam
      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

        • 1. Re: Cannot open .CHM file when Application is running in Service Mode.
          Captiv8r Adobe Community Professional & MVP
          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!)
          • 2. Re: Cannot open .CHM file when Application is running in Service Mode.
            Level 7
            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!)
            >


            • 3. Re: Cannot open .CHM file when Application is running in Service Mode.
              tlgautam Level 1
              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