|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.util.os.WinSetupAPIBase
public class WinSetupAPIBase
| Field Summary | |
|---|---|
protected static int |
INVALID_HANDLE_VALUE
|
static int |
SP_COPY_DELETESOURCE
Delete source file on successful copy |
static int |
SP_COPY_FORCE_IN_USE
Force target-in-use behavior |
static int |
SP_COPY_FORCE_NEWER
Like NEWER but no callback nofitication |
static int |
SP_COPY_FORCE_NOOVERWRITE
Like NOOVERWRITE but no callback nofitication |
static int |
SP_COPY_IN_USE_NEEDS_REBOOT
System needs reboot if file in use |
static int |
SP_COPY_LANGUAGEAWARE
Don't overwrite file of different language |
static int |
SP_COPY_NEWER
Copy only if source newer than or same as target |
static int |
SP_COPY_NEWER_ONLY
Copy only if source file newer than target |
static int |
SP_COPY_NEWER_OR_SAME
Copy only if source newer than or same as target |
static int |
SP_COPY_NOBROWSE
Browsing is disallowed for this file or section |
static int |
SP_COPY_NODECOMP
Don't decompress source file while copying |
static int |
SP_COPY_NOOVERWRITE
Copy only if target doesn't exist |
static int |
SP_COPY_NOPRUNE
Never prune this file |
static int |
SP_COPY_NOSKIP
Skip is disallowed for this file or section |
static int |
SP_COPY_OEMINF_CATALOG_ONLY
(SetupCopyOEMInf only) don't copy INF--just catalog |
static int |
SP_COPY_REPLACE_BOOT_FILE
File must be present upon reboot (i.e., it's needed by the loader); this flag implies a reboot |
static int |
SP_COPY_REPLACEONLY
Copy only if target file already present |
static int |
SP_COPY_SOURCE_ABSOLUTE
Parameter SourceFile is a full source path |
static int |
SP_COPY_SOURCE_SIS_MASTER
Source is single-instance store master |
static int |
SP_COPY_SOURCEPATH_ABSOLUTE
Parameter SourcePathRoot is the full path |
static int |
SP_COPY_WARNIFSKIP
System critical file: warn if user tries to skip |
static int |
SP_FLAG_CABINETCONTINUATION
Used with need media notification |
static int |
SPFILEQ_FILE_IN_USE
|
static int |
SPFILEQ_REBOOT_IN_PROGRESS
|
static int |
SPFILEQ_REBOOT_RECOMMENDED
|
| Constructor Summary | |
|---|---|
WinSetupAPIBase(Librarian librarian)
Constructs a WinSetupAPIBase. |
|
| Method Summary | |
|---|---|
void |
freeLibrary(String name)
|
protected void |
SetupCloseFileQueue(int queuehandle)
Closes a file queue. |
protected boolean |
SetupCommitFileQueue(int queuehandle)
Commits the actions stored in the file queue. |
protected int |
SetupOpenFileQueue(Object handler)
Create a file queue |
protected int |
SetupPromptReboot(int queuehandle,
boolean scanonly)
|
protected void |
SetupQueueCopy(int queuehandle,
String SourceRootPath,
String SourcePath,
String SourceFileName,
String SourceDescription,
String SourceTagFile,
String TargetDirectory,
String TargetFileName,
int CopyStyle)
Places an individual file copy operation on a setup file queue. |
protected void |
SetupQueueDelete(int queuehandle,
String PathPart1,
String PathPart2)
Places an individual file delete operation on a setup file queue. |
protected void |
SetupQueueRename(int queuehandle,
String SourcePath,
String SourceFileName,
String TargetPath,
String TargetFileName)
Places an individual file rename operation on a setup file queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int INVALID_HANDLE_VALUE
public static final int SP_COPY_DELETESOURCE
public static final int SP_COPY_REPLACEONLY
public static final int SP_COPY_NEWER
SP_COPY_NEWER_OR_SAME,
Constant Field Valuespublic static final int SP_COPY_NEWER_OR_SAME
SP_COPY_NEWER,
Constant Field Valuespublic static final int SP_COPY_NOOVERWRITE
SP_COPY_FORCE_NOOVERWRITE,
Constant Field Valuespublic static final int SP_COPY_NODECOMP
public static final int SP_COPY_LANGUAGEAWARE
public static final int SP_COPY_SOURCE_ABSOLUTE
public static final int SP_COPY_SOURCEPATH_ABSOLUTE
public static final int SP_COPY_IN_USE_NEEDS_REBOOT
public static final int SP_COPY_FORCE_IN_USE
public static final int SP_COPY_NOSKIP
public static final int SP_FLAG_CABINETCONTINUATION
public static final int SP_COPY_FORCE_NOOVERWRITE
SP_COPY_NOOVERWRITE,
Constant Field Valuespublic static final int SP_COPY_FORCE_NEWER
public static final int SP_COPY_WARNIFSKIP
public static final int SP_COPY_NOBROWSE
public static final int SP_COPY_NEWER_ONLY
public static final int SP_COPY_SOURCE_SIS_MASTER
public static final int SP_COPY_OEMINF_CATALOG_ONLY
public static final int SP_COPY_REPLACE_BOOT_FILE
public static final int SP_COPY_NOPRUNE
public static final int SPFILEQ_FILE_IN_USE
public static final int SPFILEQ_REBOOT_RECOMMENDED
public static final int SPFILEQ_REBOOT_IN_PROGRESS
| Constructor Detail |
|---|
public WinSetupAPIBase(Librarian librarian)
librarian - the librarian
IzPackException - if the WinSetupAPI library cannot be loaded| Method Detail |
|---|
public void freeLibrary(String name)
freeLibrary in interface NativeLibraryClient
protected int SetupOpenFileQueue(Object handler)
throws IOException
handler - Optional instance of WinSetupQueueCallbackInterface handler. If set to null,
use the Setup API's SetupDefaultCallbackHandler.
IOExceptionprotected void SetupCloseFileQueue(int queuehandle)
queuehandle - Handle to the file queue to close.
protected void SetupQueueCopy(int queuehandle,
String SourceRootPath,
String SourcePath,
String SourceFileName,
String SourceDescription,
String SourceTagFile,
String TargetDirectory,
String TargetFileName,
int CopyStyle)
throws IOException
queuehandle - SourceRootPath - (optional)SourcePath - (optional)SourceFileName - SourceDescription - (optional)SourceTagFile - (optional)TargetDirectory - TargetFileName - (optional)CopyStyle -
IOException
protected void SetupQueueDelete(int queuehandle,
String PathPart1,
String PathPart2)
throws IOException
queuehandle - Handle to a setup file queue, as returned by SetupOpenFileQueue.PathPart1 - String that specifies the first part of the path of the file to be deleted.
If PathPart2 is NULL, PathPart1 is the full path of the file to be deleted.PathPart2 - String that specifies the second part of the path of the file to be deleted.
This parameter may be NULL. This is appended to PathPart1 to form the full path of the
file to be deleted. The function checks for and collapses duplicated path separators when it
combines PathPart1 and PathPart2.
IOException
protected void SetupQueueRename(int queuehandle,
String SourcePath,
String SourceFileName,
String TargetPath,
String TargetFileName)
throws IOException
queuehandle - Handle to a setup file queue, as returned by SetupOpenFileQueue.SourcePath - String that specifies the source path of the file to be renamed. If
SourceFileName is not specified, SourcePath is assumed to be the full path.SourceFileName - String that specifies the file name part of the file to be renamed. If
not specified, SourcePath is the full path.TargetPath - String that specifies the target directory. When this parameter is
specified, the rename operation is actually a move operation. If TargetPath is not specified,
the file is renamed but remains in its current location.TargetFileName - String that specifies the new name for the source file.
IOException
protected boolean SetupCommitFileQueue(int queuehandle)
throws IOException
queuehandle - File queue handle
IOException
protected int SetupPromptReboot(int queuehandle,
boolean scanonly)
throws IOException
queuehandle - Optional handle to a setup file queue upon which to base the decision
about whether shutdown is necessary. If FileQueue is null, SetupPromptReboot assumes shutdown
is necessary and asks the user what to do.scanonly - Indicates whether or not to prompt the user when SetupPromptReboot is called.
If TRUE, the user is never asked about rebooting, and system shutdown is not initiated. In
this case, FileQueue must be specified. If FALSE, the user is asked about rebooting, as
previously described. Use ScanOnly to determine if shutdown is necessary separately from
actually initiating a shutdown.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||