Archive: Wont let me use my own Icons...


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}"

>;--------------------------------

Check the 'ContribIcon' part of your code. I think it should be: 'Contrib/Icon' or 'Contrib/Icons'.


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.


;*******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


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
>

upload your code


here


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.


Try now :)
  Try this !!!

Let us know !!!!!

Good luck :p


awsome thanks man


No problem !!! :)


I am sorry for the confusion. I meant MUI_SYSTEM... :(