]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/AltInstaller/Launch.nsi
Make sure that undo is recorded when magic tricks are played with InsetBibitem.
[lyx.git] / development / Win32 / packaging / AltInstaller / Launch.nsi
1 # LyX for Windows Launcher
2 # Author: Joost Verburg and Uwe Stöhr
3
4 # This application will start LyX without the console.
5
6 !include "FileFunc.nsh"
7 !insertmacro GetParameters
8
9 Var Parameters
10
11 OutFile LyXLauncher.exe
12
13 Icon "icons\lyx_32x32.ico"
14 LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
15
16 #--------------------------------
17 #Version information
18
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"
24
25 #--------------------------------
26 #Main application
27
28 Section -Launch
29
30   # hide the application window as only the window of the startet lyx.exe
31   # should be visible
32   HideWindow 
33
34   # get the parameters LyX is called with: LyX-document to be opened etc.
35   ${GetParameters} $Parameters # macro from FileFunc.nsh
36   
37   # start LyX and hide the command line window
38   Push '"$EXEDIR\lyx.exe" $Parameters'
39   CallInstDLL "$EXEDIR\Console.dll" ExecToLog
40   
41   # quit the application when LyX was closed by the user
42   Quit
43
44 SectionEnd
45