Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5065

Installing Hudson as a windows service on Vista 64 Bit

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      I tried installing hudson on my local desktop which has windows Vista 64 Bit.
      While trying to install as Windows Service.
      and get the following error
      Installing a service
      [.hudson] $ C:\Users\aparna_h\.hudson\hudson.exe install
      WMI.WmiException: AccessDenied
      at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
      at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
      at WMI.Win32ServicesProxy.Create(String , String , String , ServiceType , ErrorControl , StartMode , Boolean , String[] )
      at winsw.WrapperService.Run(String[] args)
      at winsw.WrapperService.Main(String[] args)

      I tried running as an administrator but it still gives the same error.
      I have a .net framework 3 which comes as a default with Vista.

      Can you please help me with the resolution

          [JENKINS-5065] Installing Hudson as a windows service on Vista 64 Bit

          apal created issue -

          jotimail added a comment -

          If this is similar to what happened in Vista you might try to "Run as Administrator" from the right click menu. Windows knows a difference between the "Administrator" user and "Administrator Role".

          Wish you luck.

          ...one more reason for UNIX

          jotimail added a comment - If this is similar to what happened in Vista you might try to "Run as Administrator" from the right click menu. Windows knows a difference between the "Administrator" user and "Administrator Role". Wish you luck. ...one more reason for UNIX

          evgeny_goldin added a comment -

          Had exactly the same issue with installing Hudson slave on 64 bit Windows7.
          The following helped (like previous user suggested) - created a batch file with "c:\hudson-slave\hudson-slave.exe install" line,
          right-click it => Run as administrator

          evgeny_goldin added a comment - Had exactly the same issue with installing Hudson slave on 64 bit Windows7. The following helped (like previous user suggested) - created a batch file with "c:\hudson-slave\hudson-slave.exe install" line, right-click it => Run as administrator
          Alan Harder made changes -
          Component/s New: core [ 15593 ]

          I suppose this happens in an environment that has UAC enabled?

          Kohsuke Kawaguchi added a comment - I suppose this happens in an environment that has UAC enabled?
          pemungkah made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          pemungkah made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

          pjdarton added a comment -

          Yup, this is just UAC in action.
          The workaround is to find "CMD" on the start-menu, right-click on it and "Run as administrator" and /then/ to run the "hudson-slave.exe install" command.

          Or disable UAC (temporarily).

          Note that I /believe/ that any program called "setup.exe" would get run as administrator automatically (with UAC prompt if UAC is enabled), so maybe the longer-term answer is to extract the "install" functionality into its own .exe called "setup.exe".

          pjdarton added a comment - Yup, this is just UAC in action. The workaround is to find "CMD" on the start-menu, right-click on it and "Run as administrator" and /then/ to run the "hudson-slave.exe install" command. Or disable UAC (temporarily). Note that I /believe/ that any program called "setup.exe" would get run as administrator automatically (with UAC prompt if UAC is enabled), so maybe the longer-term answer is to extract the "install" functionality into its own .exe called "setup.exe".
          pjdarton made changes -
          Link New: This issue is related to JENKINS-4825 [ JENKINS-4825 ]
          pjdarton made changes -
          Link New: This issue is related to JENKINS-3316 [ JENKINS-3316 ]

            kohsuke Kohsuke Kawaguchi
            apal apal
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: