diff --git a/nsis/tesseract.nsi b/nsis/tesseract.nsi index a980cb3a..0d94d458 100644 --- a/nsis/tesseract.nsi +++ b/nsis/tesseract.nsi @@ -75,7 +75,7 @@ OutFile ${OUTFILE} !ifndef PREFIX !define PREFIX "../mingw64" !endif -!define TRAININGDIR "${PREFIX}/bin" +!define BINDIR "${PREFIX}/bin" # General Definitions Name "${PRODUCT_NAME}" @@ -202,8 +202,8 @@ Section -Main SEC0000 SectionIn RO SetOutPath "$INSTDIR" # files included in distribution - File ${PREFIX}/bin/tesseract.exe - File ${PREFIX}/bin/libtesseract-*.dll + File ${BINDIR}/tesseract.exe + File ${BINDIR}/libtesseract-*.dll !ifdef CROSSBUILD File ../dll/*.dll !endif @@ -236,7 +236,7 @@ SectionEnd Section "Training Tools" SecTr SectionIn 1 SetOutPath "$INSTDIR" - File ${TRAININGDIR}\*.exe + File /x tesseract.exe ${BINDIR}/*.exe SectionEnd !define UNINST_EXE "$INSTDIR\tesseract-uninstall.exe"