Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows-mingw-w64 nsis GUI installer: Parameters to install tesseract in a specific location in silent mode #4360

Open
qzd1989 opened this issue Nov 24, 2024 · 4 comments

Comments

@qzd1989
Copy link

qzd1989 commented Nov 24, 2024

Current Behavior

tesseract-ocr-w64-setup-5.5.0.20241111.exe /S

Expected Behavior

tesseract-ocr-w64-setup-5.5.0.20241111.exe /S /D=C:\tesseract

such as /D

Suggested Fix

sorry, I don't know the param of silent mode installation params.
I asked at here but no one to help me..
https://groups.google.com/g/tesseract-ocr/c/biZbztxEbv8

I tried /? /h /H and get nothing, still open the gui program.

Sorry, I'm newbie of rust, I don't know c++.

tesseract -v

tesseract v5.5.0.20241111
leptonica-1.85.0
libgif 5.2.2 : libjpeg 8d (libjpeg-turbo 3.0.4) : libpng 1.6.44 : libtiff 4.7.0 : zlib 1.3.1 : libwebp 1.4.0 : libopenjp2 2.5.2
Found SSE4.1
Found libarchive 3.7.7 zlib/1.3.1 liblzma/5.6.3 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.6
Found libcurl/8.11.0 Schannel zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0

Operating System

Windows 11

Other Operating System

Windows 11 Professional 22H2

uname -a

No response

Compiler

No response

CPU

No response

Virtualization / Containers

No response

Other Information

No response

@qzd1989 qzd1989 changed the title I only know the parameter /S, which is for silent mode installation. Does tesseract.exe have other parameters? I want to install it in a specific location. I only know the parameter /S, which is for silent mode installation. Does tesseract.exe have other parameters? I want to install it in a specific location in silent mode. Nov 24, 2024
@qzd1989 qzd1989 changed the title I only know the parameter /S, which is for silent mode installation. Does tesseract.exe have other parameters? I want to install it in a specific location in silent mode. Sorry, I only know the parameter /S, which is for silent mode installation. Does tesseract.exe have other parameters? I want to install it in a specific location in silent mode. Nov 24, 2024
@stweil
Copy link
Contributor

stweil commented Nov 24, 2024

Related: #3095.

Citing the documentation on /D: "Must be the last parameter on the command line and must not contain quotes even if the path contains blank spaces." In your case it was the last parameter, but you used quotes!

@qzd1989
Copy link
Author

qzd1989 commented Nov 24, 2024

Related: #3095.

Citing the documentation on /D: "Must be the last parameter on the command line and must not contain quotes even if the path contains blank spaces." In your case it was the last parameter, but you used quotes!

Sir, I tried, but it still did not work.
image

@stweil
Copy link
Contributor

stweil commented Nov 24, 2024

Right, this looks like an issue in the NSIS configuration. Maybe it should not set MULTIUSER_INSTALLMODE_INSTDIR because this setting overrides the command line value.

@amitdo amitdo changed the title Sorry, I only know the parameter /S, which is for silent mode installation. Does tesseract.exe have other parameters? I want to install it in a specific location in silent mode. Windows-mingw-w64 nsis GUI installer: Parameters to install tesseract in a specific location in silent mode Nov 25, 2024
@qzd1989
Copy link
Author

qzd1989 commented Nov 25, 2024

Right, this looks like an issue in the NSIS configuration. Maybe it should not set MULTIUSER_INSTALLMODE_INSTDIR because this setting overrides the command line value.

Thank you, Sir, it seems there are no answers for now. I'll continue to pay attention to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants