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
- :
- Billboards wont display PLEASE HELP
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
‎Jun 29, 2009
04:01 PM
Billboards wont display PLEASE HELP
Hello all, thank you for taking the time to read this post. I have been trying to enable the usage of billboards in my InstallScript MSI Project. Several days have past and I still have not found an answer :(. According to the documentation, to enable the usage of billboards, all you need to do is un-comment out Enable( BACKGROUND );, and SetColor(BACKGROUND,RGB (0, 0, 0));, at OnFirstUIBefore, which I have done. When I run the installer, it runs in fullscreen with a solid black background and no fullwindow mode options at the top as intended. I have even tried enabling fullwindow mode. No billboards are displayed. My billboards are labeled bbrd1.bmp-bbrd10.bmp. They are bitmaps all with a depth of 24-bit. They open with Photoshop CS4 and IrfanView just fine. Their resolutions are all 800x600. I have tried placing all the bitmaps in Language Independent, English (United States), and both, all under Billboards. I couldn't find anything in the documentation on how to create the small status/progress box that is placed in the lower left-hand corner of the screen while the billboards are being displayed, either. I have also tried placing the Enable ( BACKGROUND ) and SetColor code in other locations within the script. Still no luck :(. I have spent almost a week trying to enable these billboards, still with no luck or progress and they are needed... PLEASE HELP
Thanks in advance
Thanks in advance
(9) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2009
05:47 PM
Right, the documentation section Creating Installations > Defining the User Interface > Displaying Billboards has detailed information.
Can you open the bitmap with Paint? Does it work with just one billboard image?
Searching the knowledge base for "billboard" might also help.
Can you open the bitmap with Paint? Does it work with just one billboard image?
Searching the knowledge base for "billboard" might also help.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2009
07:47 PM
Yes, I'm able to open all the bitmaps in paint without a problem.
EDIT: I have also used this code with OnShowUI:
[PHP]if ( LoadStringFromStringTable( "TITLE_MAIN", szTitle ) < ISERR_SUCCESS ) then // Load the title string.
szTitle = IFX_SETUP_TITLE;
endif;
SetTitle( szTitle, 24, WHITE );
Enable( FULLWINDOWMODE );
Enable( BACKGROUND );
SetColor( BACKGROUND, RGB( 0, 0, 0 ) );
[/PHP]
EDIT: I have also used this code with OnShowUI:
[PHP]if ( LoadStringFromStringTable( "TITLE_MAIN", szTitle ) < ISERR_SUCCESS ) then // Load the title string.
szTitle = IFX_SETUP_TITLE;
endif;
SetTitle( szTitle, 24, WHITE );
Enable( FULLWINDOWMODE );
Enable( BACKGROUND );
SetColor( BACKGROUND, RGB( 0, 0, 0 ) );
[/PHP]
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2009
09:18 PM
OK, I managed to get a bitmap to display by saving the original bitmap in paint. I did this step for all my bitmaps. The code I used to show the bitmap is:
[PHP]//set the background picture
PlaceBitmap(SUPPORTDIR ^ "bbrd1.bmp", 1, CENTERED, CENTERED, CENTERED);
Delay(3);
PlaceBitmap(SUPPORTDIR ^ "bbrd1.bmp", 1, CENTERED, CENTERED, REMOVE);
PlaceBitmap(SUPPORTDIR ^ "bbrd2.bmp", 2, CENTERED, CENTERED, CENTERED);
Delay(3);
PlaceBitmap(SUPPORTDIR ^ "bbrd2.bmp", 2, CENTERED, CENTERED, REMOVE);
[/PHP]
The only problem is I cant seem to get the bitmaps to change :(. Any ideas?
EDIT: I managed to change the bitmaps, but how do I loop them until all the files have been copied?
[PHP]//set the background picture
PlaceBitmap(SUPPORTDIR ^ "bbrd1.bmp", 1, CENTERED, CENTERED, CENTERED);
Delay(3);
PlaceBitmap(SUPPORTDIR ^ "bbrd1.bmp", 1, CENTERED, CENTERED, REMOVE);
PlaceBitmap(SUPPORTDIR ^ "bbrd2.bmp", 2, CENTERED, CENTERED, CENTERED);
Delay(3);
PlaceBitmap(SUPPORTDIR ^ "bbrd2.bmp", 2, CENTERED, CENTERED, REMOVE);
[/PHP]
The only problem is I cant seem to get the bitmaps to change :(. Any ideas?
EDIT: I managed to change the bitmaps, but how do I loop them until all the files have been copied?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
09:38 AM
Billboards normally shouldn't need any script code for the individual images; they should automatically display during data transfer...
You might call PlaceWindow(BILLBOARD, 0, 0, UPPER_LEFT) to ensure the bitmaps aren't obscured by the progress dialog, though it doesn't sound as if that's the issue. (You can also change Enable(STATUSEX) to something else to use a smaller progress dialog, if you want; see the Enable help topic.)
You might call PlaceWindow(BILLBOARD, 0, 0, UPPER_LEFT) to ensure the bitmaps aren't obscured by the progress dialog, though it doesn't sound as if that's the issue. (You can also change Enable(STATUSEX) to something else to use a smaller progress dialog, if you want; see the Enable help topic.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
03:23 PM
RobertDickau wrote:
Billboards normally shouldn't need any script code for the individual images; they should automatically display during data transfer...
You might call PlaceWindow(BILLBOARD, 0, 0, UPPER_LEFT) to ensure the bitmaps aren't obscured by the progress dialog, though it doesn't sound as if that's the issue. (You can also change Enable(STATUSEX) to something else to use a smaller progress dialog, if you want; see the Enable help topic.)
Interesting... If I remove the PlaceBitmap code from the script no bitmaps are shown. As for the status window, I've already figured out how to make it a small box placed to the lower left of the screen. So what you're saying is that my 10 billboards do not need any coding to make them display and change during file transfer? As long as the billboards are enabled in the script they should work? At this point I'm at a loss because I'm totally confused as to what to do next. But if you personally wanted to enable billboards in your installscript msi project how would you go about doing this?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
05:15 PM
My test was:
[list=1]
Use MS Paint to create bbrd1.bmp and bbrd2.bmp (they say "Billboard one of two" and "Billboard two of two").
Create InstallScript MSI project, drop the two bitmaps into Support Files/Billboards > Billboards > Language Independent.
Create a component with a simple dynamic file link (C:\Windows\help\*.chm, no subdirectories, no best-practice components) to slow down file transfer enough that both billboards will be displayed.
In InstallScript, edit OnFirstUIBefore: uncomment the SetTitle-to-SetColor block, add PlaceWindow(BILLBOARD, 0, 0, UPPER_LEFT).
Build and run.
During first half of file transfer, bbrd1.bmp is displayed; during second half, bbrd2.bmp is displayed. (Of course, I'd personally change the font, background color, etc., but you get the idea.)
Maybe see if that works on a test project, and go from there?
[list=1]
During first half of file transfer, bbrd1.bmp is displayed; during second half, bbrd2.bmp is displayed. (Of course, I'd personally change the font, background color, etc., but you get the idea.)
Maybe see if that works on a test project, and go from there?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
05:57 PM
I got my billboards to work without any placebitmap code. Thank you very much. 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
06:15 PM
Great news---thanks for the update! (Out of curiosity, what fixed it?)
Robert
Robert
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
11:57 PM
RobertDickau wrote:
Great news---thanks for the update! (Out of curiosity, what fixed it?)
Robert
Heh, my patient did. You see, I'm very pressed for time for this project and rushed (d'oh) through testing, never allowing the installer to actually install anything. So I went back to my script, removed all the PlaceBitmap codes and just left Enable (BILLBOARD);. I added a few of my billboards and they displayed without problem :).