InstallAware for Windows Installer
 

Using the Win32 DLL

The steps for programmatically emitting and building an InstallAware setup are summarized as follows:

  1. Use the script management functions to programmatically generate a setup script.
  2. Store the total number of lines used in your script for use in step 3 below.
  3. Use the project management functions to programmatically generate a setup project. Have the project reference an existing setup script.
  4. Use the build function to build a newly generated or existing setup project.

Script Management Functions

miaInitializeScript
miaAddCommand
miaFinalizeScript
miaGetTotalLines

Project Management Functions

miaInitializeProject
miaSetScriptFile
miaClearDialogFiles
miaClearSupportFiles
miaClearMergeFiles
miaClearPatchFiles
miaClearIncludeFiles
miaAddDialogFile
miaAddSupportFile
miaAddMergeFile
miaAddPatchFile
miaAddIncludeFile
miaFinalizeProject

Build Function

miaBuildProject
miaBuildProjectEx
miaBuildProjectEy

Structure

COMMATEXT

Unicode Support

To call the Unicode versions of any of the above functions, append "W" to the end of the function name, and pass all strings as Unicode strings instead of ANSI strings.