We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Display an icon

I added a pop-up dialog to my installer project which validates some aspects of user input. In addition to strings which announce the result of the validation, I want to display a green check or a red cross next to each item being validated.
I created these symbols as SVG graphics and added them to Themes/Images. Obviously they were converted to ICO format. I assigned the properties CHECKMARK and CROSSMARK to the files.
In the dialog, I added an "icon" type control with Use Indirection=True, Indirect Property=CHECKMARK, and another "icon" control with Property=CROSSMARK. However, both icons are invisible in the dialog editor and at execution time.
Where is my error?

Thank you
Hans
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Display an icon

Hello Hans,

Please have a look over the following article written by my colleague Liviu:

Validate user input and display specific icon/error message

which should cover exactly what you need.

In addition, there is also a sample project at the end that you can look at for any directions, if needed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: Display an icon

Thank you Catalin!

In the meantime I found out that the ico files which AI created when I imported the svg files are completely blank - so no wonder nothing is displayed.

I then exported a png file from my graphics program. After importing this file into Themes -> Images, the graphics was displayed in the preview area of this page. Back in the dialog editor, the icon control is shown as a document symbol with a red question mark. (Screenshot attached)

I deleted the icon control and replaced it by an image control, which works as I hoped. :D

Hans
Attachments
2024-12-03_09h02_05.png
2024-12-03_09h02_05.png (1.13 KiB) Viewed 2870 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Display an icon

You are always welcome, Hans!

Glad to hear you managed to get this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”