public class SeleniumPlusInstaller extends InstallerImpl implements DebugListener
InstallerImpl.BIT_OPTION, InstallerImpl.VERSION_OPTION
Modifier and Type | Field and Description |
---|---|
(package private) static Console |
console |
(package private) static boolean |
debug |
static java.lang.String |
DEFAULT_UNX_SELENIUMPLUS_DIR
"/usr/local/seleniumplus"
|
(package private) static java.lang.String[] |
findStrings |
static java.lang.String |
HKLM_RUN_KEY |
static java.lang.String |
HKLM_RUN_MONITOR |
static java.lang.String |
HKLM_RUN_SERVER |
(package private) static java.lang.String |
installedstafdir |
(package private) static boolean |
installsafs |
(package private) static boolean |
installstaf |
(package private) static java.lang.String |
installstafexe |
(package private) static int |
pctIncrement |
(package private) static int |
pctProgress |
(package private) static int |
pctSTAFInstall |
(package private) static int |
pctSTAFUninstall |
(package private) static ProgressIndicator |
progresser
progressbar is a swing panel to show the progress of installation.
|
(package private) static boolean |
propogate |
(package private) static boolean |
removesafs |
(package private) static boolean |
removestaf |
static java.lang.String |
SAFSJARPath |
static java.lang.String |
SELENIUMBINPath |
(package private) static java.lang.String |
seleniumdir |
static java.lang.String |
SELENIUMDIRAutomation |
static java.lang.String |
SELENIUMDIREnv |
static java.lang.String |
SELENIUMLIBPath |
static java.lang.String |
SELENIUMOCRPath |
(package private) static boolean |
silent |
(package private) static java.lang.String |
stafdir |
static java.lang.String |
STAFEmbeddedJARPath |
(package private) static boolean |
uninstall |
(package private) static boolean |
verbose |
ARG_DEBUG, ARG_INSTALLDIR, ARG_SAFS_DIR, ARG_SILENT, ARG_UNINSTALL, ARG_VERBOSE, DIR_BIN, DIR_INSTALL, DIR_SAFS_HOME_DEFAULT, home, PARAM_SWITCH, PARAM_USE_LATEST_VERSION, productDetector, REGSVR32, rootdir, safsHome, SYSTEM32, SYSWOW64
Constructor and Description |
---|
SeleniumPlusInstaller() |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
convertWinReplaceString(java.lang.String findStr,
java.lang.String replaceStr) |
(package private) static boolean |
createSeleniumPlusProgramGroup()
Create SeleniumPlus Program Group and shortcuts.
|
(package private) static int |
doSTAFInstall()
Perform STAF install.
|
(package private) static int |
doSTAFUnInstall()
Perform uninstall STAF.
|
java.lang.String |
getListenerName()
Unique name to identify the listener.
|
(package private) static void |
initialize() |
boolean |
install(java.lang.String... args)
Currently assumes SeleniumPlus has been installed (unzipped) and SELENIUM_PLUS is already set.
|
static boolean |
isSelPlusProject(java.io.File directory)
Check if SeleniumPlus project or not
|
static void |
main(java.lang.String[] args)
This Installer provides no GUI, but will accept some configuration parameters.
|
void |
onReceiveDebug(java.lang.String message)
A remote client has sent a Debug message to be logged by the listener.
|
(package private) static void |
parseArgs(java.lang.String[] args) |
(package private) static void |
printArgs(java.lang.String[] args) |
boolean |
uninstall(java.lang.String... args)
Unset the System Environment Variables used by SeleniumPlus.
|
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 SELENIUMDIREnv
public static final java.lang.String SELENIUMDIRAutomation
public static final java.lang.String SELENIUMBINPath
public static final java.lang.String SELENIUMOCRPath
public static final java.lang.String SELENIUMLIBPath
public static final java.lang.String SAFSJARPath
public static final java.lang.String STAFEmbeddedJARPath
public static final java.lang.String HKLM_RUN_KEY
public static final java.lang.String HKLM_RUN_MONITOR
public static final java.lang.String HKLM_RUN_SERVER
public static final java.lang.String DEFAULT_UNX_SELENIUMPLUS_DIR
static boolean installsafs
static boolean removestaf
static boolean removesafs
static boolean installstaf
static java.lang.String installedstafdir
static java.lang.String installstafexe
static java.lang.String seleniumdir
static java.lang.String stafdir
static boolean uninstall
static boolean propogate
static boolean debug
static boolean silent
static boolean verbose
static Console console
static ProgressIndicator progresser
static int pctProgress
static int pctIncrement
static int pctSTAFUninstall
static int pctSTAFInstall
static final java.lang.String[] findStrings
static void printArgs(java.lang.String[] args)
static void parseArgs(java.lang.String[] args)
static void initialize()
static int doSTAFInstall()
static int doSTAFUnInstall()
java.lang.String convertWinReplaceString(java.lang.String findStr, java.lang.String replaceStr)
static boolean createSeleniumPlusProgramGroup()
public boolean install(java.lang.String... args)
install
in interface InstallerInterface
public boolean uninstall(java.lang.String... args)
uninstall
in interface InstallerInterface
args
- public static void main(java.lang.String[] args)
args
- String[]
%SELENIUMPLUSDIR%\Java\jre\bin\java org.safs.install.SeleniumPlusInstaller [C:\SeleniumPlus]
%SELENIUMPLUSDIR%\Java\jre\bin\java org.safs.install.SeleniumPlusInstaller -u [C:\SeleniumPlus]
If the -np option is not provided, then the installer will propogate and execute other necessary SAFS Framework Installers.
System.exit(0) on perceived success.
System.exit(-1) on perceived failure.
SilentInstaller
,
propogate
public java.lang.String getListenerName()
NamedListener
getListenerName
in interface NamedListener
public void onReceiveDebug(java.lang.String message)
DebugListener
onReceiveDebug
in interface DebugListener
public static boolean isSelPlusProject(java.io.File directory)
directory
- Copyright © SAS Institute. All Rights Reserved.