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

          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

          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?

          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".

          I believe this was fixed back in 1.387.

          Kohsuke Kawaguchi added a comment - I believe this was fixed back in 1.387.

          I am running 1.452 on windows server 2008 service pack 2. I do have an admin account and I am still getting this error. I have tried all the work-a-rounds, any other ideas?

          Richard Brandt added a comment - I am running 1.452 on windows server 2008 service pack 2. I do have an admin account and I am still getting this error. I have tried all the work-a-rounds, any other ideas?

          Please help me on this???

          Richard Brandt added a comment - Please help me on this???

          Mark Waite added a comment -

          Resolving this bug because

          • Windows Vista is no longer a relevant operating system
          • Windows 7 installs and runs as a service with 1.532.2 (and earlier)
          • Other Windows operating systems are expected to work just as reliably

          Mark Waite added a comment - Resolving this bug because Windows Vista is no longer a relevant operating system Windows 7 installs and runs as a service with 1.532.2 (and earlier) Other Windows operating systems are expected to work just as reliably

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

              Created:
              Updated:
              Resolved: