Archive: Bitmap on custom page


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)


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.


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


:)


thx