This is my problem. I want to do something like in Winamp installer - Interface and Skin Selection (on custom page we got 3 radiobuttons (modern, classic and Other) - the Other radiobutton is related to droplist)).
The Modern radiobutton is checked by default.
1. How to load to droplist all skins that are located in Winamp skin directory? I use function:
Function GetSkins
;Exch $5
FindFirst $2 $1 "$INSTDIR\\Skins\\*.*"
StrCpy $9 ""
StrCmp $2 "" error
again:
StrCmp $1 "" done
StrCmp $9 "" 0 append
StrCpy $9 $1
Goto readnext
append:
StrCpy $9 "$9|$1"
readnext:
FindNext $2 $1
Goto again
done:
FindClose $2
; now write to the ini file
WriteINIStr "$PLUGINSDIR\\skorki.ini" "Field 7" "ListItems" $9
DetailPrint $9
goto finished
error:
; hmmm
finished:
FunctionEnd This function works good, but this displayed all files and folders - I need to display only *.wsz, *.wal and folders, not for example something.txt.The second issue is that this function returns something like this:
ListItems=.|..|Modern Skin|Classic Skin|
How to remove this .|.. ?
2 problem
How to do, that when I click Classic radiobutton the state of it will be saved to my ini file (I don't know why, but it doesn't work - it is saved but just after clicking Next button and close the page - I want to change its state immediately after click on it).
Or when I click Other radiobutton the state of the droplist will be saved...
(Later, I can use this state saved in ini file to write suitable skin on disk.)
I hope you know what I mean.
Thanks for any help.
-Pepe