com.ibm.jsdt.support
Class SupportWindowsHelper

java.lang.Object
  extended by com.ibm.jsdt.support.SupportHelper
      extended by com.ibm.jsdt.support.SupportWindowsHelper

Deprecated. Due to new package com.ibm.jsdt.support.deploymenthelper

public class SupportWindowsHelper
extends SupportHelper

Windows specific helper functionality.


Field Summary
 
Fields inherited from class com.ibm.jsdt.support.SupportHelper
sNEWLN, theSupportBase
 
Constructor Summary
SupportWindowsHelper()
          Deprecated. Sole constructor.
 
Method Summary
 boolean addLocalUser(SupportBase s)
          Deprecated. Creates a new user ID and password.
 boolean addUser(SupportBase s)
          Deprecated. Creates a new user ID.
 boolean addUserToGroup(SupportBase s)
          Deprecated. Adds a user to a group.
 boolean createRegistryKey(SupportBase s)
          Deprecated. Creates a registry key.
 int createWindowsUser(SupportBase s)
          Deprecated. Creates a new user ID and password.
 boolean deleteRegistryKey(SupportBase s)
          Deprecated. Deletes a registry key (and any subkeys).
 boolean deleteRegistryValueField(SupportBase s)
          Deprecated. Deletes a value name/field under a key.
 boolean doesRegKeyExist(SupportBase s)
          Deprecated. Checks for the existence of a particular subkey in the Winodws registry.
 boolean doesUserIdExist(SupportBase s)
          Deprecated. Determines if the given user ID exists.
 java.lang.String getAdministratorsGroupName(SupportBase s)
          Deprecated. Gets the administrator's group name.
 java.lang.String getIssResponseFileValue(SupportBase s)
          Deprecated. Scans an ISS type response file for a key and returns the string value found.
 java.lang.String[] getRegistrySubkeys(SupportBase s)
          Deprecated. Retrieves a String[] of the names of the subkeys under a given registry key.
 java.lang.String getRegistryValue(SupportBase s)
          Deprecated. Gets a String from the Windows registry.
 int getRegistryValueInt(SupportBase s)
          Deprecated. Gets a number from the Windows registry.
 int getServicePack()
          Deprecated. Gets the Windows service pack level.
 java.lang.String getWinDir(SupportBase s)
          Deprecated. Gets the Windows folder.
 java.util.List getWindowsDrives(SupportBase s)
          Deprecated. Retrieves all of the drives on the Windows system.
 java.lang.String getWindowsShortPath(SupportBase s)
          Deprecated. Retrieves the Windows short name path for the given path.
 java.lang.String getWindowsTempDirectoryPath(SupportBase s)
          Deprecated. Retrieves the Windows temporary folder path associated with the current environment of the user program.
 int getWindowsVersion()
          Deprecated. Gets the current type of Windows operating system.
 void grantPrivilegesToUser(SupportBase s)
          Deprecated. Adds privileges to an existing user account on Microsoft Windows NT or later operating systems.
 boolean isNTFSDirectory(java.lang.String directory)
          Deprecated. Determines if the drive where a folder resides is formatted as an NTFS drive.
 boolean isNTFSDrive(SupportBase s)
          Deprecated. Indicates whether the specified drive is an NTFS formatted volume.
 boolean isUserAndPasswordValid(SupportBase s)
          Deprecated. Verifies if the given user and password are valid.
 boolean isWin2000()
          Deprecated. Confirms that the operating system is Windows 2000.
 boolean isWin2003()
          Deprecated. Confirms that the operating system is Windows 2003.
 boolean isWin2008()
          Deprecated. Confirms that the operating system is Windows 2008.
 boolean isWin95()
          Deprecated. Confirms that the operating system is Windows 95.
 boolean isWin98()
          Deprecated. Confirms that the operating system is Windows 98.
 boolean isWinNT40()
          Deprecated. Confirms that the operating system is Windows NT 4.0.
 boolean isWinVista()
          Deprecated. Confirms that the operating system is Windows Vista.
 boolean isWinXP()
          Deprecated. Confirms that the operating system is Windows XP.
 void setIssResponseFileValue(SupportBase s)
          Deprecated. Scans an ISS type response file for a key and replaces the key value.
 boolean setRegistryNumericValue(SupportBase s, int sValue)
          Deprecated. Sets a registry number (int) value.
 boolean setRegistryStringValue(SupportBase s, java.lang.String sValue)
          Deprecated. Sets a registry string value.
 void setServiceTypeAutoStart(SupportBase s)
          Deprecated. Sets the start type of a Windows service to autostart.
 void setServiceTypeManualStart(SupportBase s)
          Deprecated. Sets the start type of a Windows service to manual.
 void startServices(SupportBase s)
          Deprecated. Starts a Windows service program.
 void stopServices(SupportBase s)
          Deprecated. Stops a Windows service program.
 boolean waitForFileOrRegKey(SupportBase s)
          Deprecated. Polls the system for the existence of a file or registry key or both.
 
Methods inherited from class com.ibm.jsdt.support.SupportHelper
arraySearch, buildCommand, checkDeployerVersion, checkFreeSpace, checkFreeSpaceAvailable, checkTargetDir, checkTargetDirectory, compareVersions, copyDirectory, determineLogFileName, directoryGrep, endOfFileGrep, executeCommand, fileCopy, fileCopyAndRename, fileDelete, fileExists, fileGrep, fileGrep, fileLength, fileSearchAndReplace, fileSearchAndReplaceLine, fileSearchAndReturnLinesWithSearch, findAndReplace, getBackLevelLogFileName, getCommandStdError, getCommandStdOut, getDeployerLocale, getDomain, getEntryResponseFilePath, getExitResponseFilePath, getFileValue, getGroupLocale, getHostName, getIbmNsiISMPPropValue, getIbmNsiProperties, getIbmNsiPropValue, getIbmNsiPropValue, getIbmNsiPropValueByKey, getLastCommandOutput, getLastCommandReturnCode, getLogsDir, getMainResponseFilePath, getOSType, getPartitionCapacity, getPartitionFileSystemType, getPartitionVolumeLabel, getPasswordValue, getPasswordValueByKey, getPreDeploymentCheckerResponseFilePath, getProductInstallingBundleProperties, getProductInstallingId, getProductInstallingVersion, getQualifiedHostName, getQualifiedHostName, getQualifiedTiedPasswordValue, getQualifiedTiedVariableValue, getResponseFilePath, getResponseFilePath, getResponseFilePaths, getResponseFileProperties, getResponseFileProperty, getResponseFileValue, getSelectedTaskList, getSetupFileRemovalSetting, getStringFromCommandArray, getSystemCommandOutput, getSystemCommandOutput, getSystemEnvVar, getTaskApplicationList, getTaskHostnameList, getTempDir, getTheSupportBase, getTiedPasswordValue, getTiedPasswordValueForKey, getTiedVariableValue, getTiedVariableValueForKey, getTranslatedMessage, getUnpackedDir, getVariableValueForTaskApplication, getVpdInstallLocationArray, getVpdPropertyList, getVpdVersionArray, invokeCommand, invokeCommand, invokeCommand, invokeCommandLogOutput, invokeCommandLogOutput, invokeCommandLogOutput, invokeCommandLogOutputToFileName, invokeCommandLogOutputToFileName, invokeCommandLogOutputToFileName, isAix, isAixOSType, isApplicationVersionEqual, isEnoughTargetDirSpace, isEnoughTargetDirSpaceAvailable, isHPUX, isHPUXOSType, isIpv6Address, isLinux, isLinuxOSType, isLinuxX86_32, isLinuxX86_64, isOS400, isOS400OSType, isPortOpen, isPortRegistered, isPowerLinuxOSType, isSameDirectoryName, isSunOS, isSunOSType, isVersionSupported, isWindows, isWindowsOSType, launchAndWait, launchLocalInteractiveProgram, log, log, log, logAppendFile, logAppendFile, logAppendFile, logAppendFile, logAppendFile, logNewLine, logStatus, modifyResponseFile, postCompletionMessageToDeployerUI, postErrorMessageToDeployerMainUI, postErrorMessageToDeployerUI, postInformationMessageToDeployerMainUI, postInformationMessageToDeployerUI, postSuccessMessageToDeployerMainUI, postSuccessMessageToDeployerUI, postWarningMessageToDeployerMainUI, postWarningMessageToDeployerUI, readFile, removeAlphaCharsFromString, replaceSubstring, setFileValue, setIbmNsiProperty, setResponseFileProperty, setResponseFileValue, setResponseFileValue, setTheSupportBase, trimDoubleQuotes, unPackJar, valueExists, waitForFile, writeFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportWindowsHelper

public SupportWindowsHelper()
Deprecated. 
Sole constructor.

Method Detail

isWin2000

public boolean isWin2000()
Deprecated. 
Confirms that the operating system is Windows 2000.

Returns:
a boolean
  • true if the current OS is Windows 2000
  • false if the current OS is not Windows 2000

isWinXP

public boolean isWinXP()
Deprecated. 
Confirms that the operating system is Windows XP.

Returns:
a boolean
  • true if the current OS is Windows XP
  • false if the current OS is not Windows XP

isWin2003

public boolean isWin2003()
Deprecated. 
Confirms that the operating system is Windows 2003.

Returns:
a boolean
  • true if the current OS is Windows 2003
  • false if the current OS is not Windows 2003

isWinNT40

public boolean isWinNT40()
Deprecated. 
Confirms that the operating system is Windows NT 4.0.

Returns:
a boolean
  • true if the current OS is Windows NT 4.0
  • false if the current OS is not Windows NT 4.0

isWin98

public boolean isWin98()
Deprecated. 
Confirms that the operating system is Windows 98.

Returns:
a boolean
  • true if the current OS is Windows 98
  • false if the current OS is not Windows 98

isWinVista

public boolean isWinVista()
Deprecated. 
Confirms that the operating system is Windows Vista.

Returns:
a boolean
  • true if the current OS is Windows Vista
  • false if the current OS is not Windows Vista

isWin2008

public boolean isWin2008()
Deprecated. 
Confirms that the operating system is Windows 2008.

Returns:
a boolean
  • true if the current OS is Windows 2008
  • false if the current OS is not Windows 2008

isWin95

public boolean isWin95()
Deprecated. 
Confirms that the operating system is Windows 95.

Returns:
a boolean
  • true if the current OS is Windows 95
  • false if the current OS is not Windows 95

getRegistryValue

public java.lang.String getRegistryValue(SupportBase s)
Deprecated. 
Gets a String from the Windows registry.

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
  • a String Windows registry string SupportBase.getRegistryString()
Returns:
the value obtained from the Windows registry

getRegistryValueInt

public int getRegistryValueInt(SupportBase s)
Deprecated. 
Gets a number from the Windows registry.

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey()
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
  • a String Windows registry string SupportBase.getRegistryString()
Returns:
the number in the registry at the key

createRegistryKey

public boolean createRegistryKey(SupportBase s)
Deprecated. 
Creates a registry key.

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey()
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
    Returns:
    boolean returns true if registry creation is successful

deleteRegistryKey

public boolean deleteRegistryKey(SupportBase s)
Deprecated. 
Deletes a registry key (and any subkeys).

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey()
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
    Returns:
    boolean returns true if registry deletion is successful

deleteRegistryValueField

public boolean deleteRegistryValueField(SupportBase s)
Deprecated. 
Deletes a value name/field under a key.

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
  • a String Windows registry string SupportBase.getRegistryString()
Returns:
boolean returns true if deletion is successful

setRegistryStringValue

public boolean setRegistryStringValue(SupportBase s,
                                      java.lang.String sValue)
Deprecated. 
Sets a registry string value. If the value name already exists under the key, the value is updated. If the value name does not exist, it will be created and the value assigned to it.

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
  • a String Windows registry string SupportBase.getRegistryString()
  • a String data to be stored with the specified value name
Returns:
boolean Returns true if registry is updated successfully, false if otherwise.

setRegistryNumericValue

public boolean setRegistryNumericValue(SupportBase s,
                                       int sValue)
Deprecated. 
Sets a registry number (int) value. If the value name already exists under the key, the value is updated. If the value name does not exist, it will be created and the value assigned to it.

The SupportBase to be queried must call SupportBase.setRegistryKey, SupportBase.setRegistrySubKey, and SupportBase.setRegistryString before calling this method.
There are 5 valid values for hKey:
1 = HKEY_LOCAL_MACHINE
2 = HKEY_CLASSES_ROOT
3 = HKEY_USERS
4 = HKEY_CURRENT_USER
5 = HKEY_CURRENT_CONFIG

Parameters:
s - the SupportBase to be queried
  • an int that represents a Windows registry key SupportBase.getRegistryKey
  • a String Windows registry subkey SupportBase.getRegistrySubKey()
  • a String Windows registry string SupportBase.getRegistryString()
  • a int data to be stored with the specified value name
Returns:
boolean Returns true if registry is updated successfully, false if otherwise.

addLocalUser

public boolean addLocalUser(SupportBase s)
Deprecated. 
Creates a new user ID and password.

The SupportBase to be queried must call SupportBase.setUserName and SupportBase.setPassword before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String user name SupportBase.getUserName
  • a String password SupportBase.getPassword
Returns:
a boolean
  • true if successfully created
  • false all else

addUser

public boolean addUser(SupportBase s)
Deprecated. 
Creates a new user ID.

The SupportBase to be queried must call SupportBase.setUserName, SupportBase.setPassword, and SupportBase.setGroupName before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String user name SupportBase.getUserName
  • a String password SupportBase.getPassword
  • a String group name SupportBase.getGroupName
Returns:
a boolean
  • true if successfully created
  • false all else

addUserToGroup

public boolean addUserToGroup(SupportBase s)
Deprecated. 
Adds a user to a group.

The SupportBase to be queried must call SupportBase.setUserName and SupportBase.setGroupName before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String user name SupportBase.getUserName
  • a String group name SupportBase.getGroupName
Returns:
a boolean
  • true if successfully added
  • false all else

getServicePack

public int getServicePack()
Deprecated. 
Gets the Windows service pack level.

Returns:
the current Windows service pack level number

doesRegKeyExist

public boolean doesRegKeyExist(SupportBase s)
Deprecated. 
Checks for the existence of a particular subkey in the Winodws registry.

The SupportBase to be queried must call SupportBase.setRegistryKey and SupportBase.setRegistrySubKey before calling this method. There are 5 valid values for setRegistryKey:
HKEY_LOCAL_MACHINE = 1;
HKEY_CLASSES_ROOT = 2;
HKEY_USERS = 3;
HKEY_CURRENT_USER = 4;
HKEY_CURRENT_CONFIG = 5;

The registry subkey should be a string containing the full key path of the subkey. You must use double backslashes ("\\") as subkey delimiters.
Example:
"SOFTWARE\\IBM\\DB2\\DB2 Workgroup Edition\\CurrentVersion"

Parameters:
s - the SupportBase to be queried
  • a String Windows registry key SupportBase.getRegistryKey
  • a String Windows registry subkey SupportBase.getRegistrySubKey
Returns:
a boolean
  • true if registry key exists
  • false all else

getWinDir

public java.lang.String getWinDir(SupportBase s)
Deprecated. 
Gets the Windows folder.

Parameters:
s - the SupportBase to be queried
Returns:
the Windows folder

waitForFileOrRegKey

public boolean waitForFileOrRegKey(SupportBase s)
Deprecated. 
Polls the system for the existence of a file or registry key or both. Pauses the current thread for the specified number of seconds each time the specified file or registry key is not found.

The purpose of this function is to allow synchronization of a wrapper's installation program with the particular product's installation program. The creation of a particular file or registry key can be taken as an indicator that the product's installation routine is complete.

The SupportBase to be queried must call SupportBase.setTimeOut_Sec (-1 for infinite timeout), SupportBase.setInterval_Sec, SupportBase.setPath (can be null), SupportBase.setRegistryKey (set to 5 if the registry key is to be ignored), and SupportBase.setRegistrySubKey (can be null) before calling this method.

Parameters:
s - the SupportBase to be queried
  • a timeout value SupportBase.getTimeOut_Sec
  • a poll interval SupportBase.getInterval_Sec
  • a path SupportBase.getPath
  • a Windows registry key SupportBase.getRegistryKey
  • a Windows registry subkey SupportBase.getRegistrySubKey
Returns:
a boolean
  • true if the file is found (created) or the registry key is found (created)
  • false all else

getWindowsVersion

public int getWindowsVersion()
Deprecated. 
Gets the current type of Windows operating system.

Returns:
an int
    95 = 0
    95OSR2 = 1
    98 = 2
    NT 3.51 = 10
    NT 4.0 = 11
    2000 = 12

getIssResponseFileValue

public java.lang.String getIssResponseFileValue(SupportBase s)
Deprecated. 
Scans an ISS type response file for a key and returns the string value found.

The SupportBase to be queried must call SupportBase.setResponseFileName, SupportBase.setSection, and SupportBase.setKey before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String response file name SupportBase.getResponseFileName
  • a String section of the rsp file, may be "" SupportBase.getSection
  • a String response file key SupportBase.getKey
Returns:
the value found at the key

setIssResponseFileValue

public void setIssResponseFileValue(SupportBase s)
Deprecated. 
Scans an ISS type response file for a key and replaces the key value.

The SupportBase to be queried must call SupportBase.setResponseFileName, SupportBase.setSection, SupportBase.setKey, and SupportBase.setKeyValue before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String response file name SupportBase.getResponseFileName
  • a String section of the rsp file, may be "" SupportBase.getSection
  • a String response file key SupportBase.getKey
  • a String response file key value SupportBase.getKeyValue

doesUserIdExist

public boolean doesUserIdExist(SupportBase s)
Deprecated. 
Determines if the given user ID exists.

The SupportBase to be queried must call SupportBase.setUserName before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String user name SupportWindowsBase.getUserName
Returns:
a boolean
  • true if found
  • false all else

grantPrivilegesToUser

public void grantPrivilegesToUser(SupportBase s)
Deprecated. 
Adds privileges to an existing user account on Microsoft Windows NT or later operating systems.

The SupportBase to be queried must call SupportBase.setUserName and SupportBase.setPrivileges before calling this method.
Constants for some common user privileges follow. See your Microsoft documentation for additional privileges.
Log on on as a service = SeServiceLogonRight
Create a token object = SeCreateTokenPrivilege
Increase quotas = SeIncreaseQuotaPrivilege
Replace process level token = SeAssignPrimaryTokenPrivilege
Act as a part of the operating system = SeTcbPrivilege *

Parameters:
s - the SupportBase to be queried
  • a user name SupportBase.getUserName
  • a privilege SupportBase.getPrivileges

isUserAndPasswordValid

public boolean isUserAndPasswordValid(SupportBase s)
Deprecated. 
Verifies if the given user and password are valid.

The SupportBase to be queried must call SupportBase.setUserName and SupportBase.setPassword before calling this method.

Parameters:
s - the SupportBase to be queried
  • a user name SupportBase.getUserName
  • a password SupportBase.getPassword
Returns:
a boolean
  • true if found
  • false all else

getAdministratorsGroupName

public java.lang.String getAdministratorsGroupName(SupportBase s)
Deprecated. 
Gets the administrator's group name.

Returns:
the group name

stopServices

public void stopServices(SupportBase s)
Deprecated. 
Stops a Windows service program.

The SupportBase to be queried must call SupportBase.setServices before calling this method and provide a List of service names as specified in the Windows registry.

Parameters:
s - the SupportBase to be queried
  • a String response file name SupportBase.getServices

startServices

public void startServices(SupportBase s)
Deprecated. 
Starts a Windows service program.

The SupportBase to be queried must call SupportBase.setServices before calling this method and provide a List of service names as specified in the Windows registry.

Parameters:
s - the SupportBase to be queried
  • a String response file name SupportBase.getServices

setServiceTypeManualStart

public void setServiceTypeManualStart(SupportBase s)
Deprecated. 
Sets the start type of a Windows service to manual.

The SupportBase to be queried must call SupportBase.setServices before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String response file name SupportBase.getServices

setServiceTypeAutoStart

public void setServiceTypeAutoStart(SupportBase s)
Deprecated. 
Sets the start type of a Windows service to autostart.

The SupportBase to be queried must call SupportBase.setServices before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String response file name SupportBase.getServices

getWindowsShortPath

public java.lang.String getWindowsShortPath(SupportBase s)
Deprecated. 
Retrieves the Windows short name path for the given path. If the specified path does not exist on the system, this method returns null .

The SupportBase to be queried must call SupportBase.setPath before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String path SupportBase.getPath
Returns:
the short version of the path.

getWindowsTempDirectoryPath

public java.lang.String getWindowsTempDirectoryPath(SupportBase s)
Deprecated. 
Retrieves the Windows temporary folder path associated with the current environment of the user program.

A slash will be appended to the path.

No SupportBase methods need to be called prior to calling this method.

Type Parameters:
code - SupportBase
Returns:
String

getRegistrySubkeys

public java.lang.String[] getRegistrySubkeys(SupportBase s)
Deprecated. 
Retrieves a String[] of the names of the subkeys under a given registry key. The names are unqualified.

This method is not available on specification versions prior to 2.1.1.0. A value of null is returned if the method call is attempted on a back-level specification version.

If no subkeys are present, null is returned.

The SupportBase to be queried must call SupportBase.setRegistryKey to set the following parameter:

Type Parameters:
code - int representing the hive. There are 5 valid int values for hive: SupportWindowsBase.HKEY_LOCAL_MACHINE SupportWindowsBase.HKEY_CLASSES_ROOT SupportWindowsBase.HKEY_USERS SupportWindowsBase.HKEY_CURRENT_USER SupportWindowsBase.HKEY_CURRENT_CONFIG

The SupportBase to be queried must call SupportBase.setRegistrySubKey to set the following parameter:

code - String The full key path under the hive (parent key). You must use double backslashes ("\\") as subkey delimiters. Example: "SOFTWARE\\IBM\\DB2\\DB2 Workgroup Edition\\CurrentVersion"
Returns:
String[]
Since:
2.1.1.0

isNTFSDrive

public boolean isNTFSDrive(SupportBase s)
Deprecated. 
Indicates whether the specified drive is an NTFS formatted volume.

The SupportBase to be queried must call SupportBase.setWindowsDrive prior to calling this method.

The specified drive must be a letter appended with a colon and, optionally, a backslash. For example: "C:" or "C:\".

Type Parameters:
code - SupportBase
Returns:
boolean

getWindowsDrives

public java.util.List getWindowsDrives(SupportBase s)
Deprecated. 
Retrieves all of the drives on the Windows system.

If this method is called on IBM Installation Agents with specifications prior to 2.1.1.0, an empty List is returned.

Nothing needs to be set into the SupportBase prior to calling this method.

Type Parameters:
code - SupportBase
Returns:
List

createWindowsUser

public int createWindowsUser(SupportBase s)
Deprecated. 
Creates a new user ID and password.

Returns a native int system return code. Some relevant possible return values are: Success 1 The user name parameter is not valid. 2202 The password parameter is not valid. 2203 The user account already exists. 2224 The password is shorter than required. 2245

The SupportBase to be queried must call SupportBase.setUserName and SupportBase.setPassword< /code> before calling this method.

Parameters:
s - the SupportBase to be queried
  • a String user name SupportBase.getUserName
  • a String password SupportBase.getPassword
Returns:
int

isNTFSDirectory

public boolean isNTFSDirectory(java.lang.String directory)
Deprecated. 
Determines if the drive where a folder resides is formatted as an NTFS drive.

Returns:
a boolean
  • true if the drive where the folder resides is formatted as an NTFS drive
  • false if the folder string is null, zero length, or does not contain a drive letter