PDA

View Full Version : Turning off cost analysis



arpitman
12-23-2005, 10:28 AM
I am creating an installer that will be used to install onto an SD card. We didn't use an installer before so we don't have a previous product id to use. I would like to manually delete some files before putting on some new files.

In the installer I have a working function that can delete the files to make room for the new ones. When I run the installer it detects there is not enough room on the SD card to continue. I have tried everything I can think of to turn this off without luck.

I have also tried putting my working function into the right location to get it to run before the disk space cost is done. I have put it all over the place and made it both immediate and deferred etc. and nothing works.

Any suggestions?

Tony

Jizzle2000
12-28-2005, 09:26 AM
I'm going to assume (often a problem) that you know the amount of space on the SD card, the amount of space the items you are deleting take up, and that all the balances work out. First, you might rethink the position of your function (which I hope is a custom action) in the installation execute/user interface sequence. If you're sure all this stuff is right and you want to try something somewhat risky, try looking through the actions in the installation execute sequence for the costing actions that you may want to set the condition for to false(0 I believe). Before doing this measure you might want to look into which costing actions will help solve this (I suggest disabling the cost initialize, file cost, and cost finalize actions.) Good luck.

arpitman
12-28-2005, 10:55 AM
Actually when I tried to turn off all of the cost functions by setting their condition to 0 or false I get an error when I run the installer. I will try it again and let you know.

Any other ideas?