Archive: installoptions: images


installoptions: images
hi.. !
I'm trying to instert an image to a custom form, and it works, but, if I run the installation from another directory (an empty directory, for example), the form doesn't show the image.
if the image exists in the same directory of installation, it works, if not, does't works..

----- Code to show the form:

Function ShowCustom
GetTempFileName $0 $PLUGINSDIR
File /oname=$0 "colors.ini"
File "sc-l.bmp"
InstallOptions::initDialog /NOUNLOAD "$0"
InstallOptions::show
FunctionEnd

----- Code in the form:

[Field 7]
Type=Bitmap
Text=sc-l.bmp
Left=112
Right=188
Top=57
Bottom=94

-----
What is wrong ? :(


if the image exists in the same directory of installation, it works, if not, does't works..
Basically that's your awnser. Meaning? That Text field must have full qualify valid path of the image file in case that doesn't exists in the same directory.

how can i know the path to image ?
could be something like this....

...
File /oname=$PLUGINSDIR\sc-l.bmp "sc-l.bmp"
...

And..

...
Text=$PLUGINSDIR\sc-l.bmp
...

.. ?


File "/oname=$PLUGINSDIR\sc-l.bmp" "sc-l.bmp"

grilix:
The path in the INI file is fine. It's a relative path, so as long as the BMP is where the INI file is then there will be no problems. Anyway, you can't put $PLUGINSDIR in the INI file - that won't work!

-Stu


doesn't works.. :'(


Hmm.
Try it like this:


Function ShowCustom

InitPluginsDir
SetOutPath $PLUGINSDIR
File "colors.ini"
File "sc-l.bmp"

InstallOptions::dialog "colors.ini"

FunctionEnd


-Stu

Now, it doesn't show me the dialog..

i've tried this too...

Function ShowCustom
InitPluginsDir
SetOutPath $PLUGINSDIR
File "colors.ini"
File "sc-l.bmp"
InstallOptions::initDialog /NOUNLOAD "colors.ini"
InstallOptions::show
FunctionEnd


Sorry.

Function ShowCustom

InitPluginsDir
SetOutPath $PLUGINSDIR
File "colors.ini"
File "sc-l.bmp"

InstallOptions::dialog "$PLUGINSDIR\colors.ini"

FunctionEnd


-Stu