Old 25th January 2011, 16:46   #1
starfighter5
Member
 
starfighter5's Avatar
 
Join Date: Sep 2010
Posts: 66
Finish Page Nsis2Io Error

I have an installer that works correctly so far, I had previously commented out the !insertmacro MUI_PAGE_FINISH line and now want to reactivate it.

My problem is after I reactivate it I get the error.....

code:
Error : resolving install function "Nsis2Io" in function "mui.FinishPre_686.5.9"


Anyone any ideas where I am going wrong?
starfighter5 is offline   Reply With Quote
Old 25th January 2011, 18:08   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,382
Try switching to MUI2.nsh.

Stu
Afrow UK is offline   Reply With Quote
Old 26th January 2011, 10:57   #3
starfighter5
Member
 
starfighter5's Avatar
 
Join Date: Sep 2010
Posts: 66
Thanks, that worked fine, once I had changed my macro commands to be compatible with MUI2.

The Finish page now works, but it is blank, any ideas? Not only it the page itself blank, the buttons at the bottom have no text
starfighter5 is offline   Reply With Quote
Old 26th January 2011, 11:06   #4
starfighter5
Member
 
starfighter5's Avatar
 
Join Date: Sep 2010
Posts: 66
Upon further reading, I am assuming this is to do with the placement of !insertmacro MUI_LANGUAGE "English"

I have experimented with a few different positions but they have all resulted in the finish page being blank, here is the top section of my installer.....

PHP Code:
NSIS e-Science Installer Script V1.0

HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "My Installer"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "My Company"
!define PRODUCT_WEB_SITE "http://www.mysite.com"
!define APP_INST_DIR $8

MUI 1.67 compatible ------
!include 
"MUI2.nsh"

LogicLib needed to use IF statements
!include LogicLib.nsh
!include InstallOptions.nsh


MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\myicon.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\myheader.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\myheader.bmp"
!insertmacro MUI_LANGUAGE "English"
!define MUI_FINISHPAGE_TITLE 'My Installer Has Completed'
!define MUI_FINISHPAGE_TEXT 'When you close this installer, a text file will open giving you further information.  Please read this file carefully'
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt" 
starfighter5 is offline   Reply With Quote
Old 26th January 2011, 11:36   #5
starfighter5
Member
 
starfighter5's Avatar
 
Join Date: Sep 2010
Posts: 66
Solved it!

I moved the !insertmacro MUI_LANGUAGE "English" right down after all of my functions and it has worked!

Thanks for the help
starfighter5 is offline   Reply With Quote
Old 26th January 2011, 11:37   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,382
The MUI readme states you have to use MUI_LANGUAGE after all the MUI_PAGE macros.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump