I have a .txt file with this lines:
- app1
- app2
- app3
- ...
- appN
Also I have this files at the ${srcdir} before I make an installer:
- ${srcdir}\app1
- ${srcdir}\app2
- ${srcdir}\app3
- ...
- ${srcdir}\appN
List of files always changes so I need to manually correct the nsi-script.
How can I make checkbox-list at custom page with listview which depends on file.txt?
Now I'm using component page and simple construction to check for files.
SectionGroup /e "Installing apps" SecApps
!if /FileExists "E:\src\app.dll"
Section "Install app1"
SetOutPath "$InstDir"
File "E:\src\app.dll"
SectionEnd
!endif
!if /FileExists "E:\src\app2.dll"
Section "Install app2"
SetOutPath "$InstDir"
File "E:\src\app2.dll"
SectionEnd
!endif
!if /FileExists "E:\src\app3.dll"
Section "Install app3"
SetOutPath "$InstDir"
File "E:\src\app3.dll"
SectionEnd
!endif
SectionGroupEnd
When you want to do something advanced at compile-time the best option is usually to call an external script/application with
!system: