|
|
#1 |
|
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 |
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
For Modern UI, see Modern UI readme.
Contrib\Modern UI\Readme.html -Stu |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#5 |
|
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 |
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] 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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
Thanx dood I will try that
|
|
|
|
#8 |
|
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 |
|
|
|
#9 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#10 |
|
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 |
|
|
|
|
|
#11 | |
|
Senior Member
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
|
Quote:
!define MUI_HEADERIMAGE_BITMAP "C:\DoorBell\geinie03.bmp" |
|
|
|
|
|
|
#12 |
|
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|