public class GhostScriptInstaller extends InstallerImpl implements DebugListener
InstallerImpl.BIT_OPTION, InstallerImpl.VERSION_OPTION
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_VERSION
9.23 current install version
|
static java.lang.String |
ENV_GS_DLL
GS_DLL the environment to keep the path of ghostscript dll
|
static java.lang.String |
ENV_GS_LIB
GS_LIB the environment to keep the path of ghostscript library files
|
static java.lang.String |
ENV_HOME
GS_HOME the environment to keep the product installation path
|
protected org.safs.install.GhostScriptInstaller.ProductDetectorGhostScript |
myProductDetector
A convenient product detector of ghostscript.
|
static java.lang.String |
PRODUCT_NAME
GHOSTSCRIPT
|
static java.lang.String[] |
SUPPORTED_VERSION
[
CURRENT_VERSION , ... |
static java.lang.String |
TITLE
GHOSTSCRIPT INSTALLATION
|
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, s, safsHome, silent, SYSTEM32, SYSWOW64, verbose
Constructor and Description |
---|
GhostScriptInstaller(ProgressIndicator progresser,
java.lang.String safsHome) |
GhostScriptInstaller(ProgressIndicator progresser,
java.lang.String safsHome,
java.lang.String home) |
GhostScriptInstaller(ProgressIndicator progresser,
java.lang.String safsHome,
java.lang.String home,
boolean silent,
boolean verbose,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
envHome() |
protected IProductDetector |
getDefaultProductDetector() |
java.lang.String |
getListenerName()
Unique name to identify the listener.
|
protected java.lang.String |
getProductName() |
protected IProductDetector |
getUnixProductDetector() |
protected IProductDetector |
getWindowsProductDetector() |
protected void |
initilizeProductDetector()
Initialize the IProdcutDetector object according to the Operation System.
A ProductDetectorDefault will be returned if the OS is not Windows or UNIX/LINUX. |
boolean |
install(java.lang.String... optionals)
Install both 32-bit and 64-bit ghostscript.
Add bin directory to the PATH environment. See Install ghostscript. |
static void |
main(java.lang.String[] args)
Main Java executable.
|
void |
onReceiveDebug(java.lang.String message)
A remote client has sent a Debug message to be logged by the listener.
|
boolean |
uninstall(java.lang.String... args)
UnInstall the all installed ghostscript.
Clear the HOME environment. Clear the PATH environment. Clear the Registry. See Install ghostscript. |
appendSystemEnvironment, findInstaller, getDefaultHome, getEnvValue, getHome, getInstallationRoot, getInstallerDir, getRegistryValue, getSafsHome, hasRegistryEntry, increaseProgress, prependSystemEnvironment, removeSystemEnvironmentSubstring, removeSystemEnvironmentSubstringContaining, setEnvironment, setEnvValue, setHome, setProgress, setProgressIndicator, setProgressMessage, setProgressMessage, setRegistryValue, setSafsHome
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String ENV_HOME
public static final java.lang.String ENV_GS_DLL
public static final java.lang.String ENV_GS_LIB
public static final java.lang.String TITLE
public static final java.lang.String CURRENT_VERSION
public static final java.lang.String[] SUPPORTED_VERSION
CURRENT_VERSION
, ... ] an array of supported version, CURRENT_VERSION
should always be put at the first positionprotected org.safs.install.GhostScriptInstaller.ProductDetectorGhostScript myProductDetector
InstallerImpl.productDetector
.initilizeProductDetector()
public GhostScriptInstaller(ProgressIndicator progresser, java.lang.String safsHome)
public GhostScriptInstaller(ProgressIndicator progresser, java.lang.String safsHome, java.lang.String home)
public GhostScriptInstaller(ProgressIndicator progresser, java.lang.String safsHome, java.lang.String home, boolean silent, boolean verbose, boolean debug)
public java.lang.String getListenerName()
NamedListener
getListenerName
in interface NamedListener
public void onReceiveDebug(java.lang.String message)
DebugListener
onReceiveDebug
in interface DebugListener
protected java.lang.String getProductName()
getProductName
in class InstallerImpl
protected java.lang.String envHome()
public boolean install(java.lang.String... optionals)
install
in interface InstallerInterface
public boolean uninstall(java.lang.String... args)
uninstall
in interface InstallerInterface
protected void initilizeProductDetector() throws java.lang.UnsupportedOperationException
InstallerImpl
initilizeProductDetector
in class InstallerImpl
java.lang.UnsupportedOperationException
protected IProductDetector getDefaultProductDetector()
getDefaultProductDetector
in class InstallerImpl
ProductDetectorDefault
protected IProductDetector getWindowsProductDetector() throws java.lang.UnsupportedOperationException
getWindowsProductDetector
in class InstallerImpl
java.lang.UnsupportedOperationException
protected IProductDetector getUnixProductDetector() throws java.lang.UnsupportedOperationException
getUnixProductDetector
in class InstallerImpl
java.lang.UnsupportedOperationException
public static void main(java.lang.String[] args)
%SELENIUM_PLUS%\jre\bin\java org.safs.install.GhostScriptInstaller -safs safsHome [-u] [-installdir home] [-silent] [-v] [-debug]
args
- InstallerImpl.getDefaultHome()
will be used to get the directory from system environment.
example:
%SELENIUM_PLUS%\jre\bin\java org.safs.install.GhostScriptInstaller -safs c:\SeleniumPlus
%SELENIUM_PLUS%\jre\bin\java org.safs.install.GhostScriptInstaller -safs c:\SeleniumPlus -u
System.exit(0) on perceived success.
System.exit(-1) on perceived failure.
System.exit(-2) on any un-expected exception.
SilentInstaller
Copyright © SAS Institute. All Rights Reserved.