Old 21st January 2005, 12:06   #1
manyaka
Guest
 
Posts: n/a
Header \ Icon image

Hi guys, first I would just like to thank everyone that helped me over the last month.

I need to put my own icon and my own header image onto my installer wich is proving to be a bit of a pain, so if you guys could please send me some coding or something,I would realy appreciate the help.

Thanx so much.
Manyaka
  Reply With Quote
Old 21st January 2005, 13:19   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
For Modern UI, see Modern UI readme.
Contrib\Modern UI\Readme.html

-Stu
Afrow UK is offline   Reply With Quote
Old 21st January 2005, 14:11   #3
manyaka
Guest
 
Posts: n/a
Arrow How do I get a Header image on my Installer?

Hi guys I am still battling to get this right.The coding just will not work.Please send me some coding.I have been to the Modern UI Readme but the coding thats there does not work / compile on my PC.

Thanx guys,Sorry I posted the question twice, but I am desp.

Manyaka
  Reply With Quote
Old 21st January 2005, 14:17   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Did you take a look at Examples\Modern UI\HeaderBitmap.nsi? Isn't it what you want?

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 21st January 2005, 14:27   #5
Manyaka
Guest
 
Posts: n/a
I tried

Yes, I tried that coding, but I dont know it does not exlplain properly.I have saved the image that I want displayed on my C:/ drive,but I am finding it hard for the installer to read it from there.Please send me a good example.

Thanx dood
  Reply With Quote
Old 21st January 2005, 14:32   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Attached is a modified HeaderBitmap.nsi with an example of changing the header image. It will also be included with 2.05.
Attached Files
File Type: nsi headerbitmap.nsi (2.0 KB, 157 views)

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 21st January 2005, 14:42   #7
Manyaka
Guest
 
Posts: n/a
Thanx dood I will try that
  Reply With Quote
Old 21st January 2005, 15:01   #8
manyaka
Guest
 
Posts: n/a
Hey dood.When I try an add my own image,it still does not work.I dont Know what I am doing wrong.

Please help.
Thanx
  Reply With Quote
Old 21st January 2005, 16:32   #9
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
How did you try to add your own image? What error did you get?

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 24th January 2005, 11:53   #10
manyoka
Junior Member
 
Join Date: Dec 2004
Location: Jo-burg.South Africa
Posts: 14
Here is what I tried

;NSIS Modern User Interface
;Header Bitmap Example Script
;Written by Joost Verburg

;--------------------------------
;Include Modern UI

!include "MUI.nsh"

;--------------------------------
;General

;Name and file
Name "Modern UI Test"
OutFile "HeaderBitmap.exe"

;Default installation folder
InstallDir "$PROGRAMFILES\Modern UI Test"

;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Modern UI Test" ""

;--------------------------------
;Interface Configuration

!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\C:\DoorBell\geinie03.bmp" ----This is the image I want
!define MUI_ABORTWARNING

;--------------------------------
;Pages

!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------
;Languages

!insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections

Section "Dummy Section" SecDummy

SetOutPath "$INSTDIR"

;ADD YOUR OWN FILES HERE...

;Store installation folder
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR

;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"

SectionEnd

;--------------------------------
;Descriptions

;Language strings
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."

;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

;--------------------------------
;Uninstaller Section

Section "Uninstall"

;ADD YOUR OWN FILES HERE...

Delete "$INSTDIR\Uninstall.exe"

RMDir "$INSTDIR"

DeleteRegKey /ifempty HKCU "Software\Modern UI Test"

SectionEnd
manyoka is offline   Reply With Quote
Old 24th January 2005, 11:58   #11
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
Quote:
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\C:\DoorBell\geinie03.bmp"
Try to delete ${NSISDIR}. Leave
!define MUI_HEADERIMAGE_BITMAP "C:\DoorBell\geinie03.bmp"
glory_man is offline   Reply With Quote
Old 24th January 2005, 12:03   #12
manyoka
Junior Member
 
Join Date: Dec 2004
Location: Jo-burg.South Africa
Posts: 14
ha ha

Hey dood, you will not beleive me when I say I have tried that, but when I did it now again, it worked.Thanx dood.
Manyoka.
I owe u 1
manyoka 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