Archive: Custom Page : Bitmap not in package


Custom Page : Bitmap not in package
Hi,
My problem is that my images are not visible. Unless I put the record.bmp next to the executable !?
anyone see my problem
Thank you !


Name    "Test BitMap"
OutFile "TestBitMap.exe"

## Include headers
!include MUI.nsh

## Pages
Page custom RecordingPage RecordingLeave ": Enregistrement"
Page Custom InputBoxPageShow InputBoxPageLeave
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES


# CUSTOM PAGE.
Function .onInit
#!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "record.ini" "Recording"
InitPluginsDir
File /oname=$PLUGINSDIR\record.bmp "record.bmp"
File /oname=$PLUGINSDIR\demonstration.bmp "demonstration.bmp"
File /oname=$PLUGINSDIR\record.ini "record.ini"
FunctionEnd

Function RecordingPage
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "record.ini"

!insertmacro MUI_INSTALLOPTIONS_WRITE "record.ini" "Field 1" "Text" "record.bmp"
!insertmacro MUI_INSTALLOPTIONS_WRITE "record.ini" "Field 2" "Text" "demonstration.bmp"

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "record.ini"
FunctionEnd

Function RecordingLeave
!insertmacro MUI_INSTALLOPTIONS_READ $R1 "record.ini" "Field 3" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $R2 "record.ini" "Field 5" "State"
FunctionEnd

Section 'A section'
SectionEnd

Give it the full path to the bitmap.

Stu


It's OK Thanks :
The code if it can help someone else :

Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\record.bmp "record.bmp"
File /oname=$PLUGINSDIR\demonstration.bmp "demonstration.bmp"
FunctionEnd

Function RecordingPage
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "record.ini"

!insertmacro MUI_INSTALLOPTIONS_WRITE "record.ini" "Field 1" "Text" $PLUGINSDIR\record.bmp
!insertmacro MUI_INSTALLOPTIONS_WRITE "record.ini" "Field 2" "Text" $PLUGINSDIR\demonstration.bmp

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "record.ini"
FunctionEnd