curtisbeef
16th January 2003 22:48 UTC
Wont let me use my own Icons...
I didnt want to use the "modern-install/modern-uninstall" icons
but it doesnt want to work...
I used :
!define MUI_ICON "${NSISDIR}\Contrib\Icon\normal-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Icon\normal-uninstall.ico"
Here is a bit of code from my script
!define MUI_PRODUCT "Crystalfontz Boot Screen"
>!define MUI_VERSION "1.0"
>!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
>;--------------------------------
;Configuration
!define MUI_ICON "${NSISDIR}\Contrib\Icon\normal-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Icon\normal-uninstall.ico"
!define MUI_COMPONENTSPAGE
!define MUI_DIRECTORYPAGE
!define MUI_ABORTWARNING
!define MUI_UNINSTALLER
!define MUI_UNCONFIRMPAGE
;Language
!insertmacro MUI_LANGUAGE "English"
;General
OutFile "Setup.exe"
;Descriptions
LangString DESC_SecCopyUI${LANG_ENGLISH} "Install the core"
;Folder-selection page
InstallDir "$PROGRAMFILES\${MUI_PRODUCT}"
>;--------------------------------
virtlink
17th January 2003 11:14 UTC
Check the 'ContribIcon' part of your code. I think it should be: 'Contrib/Icon' or 'Contrib/Icons'.
kichik
17th January 2003 12:00 UTC
That's not the problem. You must define settings before you include System.nsh because System.nsh is the script that handles all of the defines and if the defines are not defined when it compiles it can't handle them.
Joel
17th January 2003 19:23 UTC
;*******This is your post code:
!define MUI_PRODUCT "Crystalfontz Boot Screen"
!define MUI_VERSION "1.0"
!include "${NSISDIR}ContribModern UISystem.nsh"
;--------------------------------
;Configuration
!define MUI_ICON "${NSISDIR}ContribIcon\normal-install.ico"
!define MUI_UNICON "${NSISDIR}ContribIcon\normal-uninstall.ico"
;***************end of your post code
;*********This is that should be
!define MUI_PRODUCT "Crystalfontz Boot Screen"
!define MUI_VERSION "1.0"
!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
;--------------------------------
;Configuration
!define MUI_ICON "${NSISDIR}\Contrib\Icons\normal-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Icons\normal-uninstall.ico"
;***************END
curtisbeef
17th January 2003 20:25 UTC
Originally posted by kichik
That's not the problem. You must define settings before you include System.nsh because System.nsh is the script that handles all of the defines and if the defines are not defined when it compiles it can't handle them.
if i do that it give me errors too
Processing script file: "C:\Documents and Settings\CURTISBEF\Desktop\CF PROGRAM!!!\Installer\Boot Setup.nsi"
>!define: "MUI_PRODUCT"="Crystalfontz Boot Screen"
>!define: "MUI_VERSION"="1.0"
>!define: "MUI_ICON"="C:\Program Files\NSIS\Contrib\Icons\normal-install.ico"
>!define: "MUI_UNICON"="C:\Program Files\NSIS\Contrib\Icons\normal-uninstall.ico"
>!include: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
>!include: closed: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
>!define: "MUI_ICON" already defined!
>Error in script "C:\Documents and Settings\CURTISBEF\Desktop\CF PROGRAM!!!\Installer\Boot Setup.nsi" on line 11 -- aborting creation process
>
Joel
17th January 2003 20:36 UTC
upload your code
curtisbeef
17th January 2003 21:29 UTC
here
Joost Verburg
17th January 2003 21:49 UTC
You don't have to define 'em before inserting System.nsh, but before inserting MUI_SYSTEM.
Make sure that the filenames are correct and it should work.
Joel
17th January 2003 22:07 UTC
Try now :)
Try this !!!
Let us know !!!!!
Good luck :p
curtisbeef
17th January 2003 22:21 UTC
awsome thanks man
Joel
17th January 2003 22:39 UTC
No problem !!! :)
kichik
18th January 2003 11:21 UTC
I am sorry for the confusion. I meant MUI_SYSTEM... :(