Package com.sun.jna.platform.win32
Schnittstelle Msi
- Alle Superschnittstellen:
AltCallingConvention
,Library
,StdCall
,StdCallLibrary
Provides access to the w32 MSI installer library.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Library
Library.Handler
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.win32.StdCallLibrary
StdCallLibrary.StdCallCallback
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
The feature was uninstalled.static final int
The advertised feature.static final int
The configuration data is corrupt.static final int
The feature is broken.static final int
The feature is installed in the default location: local or source.static final int
The installation is suspended or in progress.static final int
An invalid parameter was passed to the function.static final int
The feature was installed on the local drive.static final int
The return buffer is full.static final int
The component being requested is disabled on the computer.static final int
The component is being removed.static final int
The feature must run from the source, CD-ROM, or network.static final int
The feature must run from the source, and the source is unavailable.static final int
An unrecognized product or feature was specified.static final Msi
Von Schnittstelle geerbte Felder com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
Von Schnittstelle geerbte Felder com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
MsiEnumComponents
(WinDef.DWORD iComponentIndex, char[] lpComponentBuf) The MsiEnumComponents function enumerates the installed components for all products.int
MsiGetComponentPath
(String szProduct, String szComponent, char[] lpPathBuf, IntByReference pcchBuf) The MsiGetComponentPath function returns the full path to an installed component.int
MsiGetProductCode
(String szComponent, char[] lpProductBuf) The MsiGetProductCode function returns the product code of an application by using the component code of an installed or advertised component of the application.int
MsiLocateComponent
(String szComponent, char[] lpPathBuf, IntByReference pcchBuf) The MsiLocateComponent function returns the full path to an installed component without a product code.
-
Felddetails
-
INSTANCE
-
INSTALLSTATE_NOTUSED
static final int INSTALLSTATE_NOTUSEDThe component being requested is disabled on the computer.- Siehe auch:
-
INSTALLSTATE_BADCONFIG
static final int INSTALLSTATE_BADCONFIGThe configuration data is corrupt.- Siehe auch:
-
INSTALLSTATE_INCOMPLETE
static final int INSTALLSTATE_INCOMPLETEThe installation is suspended or in progress.- Siehe auch:
-
INSTALLSTATE_SOURCEABSENT
static final int INSTALLSTATE_SOURCEABSENTThe feature must run from the source, and the source is unavailable.- Siehe auch:
-
INSTALLSTATE_MOREDATA
static final int INSTALLSTATE_MOREDATAThe return buffer is full.- Siehe auch:
-
INSTALLSTATE_INVALIDARG
static final int INSTALLSTATE_INVALIDARGAn invalid parameter was passed to the function.- Siehe auch:
-
INSTALLSTATE_UNKNOWN
static final int INSTALLSTATE_UNKNOWNAn unrecognized product or feature was specified.- Siehe auch:
-
INSTALLSTATE_BROKEN
static final int INSTALLSTATE_BROKENThe feature is broken.- Siehe auch:
-
INSTALLSTATE_ADVERTISED
static final int INSTALLSTATE_ADVERTISEDThe advertised feature.- Siehe auch:
-
INSTALLSTATE_REMOVED
static final int INSTALLSTATE_REMOVEDThe component is being removed.- Siehe auch:
-
INSTALLSTATE_ABSENT
static final int INSTALLSTATE_ABSENTThe feature was uninstalled.- Siehe auch:
-
INSTALLSTATE_LOCAL
static final int INSTALLSTATE_LOCALThe feature was installed on the local drive.- Siehe auch:
-
INSTALLSTATE_SOURCE
static final int INSTALLSTATE_SOURCEThe feature must run from the source, CD-ROM, or network.- Siehe auch:
-
INSTALLSTATE_DEFAULT
static final int INSTALLSTATE_DEFAULTThe feature is installed in the default location: local or source.- Siehe auch:
-
-
Methodendetails
-
MsiGetComponentPath
int MsiGetComponentPath(String szProduct, String szComponent, char[] lpPathBuf, IntByReference pcchBuf) The MsiGetComponentPath function returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned.- Parameter:
szProduct
- Specifies the product code for the client product.szComponent
- Specifies the component ID of the component to be located.lpPathBuf
- Pointer to a variable that receives the path to the component. This parameter can be null. If the component is a registry key, the registry roots are represented numerically. If this is a registry subkey path, there is a backslash at the end of the Key Path. If this is a registry value key path, there is no backslash at the end. For example, a registry path on a 32-bit operating system of HKEY_CURRENT_USER\SOFTWARE\Microsoft is returned as "01:\SOFTWARE\Microsoft\".pcchBuf
- Pointer to a variable that specifies the size, in characters, of the buffer pointed to by the lpPathBuf parameter. On input, this is the full size of the buffer, including a space for a terminating null character. If the buffer passed in is too small, the count returned does not include the terminating null character. If lpPathBuf is null, pcchBuf can be null.- Gibt zurück:
- The MsiGetComponentPath function returns the following values. INSTALLSTATE_NOTUSED - The component being requested is disabled on the computer. INSTALLSTATE_ABSENT - The component is not installed. INSTALLSTATE_INVALIDARG - One of the function parameters is invalid. INSTALLSTATE_LOCAL - The component is installed locally. INSTALLSTATE_SOURCE - The component is installed to run from source. INSTALLSTATE_SOURCEABSENT - The component source is inaccessible. INSTALLSTATE_UNKNOWN - The product code or component ID is unknown.
-
MsiLocateComponent
The MsiLocateComponent function returns the full path to an installed component without a product code. This function attempts to determine the product using MsiGetProductCode, but is not guaranteed to find the correct product for the caller. MsiGetComponentPath should always be called when possible.- Parameter:
szComponent
- Specifies the component ID of the component to be located.lpPathBuf
- Pointer to a variable that receives the path to the component. The variable includes the terminating null character.pcchBuf
- Pointer to a variable that specifies the size, in characters, of the buffer pointed to by the lpPathBuf parameter. On input, this is the full size of the buffer, including a space for a terminating null character. Upon success of the MsiLocateComponent function, the variable pointed to by pcchBuf contains the count of characters not including the terminating null character. If the size of the buffer passed in is too small, the function returns INSTALLSTATE_MOREDATA. If lpPathBuf is null, pcchBuf can be null.- Gibt zurück:
- The MsiGetComponentPath function returns the following values. INSTALLSTATE_NOTUSED - The component being requested is disabled on the computer. INSTALLSTATE_ABSENT - The component is not installed. INSTALLSTATE_INVALIDARG - One of the function parameters is invalid. INSTALLSTATE_LOCAL - The component is installed locally. INSTALLSTATE_MOREDATA - The buffer provided was too small. INSTALLSTATE_SOURCE - The component is installed to run from source. INSTALLSTATE_SOURCEABSENT - The component source is inaccessible. INSTALLSTATE_UNKNOWN - The product code or component ID is unknown.
-
MsiGetProductCode
The MsiGetProductCode function returns the product code of an application by using the component code of an installed or advertised component of the application. During initialization, an application must determine under which product code it has been installed or advertised.- Parameter:
szComponent
- This parameter specifies the component code of a component that has been installed by the application. This will be typically the component code of the component containing the executable file of the application.lpProductBuf
- Pointer to a buffer that receives the product code. This buffer must be 39 characters long. The first 38 characters are for the GUID, and the last character is for the terminating null character.- Gibt zurück:
- ERROR_BAD_CONFIGURATION - The configuration data is corrupt. ERROR_INSTALL_FAILURE - The product code could not be determined. ERROR_INVALID_PARAMETER - An invalid parameter was passed to the function. ERROR_SUCCESS - The function completed successfully. ERROR_UNKNOWN_COMPONENT - The specified component is unknown.
-
MsiEnumComponents
The MsiEnumComponents function enumerates the installed components for all products. This function retrieves one component code each time it is called.- Parameter:
iComponentIndex
- Specifies the index of the component to retrieve. This parameter should be zero for the first call to the MsiEnumComponents function and then incremented for subsequent calls. Because components are not ordered, any new component has an arbitrary index. This means that the function can return components in any order.lpComponentBuf
- Pointer to a buffer that receives the component code. This buffer must be 39 characters long. The first 38 characters are for the GUID, and the last character is for the terminating null character.- Gibt zurück:
- ERROR_BAD_CONFIGURATION - The configuration data is corrupt. ERROR_INVALID_PARAMETER - An invalid parameter was passed to the function. ERROR_NO_MORE_ITEMS - There are no components to return. ERROR_NOT_ENOUGH_MEMORY - The system does not have enough memory to complete the operation. Available with Windows Server 2003. ERROR_SUCCESS - A value was enumerated.
-