我怎样才能在其他部分做一个部分?

how I can do a section in other section?

我想在其他版块做一个版块,我该怎么做?

Section  /o "Control System Toolbox"

     Section   "Communications Toolbox"
     SectionIn RO
FileWrite  "product=Control System Toolbox$\r$\n"
    AddSize 0
SectionEnd
FileWrite  "product=Control System Toolbox$\r$\n"
    AddSize 0
SectionEnd

您可以在分区组中组织分区。这些组不能执行代码,但您可以在其中放置隐藏部分:

Page Components
Page InstFiles

SectionGroup /e "Main Component"

Section "" SID_MAIN
DetailPrint "Installing Main Component..."
SectionEnd

Section /o "Bonus feature" SID_BONUS
DetailPrint "Installing bonus Component..."
SectionEnd

SectionGroupEnd

!include Sections.nsh
!include LogicLib.nsh
Function .OnSelChange
${If} ${SectionIsSelected} ${SID_BONUS}
    !insertmacro SelectSection ${SID_MAIN} ; The main component is required when installing the bonus component
${EndIf}
FunctionEnd