A wrapper for an MSIHANDLE with MSI support functions. More...
#include <MsiInstall.h>
Public Member Functions | |
| MSIHANDLE | Peek () const |
| std::wstring | GetProperty (const std::wstring &name) |
| get a property More... | |
| void | SetProperty (const std::wstring &name, const std::wstring &value) |
| set a property More... | |
| std::string | GetProperty (const std::string &name) |
| get a property More... | |
| void | SetProperty (const std::string &name, const std::string &value) |
| set a property More... | |
| void | GetBinaryData (const std::wstring &name, std::vector< char > &data) |
| get binary data from the Binary table More... | |
| std::wstring | GetViewData (const std::wstring &query) |
| get view data in xml format, executes the query and returns the result in a CustomTable format More... | |
| void | GetViewInfo (const std::wstring &query, std::vector< std::wstring > &names, std::vector< std::wstring > &types) |
| get information on a view (column names and types) More... | |
| void | SetActionData (const std::wstring &action, const std::wstring &data) |
| set action data for a deferred custom action More... | |
| std::wstring | GetActionData () |
| get action data from the CustomActionData property More... | |
| void | LogError (int error) |
| log an error defined in the Error table More... | |
| void | LogError (const std::wstring &message) |
| log a string error More... | |
| void | LogInfo (const std::wstring &action, const std::wstring &message) |
| log info More... | |
| std::wstring | GetFormattedString (const std::wstring &s) |
| get a formatted string More... | |
| bool | EvaluateCondition (const std::wstring &condition) |
| evaluate a condition More... | |
| bool | IsInstalling () |
| returns true if the product is being installed More... | |
| bool | IsReInstalling () |
| returns true if the product is being reinstalled More... | |
| bool | IsUnInstalling () |
| returns true if the product is being uninstalled More... | |
| bool | IsRollback () |
| returns true if the current state is rollback More... | |
| bool | IsComponentInstalling (const std::wstring &component) |
| returns true if the component is being installed More... | |
| bool | IsComponentUnInstalling (const std::wstring &component) |
| returns true if the component is being uninstalled More... | |
| bool | IsComponentReInstalling (const std::wstring &component) |
| returns true if the component is being reinstalled More... | |
| void | GetComponentState (const std::wstring &component, INSTALLSTATE &component_installed, INSTALLSTATE &component_action) |
| returns the component state More... | |
| void | DoAction (const std::wstring &action) |
| execute a custom action More... | |
| MsiInstall (MSIHANDLE h) | |
| virtual | ~MsiInstall () |
A wrapper for an MSIHANDLE with MSI support functions.
| MsiInstall::MsiInstall | ( | MSIHANDLE | h | ) |
|
virtual |
| void MsiInstall::DoAction | ( | const std::wstring & | action | ) |
execute a custom action
| bool MsiInstall::EvaluateCondition | ( | const std::wstring & | condition | ) |
evaluate a condition
| std::wstring MsiInstall::GetActionData | ( | ) |
get action data from the CustomActionData property
| void MsiInstall::GetBinaryData | ( | const std::wstring & | name, |
| std::vector< char > & | data | ||
| ) |
get binary data from the Binary table
| void MsiInstall::GetComponentState | ( | const std::wstring & | component, |
| INSTALLSTATE & | component_installed, | ||
| INSTALLSTATE & | component_action | ||
| ) |
returns the component state
| std::wstring MsiInstall::GetFormattedString | ( | const std::wstring & | s | ) |
get a formatted string
| std::wstring MsiInstall::GetProperty | ( | const std::wstring & | name | ) |
get a property
| std::string MsiInstall::GetProperty | ( | const std::string & | name | ) |
get a property
| std::wstring MsiInstall::GetViewData | ( | const std::wstring & | query | ) |
get view data in xml format, executes the query and returns the result in a CustomTable format
| void MsiInstall::GetViewInfo | ( | const std::wstring & | query, |
| std::vector< std::wstring > & | names, | ||
| std::vector< std::wstring > & | types | ||
| ) |
get information on a view (column names and types)
| bool MsiInstall::IsComponentInstalling | ( | const std::wstring & | component | ) |
returns true if the component is being installed
| bool MsiInstall::IsComponentReInstalling | ( | const std::wstring & | component | ) |
returns true if the component is being reinstalled
| bool MsiInstall::IsComponentUnInstalling | ( | const std::wstring & | component | ) |
returns true if the component is being uninstalled
| bool MsiInstall::IsInstalling | ( | ) |
returns true if the product is being installed
| bool MsiInstall::IsReInstalling | ( | ) |
returns true if the product is being reinstalled
| bool MsiInstall::IsRollback | ( | ) |
returns true if the current state is rollback
| bool MsiInstall::IsUnInstalling | ( | ) |
returns true if the product is being uninstalled
| void MsiInstall::LogError | ( | int | error | ) |
log an error defined in the Error table
| void MsiInstall::LogError | ( | const std::wstring & | message | ) |
log a string error
| void MsiInstall::LogInfo | ( | const std::wstring & | action, |
| const std::wstring & | message | ||
| ) |
log info
|
inline |
| void MsiInstall::SetActionData | ( | const std::wstring & | action, |
| const std::wstring & | data | ||
| ) |
set action data for a deferred custom action
| void MsiInstall::SetProperty | ( | const std::wstring & | name, |
| const std::wstring & | value | ||
| ) |
set a property
| void MsiInstall::SetProperty | ( | const std::string & | name, |
| const std::string & | value | ||
| ) |
set a property
| © Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |