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

Installing Hudson as a windows service on Vista 64 Bit

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            jotimail 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

            Show
            jotimail 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
            Hide
            evgeny_goldin 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

            Show
            evgeny_goldin 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
            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

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

            Show
            kohsuke Kohsuke Kawaguchi added a comment - I suppose this happens in an environment that has UAC enabled?
            Hide
            pjdarton 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".

            Show
            pjdarton 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".
            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

            I believe this was fixed back in 1.387.

            Show
            kohsuke Kohsuke Kawaguchi added a comment - I believe this was fixed back in 1.387.
            Hide
            thebigr 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?

            Show
            thebigr 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?
            Hide
            thebigr Richard Brandt added a comment -

            Please help me on this???

            Show
            thebigr Richard Brandt added a comment - Please help me on this???
            Hide
            markewaite 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
            Show
            markewaite 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: