thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Status Checkboxes

I am trying to use checkboxes as a way to display progress for various tasks being performed.

If I set the "Enabled" property to "False". This pretty much addresses my need, but that causes the checkboxes to be displayed grayed out.

Is it possible to display the checkboxes as they normally are displayed but prevent the user from changing the status (checked vs. not checked)?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Status Checkboxes

Hello,

Indeed, when the False flag is set for the Enabled attribute, the CheckBox control is displayed grayed out. This is the default behavior of Windows Installer.

As a workaround, have you considered adding an image control? By enabling the Enhanced User Interface you can also display animated .GIF or transparent .PNG files. You can read more about it in the Enhanced User Interface article.

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Status Checkboxes

That is probably exactly what I need. Do you have an example project file with that included so I can see how it is implemented?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Status Checkboxes

Hello,

Unfortunately, we don't have any samples regarding this. However, I'll try to guide you in order to implement this.
First of all, you need to enable the Enhanced User Interface option from the Themes Settings page. Please note that the Enhanced User Interface is handled by our bootstrapper which require the package type as an .EXE (you can have an .EXE with resources inside or an .EXE with resources next to it).

In the Dialogs page you can select the dialog where you want to add the related .gif file and use the New Control -> Image toolbar button to add the image control.
In the image path field from the control properties you can set the path to your .GIF file.

By the way, did you noticed our Display user friendly installation log tutorial which will guide you in displaying and configuring the user friendly installation log?

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Status Checkboxes

Thanks for the reply. I got it sorted out.

I ended up stacking multiple images (empty box, checked box, box with an X) on top of each other and created control conditions for each so that only one is displayed depending on the value in a property.

That did the trick.

Much appreciated.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Status Checkboxes

Hello,

I'm glad you got this working. If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”