Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ZipDLL MUI and NSIS 2.0 Help Plz (http://forums.winamp.com/showthread.php?t=174109)

mlampcov 25th March 2004 17:46

ZipDLL MUI and NSIS 2.0 Help Plz
 
Hello everyone,

I am having a problem that I am baffled on. I had a .nsi that compiled fine in 1.98 of NSIS, but now with 2.0 every time I try to compile the ZipDLL.nsh spits out an error telling me to "Include Modern UI First!", which is exactly what I include on the line before !include "ZipDLL.nsh"

Code Snippet...
;NSIS Modern User Interface version 1.63


!define MUI_PRODUCT "Cypress DocuSuite Demo" ;Define your own software name here
!define MUI_VERSION "V1.0.1" ;Define your own software version here
!define MUI_ICON "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\cypressicon.ico"
!define MUI_UNICON "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\cypressunicon.ico"
!define MUI_HEADERBITMAP "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\installer_header.bmp"

!include "MUI.nsh"
!include "ZipDLL.nsh"

;--------------------------------


... And this is as far as it gets. Any Help you might be able to offer would be great.

Is it possible that when i re-installed ZipDLL I didn't put all the files in the right places within the NSIS folders?

Thanks in advance.

Marc

Joost Verburg 25th March 2004 17:49

ZipDLL is a component that has nothing to do with the user interface, so you should be able to use it without any MUI code.

It looks like the author of this DLL uses some Modern UI macros. You are using an old development version (Modern UI 1.63), which is probably not compatible with this code.

bluenet 26th March 2004 11:05

I hack this code in ZipDLL.nsh

!ifndef MUI_MACROS_USED
!error "Please include modern UI first!!"
!endif

to

;!ifndef MUI_MACROS_USED
; !error "Please include modern UI first!!"
;!endif

It works well

mlampcov 26th March 2004 16:44

Thanks for the help. I ended up doing the same hack last night. But I feel a whole lot better someone else tried the same thing.

Thanks,

Marc

Joost Verburg 26th March 2004 16:49

That name should be replaced by MUI_INCLUDED.

Dj Nyx 29th March 2004 15:08

i have the same problem!
i use nsis 2.0 and i always get this errormessage:
"!error: Please include modern UI first!!"
i commented this part out...
PHP Code:

!ifndef MUI_MACROS_USED
!error "Please include modern UI first!!"
!endif 

but then i get this message:
"Invalid command: ZipDLL::extractall
Error in macro MUI_ZIPDLL_EXTRACTALL on macroline 77
Error in macro copyfiles on macroline 8
Error in script "C:\dev\ClientEntwicklung\ITS\ITS_NSIS_Setup\examinersetup\ITSExaminer.nsi" on line 86 -- aborting creation process"

can anyone help me?

Joost Verburg 29th March 2004 15:14

Did you copy the file to the plug-ins folder? Is the command in the list at the top of the compiler output?

Dj Nyx 29th March 2004 15:21

it is in the include folder, but i include it this way...

PHP Code:

    !include "MUI.nsh"
    
!include "${NSISDIR}\Include\ZipDLL\zipdll.nsh"
    
!include ITSExaminer.nsh
    
!include bit_functions.nsh 

and its at the top... should i post the whole script?

thx for the quickie answer

Joost Verburg 29th March 2004 15:24

I'm talking about the plug-in DLL file.

Comm@nder21 29th March 2004 15:59

this code:
PHP Code:

!define MUI_PRODUCT "Cypress DocuSuite Demo" ;Define your own software name here
!define MUI_VERSION "V1.0.1" ;Define your own software version here
!define MUI_ICON "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\cypressicon.ico"
!define MUI_UNICON "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\cypressunicon.ico"
!define MUI_HEADERBITMAP "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\installer_header.bmp"

!include "MUI.nsh"
!include "ZipDLL.nsh" 

should better look like that:
PHP Code:

!include "MUI.nsh"
!include "ZipDLL.nsh"
!define PRODUCT "Cypress DocuSuite Demo"
!define VERSION "V1.0.1"
# MUI_PRODUCT and MUI_VERSION don't exist any more, see MUI-readme for more information.
!define MUI_ICON "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\cypressicon.ico"
!define MUI_UNICON "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\cypressunicon.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "C:\Documents and Settings\marc\My Documents\Cypress\Support\DemoInstaller\installer_header.bmp" 

now, it's compatible to MUI 1.70, which is included in NSIS 2.1.
it's recommended to upgrade :)

Dj Nyx 30th March 2004 06:21

oh i see... i have forgotten to copy the dll into the plugins folder...

thx


All times are GMT. The time now is 04:40.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.