NSIS invisible header text - nsis

Header text in license window is invisible. After I click I Agree button and Back button text appears.
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "MY\IMAGE.bmp"
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
I use WelcomeFinish.nsi
How can I solve this?

Had to use Resource Hacker to change the order of elements on exe template.

Related

How to resize the list box of sections in NSIS MUI_PAGE_INSTFILES

I want to change the basic style of the Install Files page of NSIS.
Currently it shows a list box of sections and i want that the width of this listbox will change automatically according to it's content.
And maybe to remove the other empty listbox as shown in the image below.
thanks.
I'm using MUI2 and there is the code:
page components
!define MUI_PAGE_CUSTOMFUNCTION_SHOW InstFilesShow
!insertmacro MUI_PAGE_INSTFILES
http://i.stack.imgur.com/T3VD5.png
it happens because of this use
page components
i changed to this and added the
**!define MUI_COMPONENTSPAGE_NODESC**
!define MUI_COMPONENTSPAGE
!insertmacro MUI_PAGE_COMPONENTS
it works :)

Back Button gets hidden in choose StartMenu Page for NSIS - Ultra Modern UI

I have pages lined up like this:
!define MUI_PAGE_CUSTOMFUNCTION_PRE PageCheck ;Hiding Welcome Page if needed
!insertmacro MUI_PAGE_WELCOME
Page custom ChooseDirAndOverWrite ChooseDirAndOverWriteLeave
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER $StartMenuDefault
!insertmacro UMUI_PAGE_ALTERNATIVESTARTMENU "Application" $StartMenuFolder
!insertmacro UMUI_PAGE_CONFIRM
When I reach the screen "choose Startmenu folder", which is !insertmacro UMUI_PAGE_ALTERNATIVESTARTMENU "Application" $StartMenuFolder, the Back button is visible for a split second and then gets hidden, only on first time.
On clicking next, then coming back, the Button is enabled there onwards.
What may be causing this behaviour, and where can I get it corrected ?
Also, I read that Ultra Modern UI StartMenu Page does not have a Show Function. Is there a work around for it ?

How to change Progress bar length in MUI instfiles page and arrange button position?

I'm using the MUI Page INSTFILES in my Installer and I want to change the length of the Progress bar and the Position of the "Show Details" Button in it.
Is this possible still using the MUI Page or do I have to make my own custom Page with nsDialogs?
You can use Resource Hacker to edit ${NSISDIR}\Contrib\UIs\modern.exe and then use this new UI resource:
!define MUI_UI myNewUI.exe
!include MUI2.nsh
...
The other alternative is to call SetWindowPos or MoveWindow with the system plugin at run-time but this is a bit harder to do...

How can i change welcome page image in my installer?

I want to change nsis welcome page default image in welcome screen so i am trying to use following code .But these are showing blank.
CODE:
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\NXP.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\NXP.bmp"
How did you create NXP.bmp?
NSIS doesn't accept all BMP variants. I sometimes need to open and save bmp files with Paint in order to be sure it will be a valid BMP file.

How to put background on the top for internal pages of installer

How can I put the background image to the top of internal installer page, so it takes all header area.
In solution below background takes only left side of the header
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "top.bmp"
!include "MUI2.nsh"
You can't do this without modifying a UI executable. See the MUI 2 docs, specifically the MUI_UI definition. You'd need to take the default executable and with a resource hacker change the size of that header image.
You may also be able to swing this with resource hacking and the value of MUI_UI_HEADERIMAGE (see those docs). I'm not sure, though, as I've never tried it.
I have found the answer
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH

Resources