2012-09-06 58 views

回答

3

NSIS已經支持:MUI_FINISHPAGE_RUN

你甚至可以強制MUI_FINISHPAGE_SHOWREADME也look and do whatever you want ...

+0

可以ü告訴添加NSIS安裝窗口的結束頁上的複選框,一步一步? – vijil

+0

http://nsis.sourceforge.net/Run_an_application_shortcut_after_an_install – Anders

+0

鏈接不會導致關於MUI_FINISHPAGE_RUN的幫助... –

-2
!include nsDialogs.nsh 
!include LogicLib.nsh 

Name nsDialogs 
OutFile nsDialogs.exe 

XPStyle on 
Var Dialog 
Var Checkbox 

Page custom nsDialogsPage 
Page license 
Page instfiles 

Function nsDialogsPage 
    nsDialogs::Create 1018 
    Pop $Dialog 
    ${If} $Dialog == error 
     Abort 
    ${EndIf}  
    ${NSD_CreateCheckbox} 0 30u 100% 10u "&Something" 
    Pop $Checkbox 
    ${If} $Checkbox_State == ${BST_CHECKED} 
     ${NSD_Check} $Checkbox 
    ${EndIf} 
    # alternative for the above ${If}: 
    #${NSD_SetState} $Checkbox_State 
    nsDialogs::Show 
FunctionEnd 


Section 
    DetailPrint "hello world" 
SectionEnd 
+0

你能花些時間來正確地設置你的代碼嗎? –

相關問題