!include LogicLib.nsh
!include nsdialogs.nsh
XPStyle on
Page components
Page custom nsdialogspage
Page directory
OutFile "test.exe"
Name "test"
Section "test"
SectionEnd
Var Initialpage
Var Text
Var Text2
Function nsdialogspage
nsDialogs::Create 1018
Pop $0
${If} $Initialpage == ''
StrCpy $Text "默认值"
StrCpy $Initialpage "1"
${EndIf}
${NSD_CreateText} 0 0 80u 12u $Text
Pop $Text2
${NSD_OnChange} $Text2 OnChange
nsDialogs::Show
FunctionEnd
Function OnChange
Pop $Text2
${NSD_GetText} $Text2 $Text
FunctionEnd
© 版权声明
THE END
暂无评论内容