0

几天来我一直试图弄清楚如何做到这一点,但没有运气。在安装过程中按下后退按钮时,我正在尝试返回几页。

我想在页面的创建者过程中做到这一点。

Page custom printerPage1 verifyPrinterFunc1 ": 1. Printer Bilgileri"

通常我可以在安装过程中通过RelGotoPageFunction 跳过页面。

Function RelGotoPage
  IntCmp $R9 0 0 Move Move
  StrCmp $R9 "X" 0 Move
  StrCpy $R9 "3"
Move:
  SendMessage $HWNDPARENT "0x408" "$R9" ""
FunctionEnd

但我不能在后退按钮按下事件(Ex ${NSD_OnBack})中做到这一点

我被困住了,需要有经验的人的帮助。谢谢你。

4

1 回答 1

1
!include nsDialogs.nsh
Licensedata "${__FILE__}"
InstallDir $temp
Page directory
Page components
Page license
Page custom printerPage1 verifyPrinterFunc1 ": 1. Printer Bilgileri"

Function onBack
; Go back two pages to the components page
System::Call 'USER32::PostMessage(i$HWNDPARENT,i0x408,i-2,i0)'
Abort
FunctionEnd

Function printerPage1
nsDialogs::Create 1018
Pop $0
${NSD_OnBack} onBack
nsDialogs::Show
FunctionEnd

Function verifyPrinterFunc1
FunctionEnd
于 2013-04-11T15:39:56.430 回答