Skip to content
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

Conversation

joaocgreis
Copy link
Member

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected 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

Allows INSTALLDIR to be passed to the server MSIExec process during
installation.

Fixes: nodejs#6057
@joaocgreis joaocgreis added windows Issues and PRs related to the Windows platform. install Issues and PRs related to the installers. lts-watch-v4.x labels Sep 26, 2016
@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Sep 26, 2016
@joaocgreis
Copy link
Member Author

@benjamingr
Copy link
Member

LGTM - this change sounds reasonable. For those who want a reference http://wixtoolset.org/documentation/manual/v3/xsd/wix/property.html

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasongin
Copy link
Member

:shipit:

@jasnell
Copy link
Member

jasnell commented Oct 7, 2016

@nodejs/build ... does this LGTY?

@joaocgreis
Copy link
Member Author

@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!

@joaocgreis
Copy link
Member Author

Landed in 4896f0f

@joaocgreis joaocgreis closed this Oct 10, 2016
joaocgreis added a commit that referenced this pull request Oct 10, 2016
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]>
jasnell pushed a commit that referenced this pull request Oct 10, 2016
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]>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
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]>
MylesBorins pushed a commit that referenced this pull request Nov 18, 2016
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]>
@MylesBorins MylesBorins mentioned this pull request Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Issues and PRs related to the installers. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants