Feb
12
NSIS中当没有需安装组件被选中,下一步按钮为不可用的脚本
; —— 当没有组件被选中时下一步按钮为不可用 ——
Push $0
Push $1
SectionGetFlags ${Section11} $0
IntOp $0 ${SF_SELECTED} & $0
SectionGetFlags ${Section21} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
SectionGetFlags ${Section22} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
SectionGetFlags ${Section231} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
SectionGetFlags ${Section232} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
SectionGetFlags ${Section233} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
SectionGetFlags ${Section24} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
SectionGetFlags ${Section3} $1
IntOp $1 ${SF_SELECTED} & $1
IntOp $0 $1 | $0
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 $0
Pop $1
Pop $0
FunctionEnd





