@@ -240,27 +240,59 @@ Section "Kibana" Kibana
240240 ExecWait " net start kibana" $0
241241SectionEnd
242242
243- Section " Marvel (requires elasticsearch, kibana)" Marvel
243+ Section /o " License Plugin (requires elasticsearch)" License
244+ ExecWait " $INSTDIR\scripts\license-install.bat" $0
245+ SectionEnd
246+
247+ Section /o " Marvel Plugin (requires elasticsearch, kibana, license)" Marvel
244248 ExecWait " $INSTDIR\scripts\marvel-install.bat" $0
245249SectionEnd
246250
247- Section " Sense (requires kibana)" Sense
251+ Section /o " Sense Plugin (requires kibana)" Sense
248252 ExecWait " $INSTDIR\scripts\sense-install.bat" $0
249253SectionEnd
250254
255+ Section /o " Watcher Plugin (requires elasticsearch, license)" Watcher
256+ ExecWait " $INSTDIR\scripts\watcher-install.bat" $0
257+ SectionEnd
258+
251259Function .onSelChange
252260${If} ${SectionIsSelected} ${Elasticsearch}
261+ ; License plugin
262+ !insertmacro ClearSectionFlag ${License} ${SF_RO}
263+
264+ ; Marvel Plugin
253265 ${If} ${SectionIsSelected} ${Kibana}
254- !insertmacro ClearSectionFlag ${Marvel} ${SF_RO}
266+ ${If} ${SectionIsSelected} ${License}
267+ !insertmacro ClearSectionFlag ${Marvel} ${SF_RO}
268+ ${Else}
269+ !insertmacro UnselectSection ${Marvel}
270+ !insertmacro SetSectionFlag ${Marvel} ${SF_RO}
271+ ${EndIf}
255272 ${Else}
256273 !insertmacro UnselectSection ${Marvel}
257274 !insertmacro SetSectionFlag ${Marvel} ${SF_RO}
258275 ${EndIf}
276+
277+ ; Watcher plugin
278+ ${If} ${SectionIsSelected} ${License}
279+ !insertmacro ClearSectionFlag ${Watcher} ${SF_RO}
280+ ${Else}
281+ !insertmacro UnselectSection ${Watcher}
282+ !insertmacro SetSectionFlag ${Watcher} ${SF_RO}
283+ ${EndIf}
259284${Else}
285+ !insertmacro UnselectSection ${License}
286+ !insertmacro SetSectionFlag ${License} ${SF_RO}
287+
260288 !insertmacro UnselectSection ${Marvel}
261289 !insertmacro SetSectionFlag ${Marvel} ${SF_RO}
290+
291+ !insertmacro UnselectSection ${Watcher}
292+ !insertmacro SetSectionFlag ${Watcher} ${SF_RO}
262293${EndIf}
263294
295+ ; Sense plugin
264296${IfNot} ${SectionIsSelected} ${Kibana}
265297 !insertmacro UnselectSection ${Sense}
266298 !insertmacro SetSectionFlag ${Sense} ${SF_RO}
@@ -298,7 +330,6 @@ Section "Uninstall"
298330
299331 DeleteRegKey HKLM " ${uninstkey}"
300332 DeleteRegKey HKLM " ${regkey}"
301-
302- RmDir /r " $INSTDIR"
303333
334+ RmDir /r " $INSTDIR"
304335SectionEnd
0 commit comments