NSIS自定义页面的跳转

NSIS自定义页面的跳转

我们自定义两个安装页面

;自定义欢迎页面
Page custom WelcomePage
;自定义修改安装路径的页面
Page custom InstallationPage
从WelcomePage跳转到InstallationPage,这个就是“下一步”按钮的事件。
创建一个RelGotoPage方法:
Function RelGotoPage
IntCmp $R9 0 0 Move Move
StrCmp $R9 "X" 0 Move
StrCpy $R9 "120"
Move:
SendMessage $HWNDPARENT "0x408" "$R9" ""
FunctionEnd

官方解释:页面跳转(http://nsis.sourceforge.net/Go_to_a_NSIS_page)
If a number > 0: Goes foward that number of pages. Code of that page will be executed, not returning to this point. If it is bigger than the number of pages that are after that page, it simulates a “Cancel” click.
If a number < 0: Goes back that number of pages. Code of that page will be executed, not returning to this point. If it is bigger than the number of pages that are before that page, it simulates a “Cancel” click.
If X: Simulates a “Cancel” click. Code will Go to callback functions, not returning to this point.
If 0: Continues on the same page. Code will still be running after the call.

;跳转下一页
 Function onClickNext
 StrCpy $R9 1;跳转上一页StrCpy $R9 -1、跳转下一页的下一页StrCpy $R9 2
 Call RelGotoPage
 Abort
 FunctionEnd
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

雨田哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值