This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- DialogSetInfo not working on installscript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 15, 2010
03:37 AM
DialogSetInfo not working on installscript
I added this piece of code in my script
What this does is, just remove the default image (both the icon on the left side and the banner image, so it does something), but does not place my selected image. The return value is always 0, so no errors... not even when I change the file name to one that realy does not exist.
Untitled.bmp is a 55x55 24bit bitmap.
I tried various locations of the image (including in SUPPORTDIR ^)
I tried skins and "Slate" same result for both.
Can anyone tell me what I'm doing wrong?
function OnBegin( )
STRING test;
NUMBER nResult;
begin
nResult = SdInit ();
NumToStr ( test , DialogSetInfo(DLG_INFO_ALTIMAGE, "C:\TEMP\Untitled.bmp", TRUE) );
MessageBox(test,SEVERE);
end;
What this does is, just remove the default image (both the icon on the left side and the banner image, so it does something), but does not place my selected image. The return value is always 0, so no errors... not even when I change the file name to one that realy does not exist.
Untitled.bmp is a 55x55 24bit bitmap.
I tried various locations of the image (including in SUPPORTDIR ^)
I tried skins
Can anyone tell me what I'm doing wrong?
4 Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 15, 2010
08:22 AM
In InstallScript strings, you'll want to enter \\ for each single backslash. The \t value might be expanding to a tab character.
Perhaps first try this as an argument---
"C:\\TEMP\\Untitled.bmp"
Then try copying the bitmap into the Support Files view and using the expression---
SUPPORTDIR ^ "Untitled.bmp"
Perhaps first try this as an argument---
"C:\\TEMP\\Untitled.bmp"
Then try copying the bitmap into the Support Files view and using the expression---
SUPPORTDIR ^ "Untitled.bmp"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 15, 2010
08:35 AM
Thanks for the answer.
even changing to \\ does not work. 😞
and your second sugestion I already tried, to no avail.
Thats why I test with a fixed location now, since I dont get an error code on an incorrectly named file, now I know that the problem is not some coversion from SUPPORTDIR or the image not being added to the setup or anything like that.
even changing to \\ does not work. 😞
and your second sugestion I already tried, to no avail.
Thats why I test with a fixed location now, since I dont get an error code on an incorrectly named file, now I know that the problem is not some coversion from SUPPORTDIR or the image not being added to the setup or anything like that.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 15, 2010
08:50 AM
Can you open the bitmap with (and save from) MS Paint? Sometimes the issue is caused by a different bitmap format created by a different application.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
05:22 AM
Solved it,
I assumed it was a 24bit bitmap...
since I opend them in paint and saved them as 24bit bitmap, (from 32bit)
But apperantly paint does not convert it.... only when you chose 8bit it actualy does something.
Used Gimp to make the originals 24bit and everthing worked fine.
Some error codes would have been nice though 🙂
I assumed it was a 24bit bitmap...
since I opend them in paint and saved them as 24bit bitmap, (from 32bit)
But apperantly paint does not convert it.... only when you chose 8bit it actualy does something.
Used Gimp to make the originals 24bit and everthing worked fine.
Some error codes would have been nice though 🙂
