Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

show disk space requirements in custom dialog

I am using a custom feature selection dialog using checkboxes implemented based on your article in the User Guide. I'd like to also display on the dialog the TOTAL disk space requirement info, similar to when clicking Custom through the SetupType dialog. (However, no need to display by feature, only totals.) Any suggestions on how to acheive this? Do you have this feature in your tools that can be used? Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: show disk space requirements in custom dialog

Hello Jon,

Try using the Volume Cost List control.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Re: show disk space requirements in custom dialog

That's great! This control is what I'm looking for! Another question. How to program it to respond to checkbox selections? Currently, the disk requirement stays the same when I select features. thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: show disk space requirements in custom dialog

Does it update if you enable Themes page -> Settings tab -> Use Enhanced UI: Always?

If not try executing a Update Features Install States custom action when the user checks a Check Box control as described in How do I execute a custom action when a button is pushed? article.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Re: show disk space requirements in custom dialog

Hi Mihai,

I added Custom Action without sequence (Update Feature install states) as you indicated. The disk space updates only when I go to Next or back and come back to the feature selection dialog. I think the issue is with the Condition of the published event. Currently, the Condition = "1 or 0". I believe it should be set to whenever the state of the checkbox is changed, i.e. when user check or uncheck. I'm not sure how to define this. Please provide some instructions. Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: show disk space requirements in custom dialog

Try to set AiRefreshDlg property to any value when the user checks a checkbox instead. This will force the dialog to refresh.
Also, be sure to have Enahnced UI set to always.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Re: show disk space requirements in custom dialog

I got it working. Now I have another problem. The Volume Cost List Control display only in English. My installer is multi-language. How to get it to support French?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: show disk space requirements in custom dialog

Send me your .AIP file to support at advancedinstaller dot com so I can see your settings. Multi-language packages with language selection dialog display the volume cost list control in the selected language. If there's no language selection dialog then try installing on a French machine, it should use the "UI Language" section settings you have in the Translation page -> Languages tab.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”