Skip to content

[JENKINS-71643] Windows silent install behaves different than graphical install #703

@jenkins-infra-bot

Description

@jenkins-infra-bot

hi,

I'm trying to install Jenkins on Windows from commandline for a different
user. My usecase is, that Jenkins should be executed as a normal user (Service account) and i want to use a different user (Administrator) to do the installation for security reasons.

In the attached log file the admin is called 'Developer' and the normal user is called 'DeveloperNonadmin'

Expectation: The following command works when executed from an elevated shell:
msiexec /i D:\path\to\jenkins.msi /quiet /lv! D:\path\to\logfile.log SERVICE_USERNAME= SERVICE_PASSWORD= INSTALLDIR=D:\Jenkins PORT=8080

Actual behaviour:
The command only works when i have installed Jenkins for the service account by manually executing the GUI version of the installer. So my workaround is that i install Jenkins via the GUI installer, then uninstall it, then run my script that executes this command and does the customization afterwards.

Conclusion:
The graphical installer does soemthing that the silent installation does not do.

 

PS: i've chosen _unsorted as components because i don't know which component this actually is


Originally reported by johnnydoesstuff, imported from: Windows silent install behaves different than graphical install
  • assignee: slide_o_mix
  • status: Open
  • priority: Minor
  • component(s): packaging
  • label(s): windows
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-11-26
Raw content of original issue

hi,

I'm trying to install Jenkins on Windows from commandline for a different user. My usecase is, that Jenkins should be executed as a normal user (Service account) and i want to use a different user (Administrator) to do the installation for security reasons.

In the attached log file the admin is called 'Developer' and the normal user is called 'DeveloperNonadmin'

Expectation: The following command works when executed from an elevated shell: msiexec /i D:\path\to\jenkins.msi /quiet /lv! D:\path\to\logfile.log SERVICE_USERNAME=<username> SERVICE_PASSWORD=<password> INSTALLDIR=D:\Jenkins PORT=8080

Actual behaviour: The command only works when i have installed Jenkins for the service account by manually executing the GUI version of the installer. So my workaround is that i install Jenkins via the GUI installer, then uninstall it, then run my script that executes this command and does the customization afterwards.

Conclusion: The graphical installer does soemthing that the silent installation does not do.

 

PS: i've chosen _unsorted as components because i don't know which component this actually is

environment
- Windows 10 VM (Hyper-V VM)<br/>
- Jenkins 2.401.2
1 attachment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions