Skip to content
⌘ NSIS Forum Archive

Insall Options

5 posts

Guest#
Take a look at:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Good luck, Hendri.
crish#
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
liquidmotion#
check out my GUI for InstallOptions, it generates much of the INI for you, with drag and drop control placement.