Fixes MSI Parameters Port and InstallDir #287
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR aims to fix the parameters that are currently ignored in the MSI installer,
PORT
andINSTALLDIR
.As it was, it seems that they were being stored and then ignored in favour of a different property (
PORTNUMBER
andJENKINSDIR
respectively).Searching through the file for references to
INSTALLDIR
andPORT
, you find there are no references where these are used - including where they are stored in the registry for later retrieval (:214).An alternative would be to adjust the property names to match the internal use, but that could in theory surprise someone (though it's unlikely anyone has been successfully using these). Additionally, I was unsure where (if anywhere) these were documented.
Fixes #286
Testing
msiexec /qn /norestart /l*v "~\Desktop\latestAttempt.log" /i "~\Desktop\jenkins-2.331.msi" INSTALLDIR=C:\ Jenkins PORT=9080 JAVA_HOME=``"$JavaHome``" JENKINS_ROOT=$env:ProgramData\Jenkins\
HKLM:\SOFTWARE\Jenkins\InstalledProducts\Jenkins
matched the expected valuesChecklist