-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win,msi: mark INSTALLDIR property as secure #8795
win,msi: mark INSTALLDIR property as secure #8795
Conversation
Allows INSTALLDIR to be passed to the server MSIExec process during installation. Fixes: nodejs#6057
LGTM - this change sounds reasonable. For those who want a reference http://wixtoolset.org/documentation/manual/v3/xsd/wix/property.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@nodejs/build ... does this LGTY? |
@jasnell sorry, I left this one too long. I take the reviews above as enough to move forward here, I'll land this early next week if there are no objections (or feel free to if you want to land). Thanks for the ping! |
Landed in 4896f0f |
Allows INSTALLDIR to be passed to the server MSIExec process during installation. PR-URL: #8795 Fixes: #6057 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Allows INSTALLDIR to be passed to the server MSIExec process during installation. PR-URL: #8795 Fixes: #6057 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Allows INSTALLDIR to be passed to the server MSIExec process during installation. PR-URL: #8795 Fixes: #6057 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Allows INSTALLDIR to be passed to the server MSIExec process during installation. PR-URL: #8795 Fixes: #6057 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
Windows, MSI.
Description of change
When installing with
Always install with elevated privileges
policy set on Windows, MSIExec will spawn an installation process with elevated privileges, but will only be able to pass secure properties to it. Without this change, INSTALLDIR could not be passed and would revert to the default, effectively ignoring any change in the installation directory made by the user.This marks INSTALLDIR as secure, allowing it to be passed to the server MSIExec process during installation.
Tested on Windows 7 with the policy set, with the MSI and INSTALLDIR in two different non-C hard drives (showing that other properties get their values corretly). Also tested upgrade from released Node 6.4 to this on Windows 10.
Fixes: #6057
cc @nodejs/platform-windows