最新消息:

NSIS 自动显示组件

nsis 永恒心锁 1092浏览 0评论
!include "UsefulLib.nsh"
Name TestSelectSection
OutFile "TestSelectSection.exe"

Page components
Page instfiles
ShowInstDetails show

Section "01" SEC01
SectionEnd

Section "02" SEC02
SectionEnd

Section "03" SEC03
SectionEnd

Section "04" SEC04
SectionEnd

Function .onInit
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KB920213" "NoModify"
${if} $0 == 1 ;数值等于1,不显示SEC01组件
 !insertmacro SetSectionFlag ${Sec01} ${SF_RO}
 !insertmacro UnselectSection ${Sec01}
 SectionSetText ${Sec01} ""
${endif}
FunctionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » NSIS 自动显示组件

您必须 登录 才能发表评论!