Old 7th November 2005, 19:43   #1
jcao
Junior Member
 
Join Date: Oct 2005
Posts: 9
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
jcao is offline   Reply With Quote
Old 8th November 2005, 17:02   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump