Archive: Drive Space


Drive Space
Hello
i m useing .Cab file solution becouse the data is more then 7 GB i have done that setup now the problem is
1) my HDD has more then 40GB remain and the setup shows only 4.1 GB if my HDD has 39GB it shows 3.9 GB and the software space only 0.0K

2)other problem is when we run setup and error accure during un cab then the obove messeage shows setup was complete sucsess full

i want to show right disk spaces and show right messages


The next version of CABSetup will have the functions required to update the space required figures with the size of the data set.

I did this as part of developing the progressbar for CABSetup (which will also be in the next release). Don't forget that CABSetup cannot handle a dataset size greater than 4GB, so your 7GB will have to be split into two datasets.

The space requirements and progress bar are tied to the dataset size so this will mean a bit of arithmetic will be needed. More details will be in the updated documentation.

Re the error occurring but success being reported, remember CABSetup functions return the error code on the NSIS stack, any non-zero value means something went wrong (the documentation provides more information). You have to pop the error off the stack and handle it yourself - CABSetup only provides the information.

NSIS will report "Completed" once any script completes unless your installer sets "DetailsPrint None" before the script completes.

I expect to provide the next release within the next few days and will provide a message to the forum when I do so.

Duncan