interface IProductDetector
Modifier and Type | Method and Description |
---|---|
java.lang.String |
appendInstallDirOption(java.lang.String command,
java.lang.String installDirectory)
Append installation directory option to installer and uninstaller
|
java.lang.String |
appendOptions(java.lang.String command,
java.lang.String... options)
Append options to installer and uninstaller
|
java.lang.String |
appendSientOption(java.lang.String command)
Append silent option to installer and uninstaller
|
java.lang.String |
findUnInstaller(java.lang.String home) |
java.lang.String[] |
getBins() |
java.lang.String |
getDefaultHome() |
java.util.Map<java.lang.String,java.lang.String> |
getHomes()
Note: The map's key is used for choosing product to use.
User will decide key's format. |
java.lang.String |
getInstaller()
The installer is always under the SAFS/SeleniumPlus install's folder.
|
java.lang.String[] |
getPossibleExecutables() |
java.lang.String |
getPreferredHome() |
InstallerImpl.BIT_OPTION |
getProductBit() |
java.lang.String |
getUnInstaller()
The un-installer is under the product itself folder.
|
java.io.File |
getValidExecutable(java.io.File home,
java.lang.String defaultExecutable)
Find the valid executable for the product.
The search logic could be: 1. |
void |
setProductBit(InstallerImpl.BIT_OPTION productBit) |
java.util.Map<java.lang.String,java.lang.String> getHomes()
java.lang.String getPreferredHome()
java.lang.String getDefaultHome()
java.lang.String[] getBins()
java.lang.String[] getPossibleExecutables()
java.io.File getValidExecutable(java.io.File home, java.lang.String defaultExecutable) throws java.io.FileNotFoundException
getBins()
sub folder of product homegetPossibleExecutables()
under the product homehome
- File, the product home directorydefaultExecutable
- String, the default executable. It could be name or "path relative to home".java.io.FileNotFoundException
- if no executable could be foundProductDetectorDefault
InstallerImpl.BIT_OPTION getProductBit()
void setProductBit(InstallerImpl.BIT_OPTION productBit)
productBit
- BIT_OPTION, the bit (32 or 64) of the product to detect.java.lang.String getUnInstaller()
java.lang.String getInstaller()
java.lang.String findUnInstaller(java.lang.String home) throws java.io.FileNotFoundException
home
- String, the product's home directoryjava.io.FileNotFoundException
- if not foundjava.lang.String appendSientOption(java.lang.String command)
java.lang.String appendInstallDirOption(java.lang.String command, java.lang.String installDirectory)
java.lang.String appendOptions(java.lang.String command, java.lang.String... options)
Copyright © SAS Institute. All Rights Reserved.