Install Options (/DLL)
Copyright © 2001 Michael Bishop (original version) and Nullsoft, Inc. (DLL conversion and integration)

Introduction:
Installer Options was a quick application Michael Bishop threw together so he could prompt the user for some information during the install process. This version is a highly modified version of it that is designed as a NSIS extension DLL for the
NSIS installer. Installer Options will create a dialog box which will be displayed inside of the NSIS window. The dialog box is defined by an INI file, which allows you to define the layout of controls by changing the INI file.

To use the DLL, you should include it as part of your installation. Extract it to known location (probably $TEMP), and then load it using CallInstDLL, passing one parameter on the stack. The one parameter is a name of an .ini file that defines the window. Example:

	SetOutPath $TEMP
	File inst.ini
	File InstallOptions.dll
	Push $TEMP\inst.ini
 	CallInstDLL $TEMP\InstallOptions.dll dialog
        Pop $0
        ;  ($0 would be "success" "cancel" "back" or some other value on error.

	ReadINIStr $1 $TEMP\inst.ini "Field 1" State ; $1 = field #1's state

	Delete $TEMP\inst.nsi
	Delete $TEMP\InstallOptions.dll
It is often very useful to call InstallOptions from the NSIS callback functions .onNextPage and .onPrevPage.

The INI file has one required section. This section includes the number of controls to be created as well as general window attributes. The INI file also includes a variable number of Field sections which are used to create the controls to be displayed.

The required section is named "Settings". It will contain the following values:

Each field section has the heading "Field #" where # must be sequential numbers from 1 to NumFields. Each Field section contains the following values:


History:


  Copyright © 2001 Michael Bishop
  Portions Copyright © 2001 Nullsoft, Inc.

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.