2013-04-10 151 views
0

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

我想在页面的Creater程序中做到这一点。

Page custom printerPage1 verifyPrinterFunc1 ": 1. Printer Bilgileri" 

通常情况下,我能够通过RelGotoPage功能在安装过​​程中跳过页面。

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

但我不能这样做,在后退按钮按下事件(E.x. ${NSD_OnBack}

我被困,需要从有经验的头脑帮助。谢谢。

回答

0
!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 
+0

非常感谢Anders。 – 2013-04-12 08:03:26

+0

也感谢您的编辑Seki。 – 2013-04-12 08:17:12