Public Member Functions

AppSecInc::Msi::MsiInstall Class Reference

A wrapper for an MSIHANDLE with MSI support functions. More...

#include <MsiInstall.h>

Inheritance diagram for AppSecInc::Msi::MsiInstall:
AppSecInc::Msi::MsiImpersonatedInstall

List of all members.

Public Member Functions

MSIHANDLE Peek () const
std::wstring GetProperty (const std::wstring &name)
 get a property
void SetProperty (const std::wstring &name, const std::wstring &value)
 set a property
std::string GetProperty (const std::string &name)
 get a property
void SetProperty (const std::string &name, const std::string &value)
 set a property
void GetBinaryData (const std::wstring &name, std::vector< char > &data)
 get binary data from the Binary table
std::wstring GetViewData (const std::wstring &query)
 get view data in xml format, executes the query and returns the result in a CustomTable format
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)
void SetActionData (const std::wstring &action, const std::wstring &data)
 set action data for a deferred custom action
std::wstring GetActionData ()
 get action data from the CustomActionData property
void LogError (int error)
 log an error defined in the Error table
void LogError (const std::wstring &message)
 log a string error
void LogInfo (const std::wstring &action, const std::wstring &message)
 log info
std::wstring GetFormattedString (const std::wstring &s)
 get a formatted string
bool EvaluateCondition (const std::wstring &condition)
 evaluate a condition
bool IsInstalling ()
 returns true if the product is being installed
bool IsUnInstalling ()
 returns true if the product is being uninstalled
bool IsRollback ()
 returns true if the current state is rollback
bool IsComponentInstalling (const std::wstring &component)
 returns true if the component is being installed
bool IsComponentUnInstalling (const std::wstring &component)
 returns true if the component is being uninstalled
bool IsComponentReInstalling (const std::wstring &component)
 returns true if the component is being reinstalled
void GetComponentState (const std::wstring &component, INSTALLSTATE &component_installed, INSTALLSTATE &component_action)
 returns the component state
void DoAction (const std::wstring &action)
 execute a custom action
 MsiInstall (MSIHANDLE h)
virtual ~MsiInstall ()

Detailed Description

A wrapper for an MSIHANDLE with MSI support functions.


Constructor & Destructor Documentation

MsiInstall::MsiInstall ( MSIHANDLE  h)
MsiInstall::~MsiInstall ( ) [virtual]

Member Function Documentation

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::string MsiInstall::GetProperty ( const std::string &  name)

get a property

std::wstring MsiInstall::GetProperty ( const std::wstring &  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

Todo:
The view is executed twice, once to get the info, once in GetViewData

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

Todo:
This has to be wrong for reinstall

bool MsiInstall::IsRollback ( )

returns true if the current state is rollback

bool MsiInstall::IsUnInstalling ( )

returns true if the product is being uninstalled

Todo:
This has to be wrong for reinstall

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

MSIHANDLE AppSecInc::Msi::MsiInstall::Peek ( ) const [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::string &  name,
const std::string &  value 
)

set a property

void MsiInstall::SetProperty ( const std::wstring &  name,
const std::wstring &  value 
)

set a property


The documentation for this class was generated from the following files:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com