![]() |
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 |
For Modern UI, see Modern UI readme.
Contrib\Modern UI\Readme.html -Stu |
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 |
Did you take a look at Examples\Modern UI\HeaderBitmap.nsi? Isn't it what you want?
|
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 |
1 Attachment(s)
Attached is a modified HeaderBitmap.nsi with an example of changing the header image. It will also be included with 2.05.
|
Thanx dood I will try that
|
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 |
How did you try to add your own image? What error did you get?
|
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 |
Quote:
!define MUI_HEADERIMAGE_BITMAP "C:\DoorBell\geinie03.bmp" |
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 |
| All times are GMT. The time now is 05:02. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.