Ich versuche, Windows Installer mit Radiobuttons Seite zu erstellen, wo die Schaltflächen Laufzeit von gefundenen Dateien Pfad erstellt werden. Aber nur der erste Dateipfad wird nur zum Erstellen von Radiobuttons verwendet. Wenn ich MessageBox-Zeile auskommentiere, wird der Pfad aller Dateien angezeigt. Könnte mir bitte jemand helfen?NSIS Runtime nicht erstellt Schaltflächen
Dank
Function getButtons
nsDialogs::Create 1018
Pop $dialog
${NSD_CreateGroupBox} 0 0 100% 100% "These DLLs were found installed"
# get available plugins
${locate::Open} "$dllDir" `/F=1 /D=0 /M=*.dll /B=1` $0
StrCmp $0 0 0 loop
MessageBox MB_OK "Error! No DLL files found..., $dllDir" IDOK close
loop:
# counter for y value
StrCpy $R1 10
# find possible plugins for installation
${Do}
${locate::Find} $0 $1 $2 $3 $4 $5 $6
${If} $1 == ""
${ExitDo}
${EndIf}
;MessageBox MB_OK "Path=$1" IDOK
# calculate radiobutton y value
IntOp $R1 $R1 + 20
${NSD_CreateRadioButton} 20 $R1 100% 50% "$1"
Pop $hwnd
nsDialogs::SetUserData $hwnd "$1"
${NSD_OnClick} $hwnd RadioClick
${Loop}
close:
${locate::Close} $0
${locate::Unload}
nsDialogs::Show
FunctionEnd
Danke, es funktioniert jetzt gut! –