Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Disk space check (http://forums.winamp.com/showthread.php?t=230377)

jcao 7th November 2005 19:43

Disk space check
 
Hello,
I was wondering if there's a way to check if there's enough diskspace in the $INSTDIR directory for program installation.
If there isn't enough space the user would be prompted. I can use an IF comparison, however I don't know now to get the numbers for current space available and the space required by the installer. Are there special variables that store these values?

thanks.

-JC

kichik 8th November 2005 17:02

The directory page already does that. You can add required size using AddSize or dynmically using SectionSetSize. For a manual check, you can use the following:

http://nsis.sourceforge.net/CheckSpaceFree


All times are GMT. The time now is 04:44.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.