1 # LyX for Windows Launcher
2 # Author: Joost Verburg and Uwe Stöhr
4 # This application will start LyX without the console.
6 !include "FileFunc.nsh"
7 !insertmacro GetParameters
11 OutFile LyXLauncher.exe
13 Icon "icons\lyx_32x32.ico"
14 LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
16 #--------------------------------
19 VIProductVersion "1.0.0.0"
20 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "LyXLauncher"
21 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Launcher for LyX - The Document Processor"
22 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "1.0"
23 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "LyX is Copyright 1995-2007 by the LyX Team"
25 #--------------------------------
30 # hide the application window as only the window of the startet lyx.exe
34 # get the parameters LyX is called with: LyX-document to be opened etc.
35 ${GetParameters} $Parameters # macro from FileFunc.nsh
37 # start LyX and hide the command line window
38 Push '"$EXEDIR\lyx.exe" $Parameters'
39 CallInstDLL "$EXEDIR\Console.dll" ExecToLog
41 # quit the application when LyX was closed by the user