Generally speaking you don't need to do this. If you want to ensure space at some directory location you use the ReserveCost mechanism and let Windows figure out if there's enough room. Windows already computes the size of the feature for space checking, and ReserveCost lets you change it. Why reinvent it?
If you want to try it yourself, MsiGetFeatureCost is perhaps what you'd call, but you'd have to sequence it after InstallValidate. I hesitate to even suggest this because the sequencing is critical, I doubt you can make it work in the UI sequence, and using sample code that tells you to call actions like InstallValidate yourself is likely to be giving you a shovel for the hole you'll be digging yourself into. So as is common with many MSI questions: Advice: Don't do it - use ReserveCost. Technically (mostly) accurate answer: MsiGetFeatureCost (but I think you'll regret it). Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja Sent: Tuesday, January 29, 2008 8:10 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Size of feature Hi, Thanks for reply. What I want is size(XX MB). I want this number to assign some variable(int reqdiskspace) for checking disk space logic. Presently I added manually the variable reqdiskspace=YY(for ex int reqdiskspace=100) In future if size of feature increases then I again I have to modify manually the reqdiskspace. So is it possible to assign the same to property, so that I can get the value through msigetproperty. Sebastian Brand-2 wrote: > > The texts for this are definied in the properties > SelChildCostPos, SelChildCostNeg, SelParentCostPosPos, > SelParentCostPosNeg, SelParentCostNegPos, SelParentCostNegNeg > > In the MSI help you can find details about this at the SelectionList > control description > (http://msdn2.microsoft.com/en-us/library/aa371604.aspx > ) > > However, you cannot change the size displayed there. > > > Best regards, > Sebastian Brand > > Instyler Software - http://www.instyler.com > > > On Jan 26, 2008, at 12:27 , SaiTeja wrote: > >> >> Hi, >> >> On Cusomize dialog, "This feature requires xxMB on your hard drive" >> >> Can any one tell me is it possible assign size(xx) to any property? >> If yes >> how? >> -- >> View this message in context: >> http://www.nabble.com/Size-of-feature-tp15106940p15106940.html >> Sent from the wix-users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users > http://msdn2.microsoft.com/en-us/library/aa371604.aspx > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/Size-of-feature-tp15106940p15175138.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users