-Version LyX 1.5beta3-18-05-2007
+Version LyX 1.5pre1-xx-05-2007
+- LyX 1.5 pre1 from xx-05-2007
+
+- new Windows Vista-compatible launcher for LyX
+- fixed layout file for the LaTeX-package powerdot
+
+
+Version LyX 1.5beta3-18-05-2007
- LyX 1.5 beta3 from 18-05-2007
- fix bug, introduced with last version, that all margin notes in
a document are lost
- - support for Chinese, Japanese and Korean
+ - support for Chinese, Japenese and Korean
- support for the LaTeX-package "listings"
- updated to ImageMagick 6.3.4
-- updated to Python 2.5.1
-- updated to MiKTeX 2.6 (version 2675)
+- updated to Phyton 2.5.1
+- updated to MikteX 2.6 (version 2675)
- fix bug that LyX's menu language setting was ignored when LyX is
started by double-clicking on a LyX-file
- when Updating PDFs, the PDF is opened at the last viewed position
- (only works with Acrobat/Adobe Reader version <= 7)
+ (only works with Acrobat/adobe Reader version <= 7)
- fix hopefully the case that PDFs couldn't be updated when
Adobe Reader 8 is used on Windows Vista
- fix bug that MiKTeX and JabRef weren't correctly uninstalled
!define PRODUCT_DIR "D:\LyXPackage1.5"
!define PRODUCT_NAME "LyX"
-!define PRODUCT_VERSION "1.5beta3-18-05-2007"
+!define PRODUCT_VERSION "1.5pre1-xx-05-2007"
!define PRODUCT_VERSION_SHORT "150svn"
!define PRODUCT_SUBFOLDER "lyx15"
!define PRODUCT_LICENSE_FILE "${PRODUCT_DIR}\License.txt"
!define PRODUCT_INFO_URL "http://www.lyx.org/"
!define LAUNCHER_EXE "$INSTDIR\bin\LyXLauncher.exe"
-BrandingText "LyXWinInstaller v3.15 - ${INSTALLER_VERSION}"
+BrandingText "LyXWinInstaller v3.16 - ${INSTALLER_VERSION}"
# to check later if this installer version is running at the same time
-!define INSTALLER_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER_VERSION}-3-15.exe"
-!define INSTALLER2_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER2_VERSION}-3-15.exe"
-!define INSTALLER3_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER3_VERSION}-3-15.exe"
+!define INSTALLER_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER_VERSION}-3-16.exe"
+!define INSTALLER2_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER2_VERSION}-3-16.exe"
+!define INSTALLER3_EXE "LyXWin${PRODUCT_VERSION_SHORT}${INSTALLER3_VERSION}-3-16.exe"
!define VERSION_BITMAP "${PRODUCT_DIR}\icons\lyx_logo_vert${PRODUCT_VERSION_SHORT}.bmp"
# Replaced by HKLM or HKCU depending on SetShellVarContext.
# definitions for the Update installer
!if ${INSTALLER_VERSION} == "Update"
!define PRODUCT_UNINST_KEY_OLD "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX150svn"
- !define PRODUCT_VERSION_OLD "LyX 1.5svn-02-05-2007"
+ !define PRODUCT_VERSION_OLD "LyX 1.5beta3-18-05-2007"
!define PRODUCT_UNINSTALL_EXE_OLD "$INSTDIR\LyXWinUninstall.exe"
!define PRODUCT_VERSION_SHORT_OLD "150svn"
!define JabRefVersion "2.2" # could be an older version
--- /dev/null
+program lyxLauncher;
+// this program opens LyX and hides its console window
+// author: Uwe Stöhr
+
+{The problematic is the following:
+ When the lyx.exe is started, also a console window is shown.
+ But closing the console window, also closes LyX,
+ therefore the console will be hidden by this program.}
+
+{$APPTYPE CONSOLE}
+
+uses
+ Windows, SysUtils, ShellApi, Forms, Dialogs;
+
+var Path : string;
+ hLyX : THandle;
+
+procedure HideWindow(ProgWin: string);
+// hides a given program window
+var
+ Handle : THandle;
+begin
+
+ // find handle of the program window
+ // Repeat until the handle is available
+ // because Lyx needs some time to start
+ Repeat
+ Handle := FindWindow(nil,Pchar(ProgWin));
+ Until Handle <> 0;
+ // minimize the window
+ // SendMessage(Handle, WM_SYSCOMMAND, SC_MINIMIZE, 1);
+ // hide the window from taskbar
+ ShowWindow(Handle, SW_HIDE);
+
+end; //end procedure
+
+procedure ReadPath(FileName: string; LaunchName: string;
+ ExecName: string; var PathR: string);
+// reads the path to the lyx.exe from a given text file
+var InString : string;
+ FileSize,Index,Last : Int64;
+ hFile : THandle;
+ PInString : PChar;
+
+begin
+
+ try //try..except for procedure
+ // open the text file
+ hFile:= Windows.CreateFile(PChar(FileName),GENERIC_READ,0,nil,
+ OPEN_EXISTING,
+ FILE_FLAG_SEQUENTIAL_SCAN,0);
+ if hFile= INVALID_HANDLE_VALUE then
+ begin
+ MessageDlg('The file "' + FileName + '" could not be found!',
+ mtError,[mbOK],0);
+ exit;
+ end;
+
+ try //try..finally for hFile
+ FileSize:= FileSeek(hFile,0,2); //get file size
+ if FileSize = -1 then
+ RaiseLastOSError;
+
+ //move file content to InString
+ FileSeek(hFile,0,0);
+ SetLength(InString,FileSize);
+ PInString:= PChar(InString);
+ FileRead(hFile,PInString^,FileSize);
+
+ //search the string backwards for the first appearance of ":"
+ Index:= FileSize;
+ Repeat
+ dec(Index);
+ if InString[Index] = ':' then
+ Break;
+ Until (InString[Index] = #10) or (Index = 1);
+
+ //if the last line of lyx.bat doesn't contain a ":" (a path)
+ if (InString[Index] = #10) or (Index = 1) then
+ begin
+ MessageDlg('The file lyx.bat is corrupted!',mtError,[mbOK],0);
+ exit;
+ end;
+
+ //jump before the ":" to the drive letter
+ dec(Index);
+ //search for the LaunchName = end of the path
+ Last:= Pos(LaunchName,InString);
+ //the InString contains between Index and Last the wanted path
+ PathR:= Copy(InString,Index,Last - Index);
+ //attach LyX's executable to the path
+ PathR:= Path + ExecName;
+
+ finally //close the text file
+ Windows.CloseHandle(hFile);
+ end; //end finally
+
+ except //when an error occurred somewhere in the procedure
+ MessageDlg('The file "' + FileName + '" is corrupted!',mtError,[mbOK],0);
+ end; //end except
+
+end; //end procedure
+
+
+begin //begin program
+
+ //hide the window of this application
+ ShowWindow(Application.Handle,SW_HIDE);
+
+ // read path of the lyxLauncher.exe from the file lyx.bat
+ ReadPath('lyx.bat', 'lyxLauncher.exe', 'lyx.exe', Path);
+
+ // start LyX
+ hLyX:= ShellExecute(Application.Handle,PChar('open'),
+ PChar(Path),nil,nil,SW_SHOWNORMAL);
+ if hLyX = ERROR_FILE_NOT_FOUND then
+ begin
+ MessageDLG('The file'#13#10 + Path + #13#10
+ + 'could not be found!',mtError,[mbOK],0);
+ exit;
+ end;
+ if hLyX = SE_ERR_ACCESSDENIED then
+ begin
+ MessageDLG('Windows denied access on the file'#13#10 + Path,
+ mtError,[mbOK],0);
+ exit;
+ end;
+
+ // hide console window of lyx.exe
+ HideWindow(Path);
+
+end. //end program
+