Functions
RegistryImpl.h File Reference

Go to the source code of this file.

Functions

CA_API UINT __stdcall Registry_CopyBranch (MSIHANDLE hInstall)
 Copy a full registry branch. More...
 
CA_API UINT __stdcall Registry_MoveBranch (MSIHANDLE hInstall)
 Move a full registry branch. More...
 
CA_API UINT __stdcall Registry_DeleteBranch (MSIHANDLE hInstall)
 Delete a full registry branch. More...
 
CA_API UINT __stdcall Registry_CreateKey (MSIHANDLE hInstall)
 Creates a registry key. More...
 
CA_API UINT __stdcall Registry_SetStringValue (MSIHANDLE hInstall)
 Delete a full registry branch. More...
 
CA_API UINT __stdcall Registry_KeyExists (MSIHANDLE hInstall)
 Check if a registry key exists. More...
 
CA_API UINT __stdcall Win32_RegistryCopy_Immediate (MSIHANDLE hInstall)
 Copy registry keys. This is a table-driven custom action. Use in combination with AppSecInc.Wix.Extensions.SystemToolsExtension. More...
 
CA_API UINT __stdcall Win32_RegistryCopy_Deferred (MSIHANDLE hInstall)
 

Function Documentation

CA_API UINT __stdcall Registry_CopyBranch ( MSIHANDLE  hInstall)

Copy a full registry branch.

Parameters
REGISTRY_ROOTOne of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc
REGISTRY_PATH_SOURCEA registry path under REGISTRY_ROOT to copy from
REGISTRY_ROOT_TARGETAn optional registry target, one of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc.
REGISTRY_PATH_TARGETA registry path under REGISTRY_ROOT to copy to
Returns
check CA_ERROR on function failure
CA_API UINT __stdcall Registry_CreateKey ( MSIHANDLE  hInstall)

Creates a registry key.

Parameters
REGISTRY_ROOTOne of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc
REGISTRY_PATHA registry path under REGISTRY_ROOT that has to be created
Returns
check CA_ERROR on function failure
CA_API UINT __stdcall Registry_DeleteBranch ( MSIHANDLE  hInstall)

Delete a full registry branch.

Parameters
REGISTRY_ROOTOne of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc
REGISTRY_PATHA registry path under REGISTRY_ROOT to delete
Returns
check CA_ERROR on function failure
CA_API UINT __stdcall Registry_KeyExists ( MSIHANDLE  hInstall)

Check if a registry key exists.

Parameters
REGISTRY_ROOTOne of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc
REGISTRY_PATHA registry path under REGISTRY_ROOT
REGISTRY_NAMEName. Set it to an empty value for checking only the key.
Returns
check CA_ERROR on function failure
CA_API UINT __stdcall Registry_MoveBranch ( MSIHANDLE  hInstall)

Move a full registry branch.

Parameters
REGISTRY_ROOTOne of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc
REGISTRY_PATH_SOURCEA registry path under REGISTRY_ROOT to move from
REGISTRY_ROOT_TARGETAn optional registry target, one of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc.
REGISTRY_PATH_TARGETA registry path under REGISTRY_ROOT to move to
Returns
check CA_ERROR on function failure
CA_API UINT __stdcall Registry_SetStringValue ( MSIHANDLE  hInstall)

Delete a full registry branch.

Parameters
REGISTRY_ROOTOne of HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, etc
REGISTRY_PATHA registry path under REGISTRY_ROOT where the name has to be set
REGISTRY_NAMEThe name for which the value has to be set
REGISTRY_VALUEThe value
Returns
check CA_ERROR on function failure
CA_API UINT __stdcall Win32_RegistryCopy_Deferred ( MSIHANDLE  hInstall)
CA_API UINT __stdcall Win32_RegistryCopy_Immediate ( MSIHANDLE  hInstall)

Copy registry keys. This is a table-driven custom action. Use in combination with AppSecInc.Wix.Extensions.SystemToolsExtension.



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