Prinz
7th January 2003 21:44 UTC
Bitmap on custom page
Hi,
Using the InstallOptions DLL I am able to display a bitmap on a custom page.
[Field 1]
Type=bitmap
Text=image.bmp
Left=0
Right=114
Top=150
Bottom=214
Later I realized that the image is not included in your package, but it's an external link to it.
How can I use an image (bitmap) on a custom form that isn't an external link, but is IN the package.exe? (may be extracted to $temp)
kichik
7th January 2003 23:09 UTC
Extract it to $PLUGINSDIR before you call IO and write its path to the INI using WriteIniStr. Don't forget to initialize $PLUGINSDIR before you extract to it using InitPluginDir.
You don't need to worry about deleting the bitmap because $PLUGINSDIR is automatically deleted when the installer is finished.
Prinz
8th January 2003 00:02 UTC
Thanks,
Works great! Thanks
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\image.bmp "c:\image.bmp"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioA.ini"
FunctionEnd
Function SetCustomA
WriteIniStr $PLUGINSDIR\ioA.ini "Field 1" Text $PLUGINSDIR\image.bmp
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini"
FunctionEnd
Prinz
8th January 2003 00:20 UTC
:)
Brummelchen
7th November 2004 14:53 UTC
thx