From 852253368976e7462f040808d813af2bc10ed834 Mon Sep 17 00:00:00 2001 From: "zdenop@gmail.com" Date: Tue, 12 Oct 2010 19:09:59 +0000 Subject: [PATCH] improved NSI script: finalization for tesseract-ocr-setup-3.00.exe git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@512 d0cd1f9f-072b-0410-8dd7-cf729c803f20 --- vs2008/tesseract.nsi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/vs2008/tesseract.nsi b/vs2008/tesseract.nsi index 5a7d46fb..f962854b 100644 --- a/vs2008/tesseract.nsi +++ b/vs2008/tesseract.nsi @@ -1,5 +1,5 @@ ; (C) Copyright 2010, Sergey Bronnikov -; impoved by Zdenko Podobný (C) 2010 +; Contrib: Zdenko Podobný (C) 2010 ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ ; - replace hardcoded program name to variables (NAME and LONGNAME) ; - place shortcuts in program files for all users - !define VERSION 3.00.1 + !define VERSION 3.00 !define PRODUCT_NAME "Tesseract-OCR" !define PRODUCT_VERSION "${VERSION}" !define PRODUCT_PUBLISHER "" @@ -156,8 +156,6 @@ Section "Tesseract-OCR" SecDummy File tesseract.exe File gzip.exe # for exctracting language data CreateDirectory "$INSTDIR\tessdata" - SetOutPath "$INSTDIR\tessdata" - File tessdata\eng.traineddata CreateDirectory "$INSTDIR\tessdata\configs" SetOutPath "$INSTDIR\tessdata\configs" File tessdata\configs\ambigs.train @@ -241,7 +239,13 @@ Section "Shortcuts creation" SecCS SectionEnd ; Download language files -SectionGroup "Additional language data" SecGrp_ALD +SectionGroup "Language data" SecGrp_LD + Section "English language data" SecLang_eng + SectionIn RO + SetOutPath "$INSTDIR\tessdata" + File tessdata\eng.traineddata + SectionEnd + Section /o "Download and install Bulgarian language data" SecLang_bul !insertmacro Download_Lang_Data bul.traineddata.gz SectionEnd @@ -467,7 +471,7 @@ Function .onInit ExecWait '$R1 _?=$INSTDIR' SkipUnInstall: - MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to install ${PRODUCT_NAME} ${VERSION} with English language data?" \ + MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to install ${PRODUCT_NAME} ${VERSION}?" \ /SD IDYES IDNO no IDYES yes no: SetSilent silent