Open cbielow opened 8 years ago
We currently have this problem also for the installation of OpenMS for our Usertutorials. Maybe I can have a look at this. Do you have any updates?
after browsing the NSIS docs a little, this should be possible via SetSectionFlags http://nsis.sourceforge.net/Docs/Chapter4.html#sectionsetflags
If it is 'silent' or 'silentlog', all sections that have the SF_SELECTED(==1) flag are installed quietly (you can set this flag using SectionSetFlags),
and IfSilent
(http://nsis.sourceforge.net/Docs/Chapter4.html#ifsilent)
along the lines of (untested)
Section test test_section_id
SectionEnd
Function .onInit
IfSilent 0 notSilentMark
# set section 'test' as selected (bit 1 = on)
SectionSetFlags ${test_section_id} 1
SectionSetFlags ${anothersection_id} 1
...
notSilentMark:
... (go on with normal stuff)
FunctionEnd
Ok I am working on it. Two problems:
The installer will show messageboxes (mostly for Proteowizward's .Net depedencies), which currently prevent a silent install. We would need to add an /SD switch to each MB with a default answer (see http://nsis.sourceforge.net/Docs/Chapter4.html#silent)
Alternatively, the install mode '2' currently excludes ThirdParty installation, i.e. would also be silent out of the box. But we do not specify installation types, see http://nsis.sourceforge.net/Reference/SectionIn, (nor do I know how they can be specified from a commandline).