mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 02:28:19 +00:00
Small bits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10109 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
81bb7af986
commit
3e54d8b6bf
@ -20,7 +20,7 @@
|
|||||||
CRCCheck force
|
CRCCheck force
|
||||||
|
|
||||||
; Make the installer as small as possible.
|
; Make the installer as small as possible.
|
||||||
;SetCompressor lzma
|
SetCompressor lzma
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
; You should need to change only these macros...
|
; You should need to change only these macros...
|
||||||
@ -287,7 +287,7 @@ Section "-Installation actions" SecInstallation
|
|||||||
"${PRODUCT_NAME}" \
|
"${PRODUCT_NAME}" \
|
||||||
"${PRODUCT_NAME} Document" \
|
"${PRODUCT_NAME} Document" \
|
||||||
"${PRODUCT_EXE},1" \
|
"${PRODUCT_EXE},1" \
|
||||||
"${PRODUCT_EXE}"
|
"${PRODUCT_BAT}"
|
||||||
|
|
||||||
${CreateFileAssociation} "${PRODUCT_EXT}" "${PRODUCT_NAME}" "${PRODUCT_MIME_TYPE}"
|
${CreateFileAssociation} "${PRODUCT_EXT}" "${PRODUCT_NAME}" "${PRODUCT_MIME_TYPE}"
|
||||||
${endif}
|
${endif}
|
||||||
@ -365,7 +365,7 @@ FunctionEnd
|
|||||||
|
|
||||||
; Sets the value of the global $MinSYSPath variable.
|
; Sets the value of the global $MinSYSPath variable.
|
||||||
Function SearchMinSYS
|
Function SearchMinSYS
|
||||||
; This function manipulates the $0, $1, $2 and $2 registers,
|
; This function manipulates the registers $0-$3,
|
||||||
; so push their current content onto the stack.
|
; so push their current content onto the stack.
|
||||||
Push $0
|
Push $0
|
||||||
Push $1
|
Push $1
|
||||||
@ -664,36 +664,10 @@ FunctionEnd
|
|||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
Function SelectMenuLanguage
|
|
||||||
StrCpy $LangName ""
|
|
||||||
|
|
||||||
;tranlate NSIS's language code to the language name; macro from lyx_utils.nsh
|
|
||||||
!insertmacro TranslateLangCode $LangName $Language
|
|
||||||
|
|
||||||
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 2" "State" "$LangName"
|
|
||||||
|
|
||||||
!insertmacro MUI_HEADER_TEXT "$(UILangageTitle)" "$(UILangageDescription)"
|
|
||||||
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "io_ui_language.ini"
|
|
||||||
FunctionEnd
|
|
||||||
|
|
||||||
;--------------------------------
|
|
||||||
|
|
||||||
Function SelectMenuLanguage_LeaveFunction
|
|
||||||
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State"
|
|
||||||
|
|
||||||
;Get the language code; macro from lyx_utils.nsh
|
|
||||||
StrCpy $LangCode ""
|
|
||||||
!insertmacro GetLangCode $LangCode $LangName
|
|
||||||
FunctionEnd
|
|
||||||
|
|
||||||
;--------------------------------
|
|
||||||
|
|
||||||
; Sets the value of the global $PDFViewerPath and $PDFViewerProg variables.
|
; Sets the value of the global $PDFViewerPath and $PDFViewerProg variables.
|
||||||
Function SearchPDFViewer
|
Function SearchPDFViewer
|
||||||
StrCpy $PDFViewerPath ""
|
StrCpy $PDFViewerPath ""
|
||||||
!insertmacro GetFileExtProg $PDFViewerPath $PDFViewerProg ".pdf" "a"
|
!insertmacro GetFileExtProg $PDFViewerPath $PDFViewerProg ".pdf" "a"
|
||||||
|
|
||||||
MessageBox MB_OK "PDF viewer '$PDFViewerPath' '$PDFViewerProg'"
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
@ -735,8 +709,6 @@ Function SearchPSViewer
|
|||||||
${StrStrAdv} $PSViewerProg $PSViewerProg "\" "<" ">" "0" "0" "0"
|
${StrStrAdv} $PSViewerProg $PSViewerProg "\" "<" ">" "0" "0" "0"
|
||||||
${endif}
|
${endif}
|
||||||
|
|
||||||
MessageBox MB_OK "PS viewer '$PSViewerPath' '$PSViewerProg'"
|
|
||||||
|
|
||||||
; Return the $0 and $1 registers to their original states
|
; Return the $0 and $1 registers to their original states
|
||||||
Pop $1
|
Pop $1
|
||||||
Pop $0
|
Pop $0
|
||||||
@ -793,6 +765,30 @@ Function SummariseDownloads_LeaveFunction
|
|||||||
${endif}
|
${endif}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
;--------------------------------
|
||||||
|
|
||||||
|
Function SelectMenuLanguage
|
||||||
|
StrCpy $LangName ""
|
||||||
|
|
||||||
|
;tranlate NSIS's language code to the language name; macro from lyx_utils.nsh
|
||||||
|
!insertmacro TranslateLangCode $LangName $Language
|
||||||
|
|
||||||
|
!insertmacro MUI_INSTALLOPTIONS_WRITE "io_ui_language.ini" "Field 2" "State" "$LangName"
|
||||||
|
|
||||||
|
!insertmacro MUI_HEADER_TEXT "$(UILangageTitle)" "$(UILangageDescription)"
|
||||||
|
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "io_ui_language.ini"
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
;--------------------------------
|
||||||
|
|
||||||
|
Function SelectMenuLanguage_LeaveFunction
|
||||||
|
!insertmacro MUI_INSTALLOPTIONS_READ $LangName "io_ui_language.ini" "Field 2" "State"
|
||||||
|
|
||||||
|
;Get the language code; macro from lyx_utils.nsh
|
||||||
|
StrCpy $LangCode ""
|
||||||
|
!insertmacro GetLangCode $LangCode $LangName
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
; The Uninstaller
|
; The Uninstaller
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ LangString ImageMagickDownloadLabel "${LYX_LANG}" "&Download ImageMagick"
|
|||||||
LangString ImageMagickFolderLabel "${LYX_LANG}" "&Folder containing convert.exe"
|
LangString ImageMagickFolderLabel "${LYX_LANG}" "&Folder containing convert.exe"
|
||||||
|
|
||||||
LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript"
|
LangString GhostscriptHeader "${LYX_LANG}" "Ghostscript"
|
||||||
LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (http://www.cs.wisc.edu/~ghost/) is used to convert images to/from PostScript."
|
LangString GhostscriptDescription "${LYX_LANG}" "Ghostscript (www.cs.wisc.edu/~ghost/) is used to convert images to/from PostScript."
|
||||||
LangString EnterGhostscriptFolder "${LYX_LANG}" "Please input the path to the folder containing gswin32c.exe"
|
LangString EnterGhostscriptFolder "${LYX_LANG}" "Please input the path to the folder containing gswin32c.exe"
|
||||||
LangString InvalidGhostscriptFolder "${LYX_LANG}" "Unable to find gswin32c.exe"
|
LangString InvalidGhostscriptFolder "${LYX_LANG}" "Unable to find gswin32c.exe"
|
||||||
LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Download Ghostscript"
|
LangString GhostscriptDownloadLabel "${LYX_LANG}" "&Download Ghostscript"
|
||||||
|
Loading…
Reference in New Issue
Block a user