commit df2234f18deb4021ecadce24001c4b6b3e6ee374
Author: Eugene Chornyi <yu_...@lyx.org>
Date:   Sat Jul 11 22:10:48 2020 +0200

    Wininstaller2, use plugin to start LyX as user after installation as admin
---
 development/Win32/packaging/installer/Readme.txt   |    2 ++
 .../Win32/packaging/installer2/src/main.nsh        |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/development/Win32/packaging/installer/Readme.txt 
b/development/Win32/packaging/installer/Readme.txt
index 0cd2364..1d17b7f 100644
--- a/development/Win32/packaging/installer/Readme.txt
+++ b/development/Win32/packaging/installer/Readme.txt
@@ -13,6 +13,8 @@ To build the installer do the following:
   extract NSISList-Unicode\NSISList.dll from the second archive to the folder 
\Plugins\x86-unicode of NSIS's installation folder
 - download the plugin ShellLink (https://nsis.sourceforge.io/ShellLink_plug-in)
   extract Unicode\Plugins\ShellLink.dll from the archive to the folder 
\Plugins\x86-unicode of NSIS's installation folder
+- download the plugin ShellExecAsUser 
(https://nsis.sourceforge.io/ShellExecAsUser_plug-in), choose Unicode version
+  extract unicode\ShellExecAsUser.dll from the archive to the folder 
\Plugins\x86-unicode of NSIS's installation folder
 - Go to the Qt-kit directory, which you have specified as CMAKE_PREFIX_PATH 
before compiling in CMake Gui, enter the bin folder,
   copy these files:
    Qt5Concurrent.dll"
diff --git a/development/Win32/packaging/installer2/src/main.nsh 
b/development/Win32/packaging/installer2/src/main.nsh
index c91c1df..ea18e05 100644
--- a/development/Win32/packaging/installer2/src/main.nsh
+++ b/development/Win32/packaging/installer2/src/main.nsh
@@ -991,7 +991,7 @@ Function DefaultDesktopFileAssoc # Custom function, called 
before the components
 FunctionEnd
 
 Function StartLyX
-  Exec "$INSTDIR\bin\LyX.exe"
+  ShellExecAsUser::ShellExecAsUser "" "$INSTDIR\bin\LyX.exe"
 FunctionEnd
 
 # Installer Section Descriptions
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to