mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
installer:
- fix to Update Installer - move InstallerStructure graphics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18164 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ab5186f2cc
commit
9cf7d2e636
@ -51,18 +51,11 @@ Section "-Installation actions" SecInstallation
|
||||
# Refresh registry setings for the uninstaller
|
||||
Call RefreshRegUninst
|
||||
|
||||
# Create a batch file to start LyX with the environment variables set
|
||||
# replace the lyx.exe in lyx.bat with LyXLauncher.exe
|
||||
# !only needed in this version! remove it for the next release
|
||||
ClearErrors
|
||||
Delete "${PRODUCT_BAT}"
|
||||
FileOpen $R1 "${PRODUCT_BAT}" w
|
||||
FileWrite $R1 '@echo off$\r$\n\
|
||||
SET LANG=$LangCode$\r$\n\
|
||||
SET AIK_DATA_DIR=${AiksaurusDir}$\r$\n\
|
||||
start "${PRODUCT_NAME}" "${LAUNCHER_NAME}" %*$\r$\n'
|
||||
FileClose $R1
|
||||
IfErrors 0 +2
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "$(CreateCmdFilesFailed)"
|
||||
StrCpy $OldString "lyx.exe"
|
||||
StrCpy $NewString "${LAUNCHER_NAME}"
|
||||
${LineFind} "${PRODUCT_BAT}" "" "1:-1" "ReplaceLineContent" # macro from TextFunc.nsh # calls Function ReplaceLineContent
|
||||
|
||||
# register LyX
|
||||
${if} $CreateFileAssociations == "true"
|
||||
@ -172,7 +165,7 @@ Function InstDirChange
|
||||
|
||||
# set new PATH_PREFIX in the file lyxrc.dist
|
||||
FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" a
|
||||
FileRead $R1 $PathPrefix
|
||||
FileRead $R1 $PathPrefix # the whole file content is now in $PathPrefix
|
||||
${WordReplace} $PathPrefix "${PRODUCT_VERSION_OLD}" "LyX ${PRODUCT_VERSION}" "+" $PathPrefix
|
||||
FileSeek $R1 0 # set file pointer to the beginning
|
||||
FileWrite $R1 '$PathPrefix' # overwrite the existing path with the actual one
|
||||
|
@ -1,7 +1,7 @@
|
||||
# installer settings
|
||||
# You should need to change only these macros for new releases.
|
||||
|
||||
!define PRODUCT_DIR "c:\lyx\LyXPackage"
|
||||
!define PRODUCT_DIR "D:\LyXPackage1.5"
|
||||
!define PRODUCT_NAME "LyX"
|
||||
!define PRODUCT_VERSION "1.5svn-02-05-2007"
|
||||
!define PRODUCT_VERSION_SHORT "150svn"
|
||||
|
Loading…
Reference in New Issue
Block a user