- NSIS Discussion
- Header \ Icon image
Archive: Header \ Icon image
manyaka
21st January 2005 13:06 UTC
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
Afrow UK
21st January 2005 14:19 UTC
For Modern UI, see Modern UI readme.
Contrib\Modern UI\Readme.html
-Stu
manyaka
21st January 2005 15:11 UTC
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
kichik
21st January 2005 15:17 UTC
Did you take a look at Examples\Modern UI\HeaderBitmap.nsi? Isn't it what you want?
Manyaka
21st January 2005 15:27 UTC
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
kichik
21st January 2005 15:32 UTC
Attached is a modified HeaderBitmap.nsi with an example of changing the header image. It will also be included with 2.05.
Manyaka
21st January 2005 15:42 UTC
Thanx dood I will try that
manyaka
21st January 2005 16:01 UTC
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
kichik
21st January 2005 17:32 UTC
How did you try to add your own image? What error did you get?
manyoka
24th January 2005 12:53 UTC
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
glory_man
24th January 2005 12:58 UTC
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\C:\DoorBell\geinie03.bmp"
Try to delete ${NSISDIR}. Leave
!define MUI_HEADERIMAGE_BITMAP "C:\DoorBell\geinie03.bmp"
manyoka
24th January 2005 13:03 UTC
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