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

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

Member Function Documentation

void AppSecInc::Msi::MsiInstall::DoAction ( const std::wstring &  action  ) 

execute a custom action

bool AppSecInc::Msi::MsiInstall::EvaluateCondition ( const std::wstring &  condition  ) 

evaluate a condition

std::wstring AppSecInc::Msi::MsiInstall::GetActionData (  ) 

get action data from the CustomActionData property

void AppSecInc::Msi::MsiInstall::GetBinaryData ( const std::wstring &  name,
std::vector< char > &  data 
)

get binary data from the Binary table

void AppSecInc::Msi::MsiInstall::GetComponentState ( const std::wstring &  component,
INSTALLSTATE &  component_installed,
INSTALLSTATE &  component_action 
)

returns the component state

std::wstring AppSecInc::Msi::MsiInstall::GetFormattedString ( const std::wstring &  s  ) 

get a formatted string

std::string AppSecInc::Msi::MsiInstall::GetProperty ( const std::string &  name  ) 

get a property

std::wstring AppSecInc::Msi::MsiInstall::GetProperty ( const std::wstring &  name  ) 

get a property

std::wstring AppSecInc::Msi::MsiInstall::GetViewData ( const std::wstring &  query  ) 

get view data in xml format, executes the query and returns the result in a CustomTable format

void AppSecInc::Msi::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 AppSecInc::Msi::MsiInstall::IsComponentInstalling ( const std::wstring &  component  ) 

returns true if the component is being installed

bool AppSecInc::Msi::MsiInstall::IsComponentReInstalling ( const std::wstring &  component  ) 

returns true if the component is being reinstalled

bool AppSecInc::Msi::MsiInstall::IsComponentUnInstalling ( const std::wstring &  component  ) 

returns true if the component is being uninstalled

bool AppSecInc::Msi::MsiInstall::IsInstalling (  ) 

returns true if the product is being installed

bool AppSecInc::Msi::MsiInstall::IsRollback (  ) 

returns true if the current state is rollback

bool AppSecInc::Msi::MsiInstall::IsUnInstalling (  ) 

returns true if the product is being uninstalled

void AppSecInc::Msi::MsiInstall::LogError ( int  error  ) 

log an error defined in the Error table

void AppSecInc::Msi::MsiInstall::LogError ( const std::wstring &  message  ) 

log a string error

void AppSecInc::Msi::MsiInstall::LogInfo ( const std::wstring &  action,
const std::wstring &  message 
)

log info

MSIHANDLE AppSecInc::Msi::MsiInstall::Peek (  )  const [inline]
void AppSecInc::Msi::MsiInstall::SetActionData ( const std::wstring &  action,
const std::wstring &  data 
)

set action data for a deferred custom action

void AppSecInc::Msi::MsiInstall::SetProperty ( const std::string &  name,
const std::string &  value 
)

set a property

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

set a property


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


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