Skip to content
⌘ NSIS Forum Archive

Insert a Gif to TextArea

8 posts

aviadlich#

Insert a Gif to TextArea

I want to insert a gif image (or any other image format but gif is preferred) to a the text area of the MUI FINISH PAGE
Afrow UK#
You cannot add a gif, but you can add an icon.
You need to add an Icon field to ioSpecial.ini before displaying the page:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Stu
aviadlich#
I tried the following code but it doesn't seem to work


!define MUI_PAGE_CUSTOMFUNCTION_PRE fin_pre
!insertmacro MUI_PAGE_FINISH

Function fin_pre

WriteINIStr "$PLUGINSDIR\iospecial.ini" "Settings" "NumFields" "6"

WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Type" "Icon"
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Text" "MyIcon.ico"
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Left" "120"
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Right" "200"
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Top" "70"
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Bottom" "100"
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Flags" "RESIZETOFIT"
FunctionEnd
Afrow UK#
Make sure you specify the full path to the icon, i.e. $PLUGINSDIR\MyIcon.ico and make sure that you extract it at run time with File.

Stu
aviadlich#
I tried it but nothing helps
what should be the output path for the extraction?
I did the extraction in the fin_pre function does it matter?

Is there anything that should be done in the MUI_PAGE_CUSTOMFUNCTION_SHOW ?

Thanks for the quick replies
Afrow UK#
ReserveFile MyIcon.ico
File "/oname=$PLUGINSDIR\MyIcon.ico" MyIcon.ico
WriteINIStr "$PLUGINSDIR\iospecial.ini" "Field 6" "Text" "$PLUGINSIDR\MyIcon.ico"
You may also want to make sure that no other controls (fields) are covering this one up.

Stu
aviadlich#
Thanks
i guess it works now
It did demand a bit of playing with the location of other components on the finish page