离开自定义页面保存设置

!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
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容