u need a ini file where u put your controls
and the dll
:
[Settings]
NumFields=5
Title=Neustart
; BackEnabled=1
CancelButtonText=Abbruch
NextButtonText=Weiter >
BackButtonText=< Zurück
[Field 1]
Type=Label
text=Die Installation ist abgeschlossen.
left=20
right=240
top=20
bottom=35
and so on ..
put them into your project and call it like this :
Function .onInit
SetOutPath $TEMP
File "InstallOptions.dll"
File /oname=io.ini "C:\programme\nsis\InstallOptions.ini"
FunctionEnd
second call a function where u want:
Function IO
Push $TEMP\io.ini
CallInstDLL $TEMP\InstallOptions.dll dialog
ReadINIStr $1 $TEMP\io.ini Results 1
StrCmp $1 "0" no
...
no:
...
FunctionEnd
dont forget to delete eveything :
Function Cleanup
Delete $TEMP\InstallOptions.dll
Delete $TEMP\startmenu.ini
FunctionEnd