public class SilentInstaller
extends java.lang.Object
ConsumOutStreamProcess
Modifier and Type | Field and Description |
---|---|
(package private) static Console |
console |
(package private) static java.lang.String |
DEFAULT_LINUX_64_STAF_3_BIN |
(package private) static java.lang.String |
DEFAULT_LINUX_STAF_3_BIN |
static java.lang.String |
DEFAULT_MAC_SAFS_DIR
"/Library/safs"
|
(package private) static java.lang.String |
DEFAULT_MAC_STAF_3_BIN |
static java.lang.String |
DEFAULT_MAC_STAF_DIR
"/Library/staf"
|
static java.lang.String |
DEFAULT_UNX_SAFS_DIR
"/usr/local/safs"
|
static java.lang.String |
DEFAULT_UNX_STAF_DIR
"/usr/local/staf"
|
(package private) static java.lang.String |
DEFAULT_WIN_64_STAF_3_EXE |
static java.lang.String |
DEFAULT_WIN_SAFS_DIR
"C:\SAFS"
|
(package private) static java.lang.String |
DEFAULT_WIN_STAF_3_EXE |
static java.lang.String |
DEFAULT_WIN_STAF_DIR
"C:\STAF" for 32-bit STAF installation
|
(package private) static java.lang.String |
installedsafsdir |
(package private) static java.lang.String |
installedstafdir |
(package private) static boolean |
installsafs |
(package private) static boolean |
installsilent |
(package private) static boolean |
installstaf |
(package private) static java.lang.String |
installstafexe |
(package private) static java.util.List<InstallerImpl.BIT_OPTION> |
installStafPreferredList
Keep a list of STAF-bitness (32, 64) to install, the last one is preferred and
will be installed at the last moment to override the environments set by the previous installation.
|
(package private) static java.lang.String |
installstafversion |
(package private) static boolean |
installtcafs |
static java.lang.String |
OPTION_ALTSAFS
"-safs"
|
static java.lang.String |
OPTION_ALTSTAF
"-staf"
|
static java.lang.String |
OPTION_NOSAFS
"-nosafs"
|
static java.lang.String |
OPTION_NOSTAF
"-nostaf"
|
static java.lang.String |
OPTION_OVERLAY
"-overlay"
|
static java.lang.String |
OPTION_REMOVE_SAFS
"-removesafs"
|
static java.lang.String |
OPTION_REMOVE_STAF
"-removestaf"
|
static java.lang.String |
OPTION_SILENT
"-silent"
|
static java.lang.String |
OPTION_STAF_INSTALL_EXE
"-installstafexe"
Ex: -installstafexe STAF3410-setup-win32-NoJVM.exe
|
static java.lang.String |
OPTION_STAF_TO_INSTALL
"-installstafversion"
Ex: -installstafversion 2 (or 3)
|
static java.lang.String |
OPTION_VERBOSE
"-v"
|
(package private) static java.lang.String |
overlayfile |
(package private) static boolean |
overlaysafs |
(package private) static int |
pctCopyEmbedded |
(package private) static int |
pctPostInstall |
(package private) static int |
pctPostSTAFInstall |
(package private) static int |
pctPreSTAFInstall |
(package private) static int |
pctProgress |
(package private) static int |
pctSAFSInstall |
(package private) static int |
pctSAFSOverlay |
(package private) static int |
pctSAFSUninstall |
(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 |
removesafs |
(package private) static boolean |
removestaf |
(package private) static java.lang.String |
safs_silent |
(package private) static java.lang.String |
safsdir |
static java.lang.String |
SAFSEmbeddedJavaExe |
(package private) static java.lang.String |
staf_3_loginstart_0 |
(package private) static java.lang.String |
staf_3_register_0 |
(package private) static java.lang.String |
staf_3_set_install_dir |
(package private) static java.lang.String |
staf_3_silent |
static java.lang.String |
STAF_LAX_VM |
(package private) static java.lang.String |
STAF_REG_FILE |
(package private) static java.lang.String |
staf_uninstall_2 |
(package private) static java.lang.String |
staf_uninstall_3 |
(package private) static java.lang.String |
staf_uninstall_3_linux |
(package private) static java.lang.String |
staf_uninstall_3_mac |
(package private) static java.lang.String |
stafdir |
(package private) static java.lang.String |
stafMajorVersionTobeRemoved |
static java.lang.String |
SUFFIX_STAF_64_DIR
"_64" appending to 'stafdir' for 64-bit STAF installation
|
(package private) static boolean |
userProvidedSTAFInstaller
If user provides its own staf installer by parameter -installstafexe stafInstaller, this field will be set to true.
|
(package private) static boolean |
verbose |
(package private) static java.lang.String |
ZIP_INSTALL_FILE
"SAFSInstall.zip"
|
(package private) static java.lang.String |
ZIP_OVERLAY_FILE
"SAFSSnapshot.zip"
|
Constructor and Description |
---|
SilentInstaller() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
copyEmbeddedJRE(java.lang.String jrepath)
Must be called AFTER a SAFS Install or Overlay.
|
(package private) static int |
copyInstallDir(java.lang.String installpath)
Must be called AFTER a SAFS Install or Overlay.
|
(package private) static int |
copyUninstallDir(java.lang.String uninstallpath)
Must be called AFTER a SAFS Install or Overlay.
|
(package private) static boolean |
createSAFSProgramGroup(java.lang.String safsdir) |
(package private) static int |
deleteAllDirectory(java.lang.String directory)
If the uninstaller can not delete directory completely, we need to clean the remain files.
|
(package private) static int |
doSAFSInstall()
Perform SAFS install.
|
(package private) static int |
doSAFSInstallers()
Runs AFTER SAFS has been laid down, or uninstalled.
|
(package private) static int |
doSAFSOverlay()
Perform SAFS Overlay.
|
(package private) static int |
doSAFSUnInstall() |
(package private) static int |
doSTAFInstall(java.lang.String version)
Perform STAF install.
|
(package private) static int |
doSTAFUnInstall(java.lang.String version)
Perform uninstall STAF.
|
static void |
main(java.lang.String[] args)
This SilentInstaller provides no GUI, but will accept some configuration parameters.
|
(package private) static void |
parseArgs(java.lang.String[] args) |
(package private) static void |
printArgs(java.lang.String[] args) |
static final java.lang.String ZIP_INSTALL_FILE
static final java.lang.String ZIP_OVERLAY_FILE
public static final java.lang.String DEFAULT_WIN_SAFS_DIR
public static final java.lang.String DEFAULT_WIN_STAF_DIR
public static final java.lang.String SUFFIX_STAF_64_DIR
public static final java.lang.String DEFAULT_UNX_SAFS_DIR
public static final java.lang.String DEFAULT_UNX_STAF_DIR
public static final java.lang.String DEFAULT_MAC_SAFS_DIR
public static final java.lang.String DEFAULT_MAC_STAF_DIR
static final java.lang.String DEFAULT_WIN_STAF_3_EXE
static final java.lang.String DEFAULT_WIN_64_STAF_3_EXE
static final java.lang.String DEFAULT_LINUX_STAF_3_BIN
static final java.lang.String DEFAULT_LINUX_64_STAF_3_BIN
static final java.lang.String DEFAULT_MAC_STAF_3_BIN
static final java.lang.String STAF_REG_FILE
public static final java.lang.String OPTION_NOSAFS
public static final java.lang.String OPTION_NOSTAF
public static final java.lang.String OPTION_REMOVE_STAF
public static final java.lang.String OPTION_REMOVE_SAFS
public static final java.lang.String OPTION_STAF_TO_INSTALL
public static final java.lang.String OPTION_STAF_INSTALL_EXE
public static final java.lang.String OPTION_SILENT
public static final java.lang.String OPTION_ALTSAFS
public static final java.lang.String OPTION_OVERLAY
public static final java.lang.String OPTION_ALTSTAF
public static final java.lang.String OPTION_VERBOSE
static boolean overlaysafs
static boolean installsafs
static boolean removestaf
static boolean removesafs
static boolean installstaf
static boolean installtcafs
static boolean verbose
static java.lang.String installstafversion
static java.lang.String installedstafdir
static java.lang.String installedsafsdir
static java.lang.String installstafexe
static boolean userProvidedSTAFInstaller
static java.util.List<InstallerImpl.BIT_OPTION> installStafPreferredList
static java.lang.String safsdir
static java.lang.String stafdir
static java.lang.String overlayfile
public static final java.lang.String STAF_LAX_VM
public static final java.lang.String SAFSEmbeddedJavaExe
static java.lang.String staf_3_silent
static java.lang.String staf_3_set_install_dir
static java.lang.String staf_3_register_0
static java.lang.String staf_3_loginstart_0
static java.lang.String safs_silent
static java.lang.String staf_uninstall_2
static java.lang.String staf_uninstall_3
static java.lang.String staf_uninstall_3_linux
static java.lang.String staf_uninstall_3_mac
static java.lang.String stafMajorVersionTobeRemoved
static boolean installsilent
static int pctProgress
static int pctSTAFUninstall
static int pctSAFSUninstall
static int pctSAFSInstall
static int pctSAFSOverlay
static int pctCopyEmbedded
static int pctPostInstall
static int pctPreSTAFInstall
static int pctPostSTAFInstall
static Console console
static ProgressIndicator progresser
static void printArgs(java.lang.String[] args)
static void parseArgs(java.lang.String[] args)
static int doSAFSInstall() throws java.io.IOException, java.io.FileNotFoundException
Any user-specified directories must exist; or, we must not be denied the ability to create them and write/copy files to them.
java.io.IOException
java.io.FileNotFoundException
static int doSAFSOverlay() throws java.io.IOException, java.io.FileNotFoundException
The overlay ZIP file must exist. An overlay can be applied immediately following a SAFSInstall during the same invocation of this installer.
java.io.IOException
java.io.FileNotFoundException
static int doSTAFInstall(java.lang.String version)
static int doSTAFUnInstall(java.lang.String version)
static int doSAFSUnInstall()
static boolean createSAFSProgramGroup(java.lang.String safsdir)
static int deleteAllDirectory(java.lang.String directory)
directory
- static int copyEmbeddedJRE(java.lang.String jrepath) throws java.io.IOException
jrepath
- -- path to JRE root dir to be copied as an embedded JRE.
Can be null. If null, we seek it in the user's current working directory.
This is presumably where the install was launched from.java.io.FileNotFoundException
java.io.IOException
static int copyInstallDir(java.lang.String installpath) throws java.io.IOException
installpath
- -- path to install root dir to be copied to new install dir.
Can be null. If null, we seek it in the user's current working directory.
This is presumably where the install was launched from.java.io.FileNotFoundException
java.io.IOException
static int copyUninstallDir(java.lang.String uninstallpath) throws java.io.IOException
uninstallpath
- -- path to uninstall root dir to be copied to new uninstall dir.
Can be null. If null, we seek it in the user's current working directory.
This is presumably where the install was launched from.java.io.FileNotFoundException
java.io.IOException
static int doSAFSInstallers()
install
- public static void main(java.lang.String[] args)
args[]
- The following parameters or arguments can be specified:
Copyright © SAS Institute. All Rights Reserved.