View Single Post
Old 15th September 2010, 12:34   #9
JohaViss
Junior Member
 
Join Date: Apr 2010
Posts: 29
Switched to MUI2.

Changed $MUI_HWND to $mui.FinishPage.Run

Getting warning:
PHP Code:
unknown variable/constant "mui.FinishPage.Run" detectedignoring (installatie_functies.nsh:89

Order of includes and pages:
PHP Code:
....
!
define MUI_LANGDLL_REGISTRY_ROOT                   "${PRODUCT_UNINST_ROOT_KEY}"
  
!define MUI_LANGDLL_REGISTRY_VALUENAME              "NSIS:Language"
  
!define MUI_FINISHPAGE_TITLE_3LINES                                           
  
!insertmacro MUI_PAGE_WELCOME

License page
  
!define MUI_LICENSEPAGE_CHECKBOX                                             
  
!insertmacro MUI_PAGE_LICENSE ${LICENCEFILE}                              
;--------------------------------------------------------------------------------------------------

custom pages
  Page custom InstallChoiceInit                InstallChoiceValidate
  Page custom InstallTypeInit                  InstalTypeValidate
 
.... More pages 


Finish page
  
!define MUI_FINISHPAGE_RUN                          
  
!define MUI_FINISHPAGE_RUN_TEXT                     "Start MyApp"
  
!define MUI_FINISHPAGE_RUN_FUNCTION                 RunApplication
  
  
!define MUI_FINISHPAGE_SHOWREADME                   
  
!define MUI_FINISHPAGE_SHOWREADME_TEXT              "View Log"
  
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION          ShowLogFile 
  
!define MUI_PAGE_CUSTOMFUNCTION_SHOW                HideCheckbox
  
  
!insertmacro MUI_DEFAULT MUI_FINISHPAGE_TITLE       "Completing installation."
  
!insertmacro MUI_DEFAULT MUI_FINISHPAGE_TEXT        "The installation completed."           
  
!insertmacro MUI_PAGE_FINISH 
The functions 'RunApplication', 'ShowLogFile' and 'HideCheckbox' are placed in a seperate file (Install_Functions.nsh)

Johan
JohaViss is offline   Reply With Quote