View Single Post
Old 12th April 2018, 15:31   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,296
PHP Code:
Function DoWhatever
MessageBox mb_ok Whatever
FunctionEnd

!include "MUI2.nsh"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Do whatever"
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION DoWhatever
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ConfigureFinishPage
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"

!include nsDialogs.nsh
!include FileFunc.nsh
Function ConfigureFinishPage
!if "${MUI_SYSVERSION}>= 2.0
    StrCpy 
$1 $mui.FinishPage.ShowReadme
!else
    
GetDlgItem $1 $MUI_HWND 0x4B3
!endif
${
GetOptions$CMDLINE "/NoShortcut" $0
${If} $== "=1"
    
${NSD_Uncheck} $1
${EndIf}
FunctionEnd 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote