Installing/Upgrading Jenkins on windows 10 x64 machine


I am trying to install and upgrade Jenking on Windows 10 x64 VM.
When I am installing/upgrading in GUI its working fine. But when I try to run this is command prompt silently its getting stuck at start service(I have required permission on machine).

Command line I am trying is
C:\Users\Admin\Downloads\jenkins.msi ALLUSERS=1 ADDLOCAL=StartService,UninstallService,Complete,FirewallException INSTALLDIR=“c:\temp\t 1” Port=8080 JAVA_HOME=“C:\Program Files\Zulu\zulu-21\” /qb

Can anyone help me with this?

Jave version- Azul JDK 21.32.17
Old Jenkins version-2.255.4261
Latest Jenkins-2.255.4403

Hello and welcome to this community, @metadata. :wave:

The command you’re using seems to be correct (at least for my Linux-user eyes :person_shrugging:) for a silent installation of Jenkins on Windows.
I’ve never tried it, I do prefer Docker. :person_shrugging:

There could be a few reasons why the service is not starting nonetheless:

  1. Make sure that the JAVA_HOME path is correct and that it points to the correct location of your Java installation. Also, make sure that the path does not contain any spaces (:roll_eyes:). If it does, you might need to use the short path name (8.3 filename) for JAVA_HOME.
  2. Check that the port 8080 is available and not being used by another service.
  3. The user that the Jenkins service runs under needs to have the correct permissions to start services. If you’re running the command as a user without these permissions, the service might not start.
  4. Check that your Windows Firewall settings are not blocking Jenkins.
  5. Check the Jenkins log files for any error messages. The log files are typically located in the %JENKINS_HOME%/logs directory.

If you’re still having issues, you might want to try installing Jenkins manually to see if you get any error messages. You can also try running the command without the /qb switch to see if you get any error messages.

C:\Users\Admin\Downloads\jenkins.msi ALLUSERS=1 ADDLOCAL=StartService,UninstallService,Complete,FirewallException INSTALLDIR="c:\temp\t 1" Port=8080 JAVA_HOME="C:\Progra~1\Zulu\zulu-21\" /qb