grilix
13th April 2006 18:42 UTC
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 ? :(
Joel
13th April 2006 18:49 UTC
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.
grilix
13th April 2006 18:52 UTC
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
...
.. ?
Afrow UK
13th April 2006 18:52 UTC
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
grilix
13th April 2006 19:05 UTC
doesn't works.. :'(
Afrow UK
13th April 2006 19:09 UTC
Hmm.
Try it like this:
Function ShowCustom
InitPluginsDir
SetOutPath $PLUGINSDIR
File "colors.ini"
File "sc-l.bmp"
InstallOptions::dialog "colors.ini"
FunctionEnd
-Stu
grilix
13th April 2006 19:20 UTC
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
Afrow UK
13th April 2006 20:28 UTC
Sorry.
Function ShowCustom
InitPluginsDir
SetOutPath $PLUGINSDIR
File "colors.ini"
File "sc-l.bmp"
InstallOptions::dialog "$PLUGINSDIR\colors.ini"
FunctionEnd
-Stu