BTCP-Rebase/share
Wladimir J. van der Laan 615f7c2884
Merge #12985: Windows: Avoid launching as admin when NSIS installer ends.
7d8a8cc Avoid launching as admin when NSIS installer ends. (JeremyRand)

Pull request description:

  The Bitcoin Core NSIS script runs with elevated privileges.  Unfortunately, this means that it launches Bitcoin Core itself with elevated privileges when the user chooses to launch Bitcoin Core at the end of the installation procedure.  This PR works around the issue by having `explorer.exe` launch Bitcoin Core.  Seems to be a similar approach to what http://nsis.sourceforge.net/ShellExecAsUser_plug-in does, but without a plugin.

  I've tested this with Sysinternals Process Explorer on Windows 10 32-bit.  I wouldn't expect any differences in behavior on other Windows releases, but if anyone would like to test on other Windows releases, feel free.

  h/t to "UK" at https://mdb-blog.blogspot.se/2013/01/nsis-lunch-program-as-user-from-uac.html?showComment=1410158039989#c2463780017054126736 for the sample code.

  Fixes #7990.

Tree-SHA512: f40d6b6e5bb72952dcfbf223b68bfeb9a03bd5638f41b1700f4651f6452ce3fe7468129f6652c4f546210a5fd2521b2574c4b6068c5aea01ed2d719a8a838cd8
2018-04-18 11:52:06 +02:00
..
pixmaps Slightly overhaul NSI pixmaps 2017-06-22 21:40:48 +02:00
qt Change all python files to use Python3 2018-03-26 16:49:33 -04:00
rpcauth Minor Python cleanups to make flake8 pass with the new rules enabled 2018-04-16 17:25:11 +02:00
genbuild.sh Add error handling: exit if cd fails 2017-10-18 17:09:36 +02:00
setup.nsi.in Avoid launching as admin when NSIS installer ends. 2018-04-14 07:51:49 +00:00