How can I pass the installation directory info to the custom action exe?

Question

How can I pass the installation directory info to the custom action exe?

Answer

See MSDN Topics:

Changing the Target Location for a Directory [Windows Installer]
MsiSetTargetPath(MSIHANDLE,LPCTSTR,LPCTSTR) function [Windows Installer]
TARGETDIR property [Windows Installer]
Using the Directory Table [Windows Installer]
Specifying Directory Structure [Windows Installer]
Working with Folder Locations [Windows Installer]
Custom Action Type 35 [Windows Installer]
Custom Action Type 51 [Windows Installer]

[Author: Robert Flaming]

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.