public class OCRInstaller extends InstallerImpl
InstallerImpl.VERSION_OPTION
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BINDIR
"/bin"
|
static java.lang.String |
BINDLL
"/bin/tessdllWrapper.dll"
|
static java.lang.String |
GOCRDATA_DIR
"GOCRDATA_DIR"
|
(package private) boolean |
isInBinDir |
static java.lang.String |
OCRDATADIR
"/gocrdata"
|
static java.lang.String |
OCRDIR
"/ocr"
|
static java.lang.String |
OCRDLL
"/ocr/tessdllWrapper.dll"
|
static java.lang.String |
TESSDATA_PREFIX
"TESSDATA_PREFIX"
|
static java.lang.String |
VSREDIST_EXE
"vcredist_x86"
|
ARG_INSTALLDIR, ARG_UNINSTALL, PARAM_SWITCH, PARAM_USE_LATEST_VERSION, productDetector, progresser, REGSVR32, rootdir, SYSTEM32, SYSWOW64
Constructor and Description |
---|
OCRInstaller() |
OCRInstaller(java.lang.String _installdir) |
Modifier and Type | Method and Description |
---|---|
boolean |
install(java.lang.String... args)
Set the System Environment Variables used by SAFS.
|
static void |
main(java.lang.String[] args)
Main Java executable.
|
boolean |
uninstall(java.lang.String... args)
UnSets the System Environment Variables used by SAFS.
|
appendSystemEnvironment, getDefaultProductDetector, getEnvValue, getInstallationRoot, getRegistryValue, getUnixProductDetector, getWindowsProductDetector, hasRegistryEntry, initilizeProductDetector, prependSystemEnvironment, removeSystemEnvironmentSubstring, removeSystemEnvironmentSubstringContaining, setEnvValue, setProgress, setProgressIndicator, setProgressMessage, setRegistryValue
public static final java.lang.String OCRDIR
public static final java.lang.String OCRDATADIR
public static final java.lang.String BINDIR
public static final java.lang.String OCRDLL
public static final java.lang.String BINDLL
public static final java.lang.String TESSDATA_PREFIX
public static final java.lang.String GOCRDATA_DIR
public static final java.lang.String VSREDIST_EXE
boolean isInBinDir
public OCRInstaller()
public OCRInstaller(java.lang.String _installdir)
public boolean install(java.lang.String... args)
TESSDATA_PREFIX
GOCRDATA_DIR
PATH
On Windows, we also run the vcredist_x86 executable.
args
- -- optional arg[0] installation directory to override existing rootdir setting.public boolean uninstall(java.lang.String... args)
TESSDATA_PREFIX
GOCRDATA_DIR
PATH
args
- public static void main(java.lang.String[] args)
%SAFSDIR%\jre\bin\java org.safs.install.OCRInstaller
%SAFSDIR%\jre\bin\java org.safs.install.OCRInstaller -installdir "c:\SeleniumPlus\extra\automation"
%SAFSDIR%\jre\bin\java org.safs.install.OCRInstaller -u
%SAFSDIR%\jre\bin\java org.safs.install.OCRInstaller -u -installdir "c:\SeleniumPlus\extra\automation"
System.exit(0) on perceived success.
System.exit(-1) on perceived failure.
args
- --
SilentInstaller
Copyright © SAS Institute. All Rights Reserved.