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

Reboot dialog displayed during MSI installation when upgrading

      Upgrading Jenkins using an MSI package while a previous version of Jenkins is running will open a dialog saying "... a reboot will be required to complete the setup." To reproduce, double-click jenkins-1.587.msi and complete the installation, then double-click jenkins-1.589.msi to upgrade.

      I do not believe a reboot should actually be necessary. The dialog is not displayed if the user manually stops the service before running the newer MSI, but that workaround is not user-friendly. If the MSI installer would stop the service early on during the upgrade, I suspect the dialog would not be shown.

      I'm not sure if the ServiceControl element defined in https://github.com/jenkinsci/jenkins/blob/master/msi/jenkins.wxs is supposed to stop the service during upgrades. I also don't know if this is a problem with the WiX definition or a winsw issue. Another app I know of also uses winsw and WiX and has the same issue.

          [JENKINS-25528] Reboot dialog displayed during MSI installation when upgrading

          Michael Skogberg created issue -

          I discovered that if I make the MSI installation non-interactive by removing all UI elements from the .wxs file, the installation will not prompt for a reboot and will stop the previously running service as expected.

          Michael Skogberg added a comment - I discovered that if I make the MSI installation non-interactive by removing all UI elements from the .wxs file, the installation will not prompt for a reboot and will stop the previously running service as expected.
          Daniel Beck made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: core [ 15593 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 159499 ] New: JNJira + In-Review [ 180002 ]
          Alex Earl made changes -
          Assignee New: Alex Earl [ slide_o_mix ]

          Alex Earl added a comment -

          We're probably going to disable upgrades using the installer. The preferred method is to use the internal upgrade utility to upgrade the WAR.

          Alex Earl added a comment - We're probably going to disable upgrades using the installer. The preferred method is to use the internal upgrade utility to upgrade the WAR.

          Alex Earl added a comment -

          Will be disabling upgrade using the MSI

          Alex Earl added a comment - Will be disabling upgrade using the MSI
          Alex Earl made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            slide_o_mix Alex Earl
            malliina Michael Skogberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: