VegetaSan
29th January 2006 12:39 UTC
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
29th January 2006 16:43 UTC
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
29th January 2006 17:04 UTC
an error occured:
Error: command AddBrandingImage not valid in function
:/
any ideas when/where I need to use this command then?
Comm@nder21
29th January 2006 17:27 UTC
erm
oops :)
its SetBrandingImage
AddBrandingImage adds a new imagecontrol.
VegetaSan
29th January 2006 19:00 UTC
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
30th January 2006 18:06 UTC
use the page's show function instead of global function .onguiinit.
my mistake.
and extract the file in .oninit rather than in .onguiinit