public class OCRInstaller extends InstallerImpl
InstallerImpl.BIT_OPTION, 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_DEBUG, ARG_INSTALLDIR, ARG_SAFS_DIR, ARG_SILENT, ARG_UNINSTALL, ARG_VERBOSE, debug, DIR_BIN, DIR_INSTALL, DIR_SAFS_HOME_DEFAULT, home, PARAM_SWITCH, PARAM_USE_LATEST_VERSION, productDetector, progresser, REGSVR32, rootdir, safsHome, silent, SYSTEM32, SYSWOW64, verbose
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, findInstaller, getDefaultHome, getDefaultProductDetector, getEnvValue, getHome, getInstallationRoot, getInstallerDir, getProductName, getRegistryValue, getSafsHome, getUnixProductDetector, getWindowsProductDetector, hasRegistryEntry, increaseProgress, initilizeProductDetector, prependSystemEnvironment, removeSystemEnvironmentSubstring, removeSystemEnvironmentSubstringContaining, setEnvironment, setEnvValue, setHome, setProgress, setProgressIndicator, setProgressMessage, setProgressMessage, setRegistryValue, setSafsHome
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.