Archive: Insall Options


Insall Options
how do i do "Install Options" can some1 help me plz


Take a look at:
http://forums.winamp.com/showthread....threadid=73862

Good luck, Hendri.


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


oops (shit ms ie ..)


check out my GUI for InstallOptions, it generates much of the INI for you, with drag and drop control placement.