cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
FlexeraFan
Occasional contributor

Not able to change header image on top of dialog

Jump to solution

I need to replace the default banner image at the top of my custom dialog box, and also for InstallShield out of the box dialog boxes. below are two lines of code I am using in order  to try and replace the header image. The code is inside of the .rul file of my custom dialog box. Anyway, the code is not working. The image is at the designated location, yet no header image is replaced. Any ideas what I might be doing wrong?

I have include a screen snapshot of what I am talking about

SdInit();
DialogSetInfo(DLG_INFO_ALTIMAGE,SRCDIR^"C:\\MySourceDir\\OrangeBanner.bmp");

EzDefineDialog(
"dlgAskForCreds",
"",
"",
DialogId);

 

0 Kudos
1 Solution

Accepted Solutions
Flexera Varaprasad
Flexera

Re: Not able to change header image on top of dialog

Jump to solution

Select bitmap control (Name : ControlId_551) on a dialog and browse for new image file name as shown below. You need to repeat for all other dialogs (such as SdWelcome, SdFinish, and SdFinishReboot). After changing the sidebar image and rebuilding the project, the dialogs will be displayed with the custom image. 

image.png

You can as well try changing the direct image in the InstallShield distribution.  but still it will be necessary to right-click each exterior dialog box in the Dialogs view and select Edit to consider modified changes. 

3 Replies
Flexera Varaprasad
Flexera

Re: Not able to change header image on top of dialog

Jump to solution

 

Parameter SRCDIR^"C:\\MySourceDir\\OrangeBanner.bmp" is wrong. You are trying to append SRCDIR with another full path.

               DialogSetInfo(DLG_INFO_ALTIMAGE,SRCDIR^"C:\\MySourceDir\\OrangeBanner.bmp");

You should be able to change the image as below. Make sure image is added to support files:

                     DialogSetInfo(DLG_INFO_ALTIMAGE, SUPPORTDIR ^ "OrangeBanner.bmp", TRUE); 

For more information, refer below example:

https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplib...

0 Kudos
FlexeraFan
Occasional contributor

Re: Not able to change header image on top of dialog

Jump to solution

Thanks,  that worked. Any idea how I can change the side logo which appears on the InstallShield wizard page? It is off to the left of the dialog and takes up 1/3 of the screen.

0 Kudos
Flexera Varaprasad
Flexera

Re: Not able to change header image on top of dialog

Jump to solution

Select bitmap control (Name : ControlId_551) on a dialog and browse for new image file name as shown below. You need to repeat for all other dialogs (such as SdWelcome, SdFinish, and SdFinishReboot). After changing the sidebar image and rebuilding the project, the dialogs will be displayed with the custom image. 

image.png

You can as well try changing the direct image in the InstallShield distribution.  but still it will be necessary to right-click each exterior dialog box in the Dialogs view and select Edit to consider modified changes.