Wininstaller2, use plugin to start LyX as user after installation as admin

This commit is contained in:
Eugene Chornyi 2020-07-11 22:10:48 +02:00
parent 2a80b0ac01
commit df2234f18d
2 changed files with 3 additions and 1 deletions

View File

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

View File

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