开发者

how to modify wix DiskCostDlg message dynamically based on the disk size?

I am using Wix for my installer. There is DiskCostDlg displayed once I select "Disk Usage" from CustomizeDlg.

Even though I have enough space, the text message displays,

“Highlighted volumes do not have enough disk space available for the currently selected features...”

Is there any way, I can开发者_如何学编程 modify this message dynamically?

I mean I would like to check if there is enough space and if yes, don't display this message. If there is no space, I would like to display the above message.

Any suggestions how to do this.

Thanks a lot.

Best Regards, Marc


This can be done through control conditions:

  • http://msdn.microsoft.com/en-us/library/aa368035(VS.85).aspx
  • http://madtechnology.wordpress.com/2007/05/04/wix-enable-disable-controls-based-on-user-selection/
  • http://setupanddeployment.com/installation-user-interface/conditionally-enable-disable-control-part-2/

To determine if there is not enough free space you can check OutOfDiskSpace property.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜