I suppose it would need a custom action, but couldn't one allocate an NTFS 
sparse file (assuming an NTFS file system, anyway)?


Keith Douglas
Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6
Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6
keith.doug...@statcan.gc.ca
Telephone | Téléphone 613-951-4405
Facsimile | Télécopieur 613-951-1966
Government of Canada | Gouvernement du Canada 


-----Original Message-----
From: Alain Forget [mailto:afor...@cmu.edu] 
Sent: March-14-14 12:57 PM
To: 'General discussion about the WiX toolset.'
Subject: Re: [WiX-users] ReserveCost doesn't appear to reserve disk space

Ahhhhh, so ReserveCost is to reserve space perhaps for CustomActions or other 
things Windows Installer might not be able to predict.

Yeah, I was afraid of that. The only idea I had to "reserve" disk space was to 
use a TrueCrypt volume of 100MB (or whatever size) and then programmatically 
open it and close it when needed and store data. Of course, then there'd be 
various complications, such as finding an available drive letter at run-time to 
opening the volume, and so on.

Thanks for the info, and if there are any other ideas, please do let me know.

Alain

-----Original Message-----
From: Phil Wilson [mailto:phildgwil...@gmail.com]
Sent: Friday, March 14, 2014 12:49
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] ReserveCost doesn't appear to reserve disk space

It's mostly internal to the install - by the time costing is complete for the 
target volume there should be at least that 100MB remaining.
Because it's part of the cost you should get a "low disk error" if there's not 
enough space on that volume during the install.  Programs and Features includes 
the cost because you said you'd be needing it :)

My Win32 brain tells me that disk space isn't in a directory anyway, so there 
isn't a way to say that some space belongs to a particular directory as far as 
I know, and I know of no way that Windows would somehow know that your apps 
(that haven't even run yet) are the only ones allowed to use the space.
---------------
Phil Wilson


On Fri, Mar 14, 2014 at 9:20 AM, Alain Forget <afor...@cmu.edu> wrote:
> Hi all,
>
> This may relate to Windows Installer in general (and not WiX specifically), 
> but when I use ReserveCost to reserve say 100MB for Directory A, I would 
> expect the amount of free space on the disk to be reduced by at least 100MB 
> after installation, to signify that the overall disk space has been reduced 
> (even though there is 100MB reserved for Directory A). However, this does not 
> occur. Curiously, it does appear as though ReserveCost is having some effect, 
> because in the Programs and Features area, my installer now takes 100+MB of 
> space, while before it did not.
>
> >From reading docs online (see refs below), I had understood that ReserveCost 
> >will "reserve" or "section/block off" whatever amount of space I request for 
> >the specified directory after installation, which I presume would remain 
> >unavailable to other directories on disk until the program is uninstalled.
>
> Is this incorrect? If my understanding is incorrect, does anyone know of a 
> way to "reserve" space for post-installation generated data files and so on?
>
> ReserveCost references:
> - http://msdn.microsoft.com/library/aa371226.aspx
> - 
> http://wixtoolset.org/documentation/manual/v3/xsd/wix/reservecost.html
> - http://msdn.microsoft.com/en-us/library/aa394398%28v=vs.85%29.aspx
>
> Thank you,
> Alain
>
>
> ----------------------------------------------------------------------
> -------- Learn Graph Databases - Download FREE O'Reilly Book "Graph 
> Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, this 
> first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to