Old 22nd February 2012, 14:12   #1
emres
Junior Member
 
Join Date: Dec 2006
Posts: 2
BMP file not displaying with Unicode NSIS

I used the following script, but it did not appear BMP file

http://nsis.sourceforge.net/ModernUI_Mod_to_Display_Images_while_installing_files
emres is offline   Reply With Quote
Old 22nd February 2012, 19:32   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
My first guess would be: Change LoadImageA to LoadImage

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd February 2012, 05:09   #3
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 562
Send a message via ICQ to T.Slappy
"user32::LoadImageA(i, t, i, i, i, i) i" should be "user32::LoadImageW(i, t, i, i, i, i) i" for Unicode NSIS as Anders said.
Are you sure your .bmp file is fine - it exists, it is not corrupted and it path is correct?
What directory do you extract the .bmp file into?

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2022: www.visual-installer.com
or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 23rd February 2012, 06:50   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Quote:
Originally Posted by T.Slappy View Post
"user32::LoadImageA(i, t, i, i, i, i) i" should be "user32::LoadImageW(i, t, i, i, i, i) i" for Unicode NSIS as Anders said.
This is incorrect, you are making the same mistake as the original script, if you are explicitly using the A/W version of a function then you MUST use the m or w type. Only functions without A/W suffix can use the t type since the system plugin just converts t to m or w based on the functions name...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump