How to change data in VolumeCostList control

7 messages Options
Embed this post
Permalink
kezhongseu

How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
Hi, Guys,

Does any one have any idea of how to change data in VolumeCostList control?

The disk space requirement our installation needs is not enough, let's say,
10MB, but the actually space token would be 10.1MB, with extra 128KB space
used for file system management or something like disk fragment. So I want
to modify the values in VolumeCostList, for example, multiply 110% for each
value.

But, having searched the wix and windows installer document, I can't find
any ways to do that. Does any have the same problem or have some experience
on this?

Any ideas would be appreciated.

Thanks,
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
kezhong zhou wrote:
> Does any one have any idea of how to change data in VolumeCostList control?
>  

Change the underlying data with ReserveCost.

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
kezhongseu

Re: How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
Thank you. Yes, that could work. But if I can not access VolumeCostList
control, I would have to calculate DiskSpaceRequirement all by myself. well,
get disk is not a big question. And that means I would have to update
ReserveCost table in a custom action. But I tried a lot of times, found that
I can only 'SELECT' the ReserveCost table at install time, but can not
"INSERT" or "UPDATE" the table. :(



On Thu, Jun 25, 2009 at 11:26 PM, Bob Arnson <[hidden email]> wrote:

> kezhong zhou wrote:
> > Does any one have any idea of how to change data in VolumeCostList
> control?
> >
>
> Change the underlying data with ReserveCost.
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
kezhong zhou wrote:
> ReserveCost table in a custom action. But I tried a lot of times, found that
> I can only 'SELECT' the ReserveCost table at install time, but can not
> "INSERT" or "UPDATE" the table. :(
>  

You can't permanently update tables in custom actions. You can make
temporary changes.

However, why do you need to do it at runtime?

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
kezhongseu

Re: How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
The origin calculation is not accurate. Such as an installation of 100M, the
actual space taken would be 100.4M. So, I want to tell the user, if he just
have merely enough space to pass DiskSpaceCheck step, that he would fail.
The simplest way to do this, seems to be use ReserveCost table to add extra
1% space in the accumulated sum. But, I don't know the actually space, until
in runtime, since we might change the source file before we build final
installer, and the size of the generated MSI file, and temporary space taken
in system drive are not known until we actually have the MSI file, and
install it.

On Tue, Jun 30, 2009 at 11:12 AM, Bob Arnson <[hidden email]> wrote:

> kezhong zhou wrote:
> > ReserveCost table in a custom action. But I tried a lot of times, found
> that
> > I can only 'SELECT' the ReserveCost table at install time, but can not
> > "INSERT" or "UPDATE" the table. :(
> >
>
> You can't permanently update tables in custom actions. You can make
> temporary changes.
>
> However, why do you need to do it at runtime?
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
kezhong zhou wrote:

> The origin calculation is not accurate. Such as an installation of 100M, the
> actual space taken would be 100.4M. So, I want to tell the user, if he just
> have merely enough space to pass DiskSpaceCheck step, that he would fail.
> The simplest way to do this, seems to be use ReserveCost table to add extra
> 1% space in the accumulated sum. But, I don't know the actually space, until
> in runtime, since we might change the source file before we build final
> installer, and the size of the generated MSI file, and temporary space taken
> in system drive are not known until we actually have the MSI file, and
> install it.
>  

Sure but it seems overkill compared to just adding a meg of reserved
cost and updating it as necessary.

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
kezhongseu

Re: How to change data in VolumeCostList control

Reply Threaded More More options
Print post
Permalink
Yea, finally I have chose to use a custom action to implement this.

Thanks,

On Fri, Jul 3, 2009 at 9:12 PM, Bob Arnson <[hidden email]> wrote:

> kezhong zhou wrote:
> > The origin calculation is not accurate. Such as an installation of 100M,
> the
> > actual space taken would be 100.4M. So, I want to tell the user, if he
> just
> > have merely enough space to pass DiskSpaceCheck step, that he would fail.
> > The simplest way to do this, seems to be use ReserveCost table to add
> extra
> > 1% space in the accumulated sum. But, I don't know the actually space,
> until
> > in runtime, since we might change the source file before we build final
> > installer, and the size of the generated MSI file, and temporary space
> taken
> > in system drive are not known until we actually have the MSI file, and
> > install it.
> >
>
> Sure but it seems overkill compared to just adding a meg of reserved
> cost and updating it as necessary.
>
> --
>  sig://boB
> http://joyofsetup.com/
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users