Structure this file is:
title.txt
For all sections is one directory with one txt file "title.txt"
title=01 section
Structure directory is:
Root
|
install.exe
|- 01
| |- title.txt
|
|- 02
| |- title.txt
...
|- 25
|- title.txt
My solution:
But this is not good, because user variables is only 20, and i have 25 sections. So, what can i do? Any reason? Thx
Section "$1"
SectionEnd
Section "$2"
SectionEnd
Function .onInit
FileOpen $R1 "$EXEDIR\01\title.txt" r
FileRead $R1 $R2
StrCpy $1 $R2 "" 6
FileClose $R1
FileOpen $R1 "$EXEDIR\02\title.txt" r
FileRead $R1 $R2
StrCpy $2 $R2 "" 6
FileClose $R1
FunctionEnd