Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th January 2003, 21:48   #1
curtisbeef
Junior Member
 
Join Date: Jan 2003
Posts: 8
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 :
PHP Code:
  !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
PHP Code:
!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}"

;-------------------------------- 
curtisbeef is offline   Reply With Quote
Old 17th January 2003, 10:14   #2
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
Check the 'ContribIcon' part of your code. I think it should be: 'Contrib/Icon' or 'Contrib/Icons'.

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 17th January 2003, 11:00   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 17th January 2003, 18:23   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
;*******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


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 17th January 2003, 19:25   #5
curtisbeef
Junior Member
 
Join Date: Jan 2003
Posts: 8
Quote:
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

PHP Code:
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 
curtisbeef is offline   Reply With Quote
Old 17th January 2003, 19:36   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
upload your code


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 17th January 2003, 20:29   #7
curtisbeef
Junior Member
 
Join Date: Jan 2003
Posts: 8
here
Attached Files
File Type: txt boot setup.nsi.txt (3.9 KB, 90 views)
curtisbeef is offline   Reply With Quote
Old 17th January 2003, 20:49   #8
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
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.
Joost Verburg is offline   Reply With Quote
Old 17th January 2003, 21:07   #9
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
Smile Try now :)

Try this !!!

Let us know !!!!!

Good luck
Attached Files
File Type: nsi boot setup.nsi (3.8 KB, 85 views)
Joel is offline   Reply With Quote
Old 17th January 2003, 21:21   #10
curtisbeef
Junior Member
 
Join Date: Jan 2003
Posts: 8
awsome thanks man
curtisbeef is offline   Reply With Quote
Old 17th January 2003, 21:39   #11
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
No problem !!!


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 18th January 2003, 10:21   #12
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
I am sorry for the confusion. I meant MUI_SYSTEM...

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp 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