View Single Post
Old 23rd December 2005, 14:27   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
It is quite simple really.

code:
Page Custom ShowCustom1

Var HWND

Function .onInit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioFile.ini"
FunctionEnd

Function ShowCustom1

!insertmacro MUI_HEADERTEXT "blah" "blah"

!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioFile.ini"
Pop $HWND ;HWND (handle) of dialog

Push "$PLUGINSDIR\ioFile.ini" ;Page .ini file where the field can be found.
Push "$HWND" ;Page handle you got when reserving the page.
Push "1" ;Field number to set focus.
Call SetFocus

!insertmacro MUI_INSTALLOPTIONS_SHOW

FunctionEnd



-Stu
Afrow UK is offline   Reply With Quote