Skip to content
⌘ NSIS Forum Archive

Resource hacker .. and bitmap controls

6 posts

VegetaSan#

Resource hacker .. and bitmap controls

Hey people,

Iam using "Resource hacker" and "ChangeUI"(statement) to modify the UI I want to use during my installation. In Resource hacker; I want to add a bitmap control to my UI but how/where do I specify the bitmap's resource(file) ?

Thank you, VegetaSan.

(Resource hacker)
Comm@nder21#
you need to add it manually on runtime.

use
File /oname=$PLUGINSDIR\bitmap.bmp bitmap.bmp
and
AddBrandingImage /ID=<controlid> $PLUGINSDIR\bitmap.bmp

in .onGuiInit
VegetaSan#
an error occured:

Error: command AddBrandingImage not valid in function

:/

any ideas when/where I need to use this command then?
VegetaSan#
SetBrandingImage:
Error: no branding image found in chosen UI!

outfile vegeta.exe
name vegeta
caption "oi oi oi"
!include "MUI.nsh"
XPStyle On
ChangeUI all "${NSISDIR}\Contrib\UIs\vegetasan.exe"

function .onGuiInit
File /oname=$PLUGINSDIR\lmfao.bmp c:\lmfao.bmp
SetBrandingImage /IMGID=119 "$PLUGINSDIR\lmfao.bmp"
functionend

section
setoutpath "C:\"
file /a "76 - Protecting My Devotion.mp3"
sectionend
Any idea's why it gives this error
Comm@nder21#
use the page's show function instead of global function .onguiinit.

my mistake.

and extract the file in .oninit rather than in .onguiinit