Old 3rd June 2003, 09:09   #1
Junior Member
Join Date: May 2003
Posts: 4
How do I check disk size?

If disk size is not enough big,how i justify?
Thank everyone answer!
tomorrow is offline   Reply With Quote
Old 3rd June 2003, 09:44   #2
[NSIS Dev, Mod]
kichik's Avatar
Join Date: Oct 2001
Location: Israel
Posts: 11,343
This function checks free disk space. But why would you want to do that? NSIS doesn't let the user install if there isn't enough disk space on the directory page.

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
Old 10th March 2005, 20:48   #3
Junior Member
Join Date: Oct 2002
Posts: 46
I found this useful because I'm writing a massive uninstaller and I want to calculate the amount of free space before and after my uninstaller runs to show the user how much space they got back, I hope it works.
mrtech is offline   Reply With Quote
Old 4th April 2006, 16:20   #4
Posts: n/a
This could be useful when the user is going to install to a different drive other than C: because then it will check the disk space say on the D: drive but will not check the C: drive space and you still need temporary space on the C: drive to extract the files to do the install so if your C: drive was totally full you could not do the install to E: even though it would appear you had enough space.
  Reply With Quote
Old 5th April 2006, 16:08   #5
Posts: n/a
Also what could happen is say the user installs to the D: drive but there are dll's installing to the C: drive. The installer calculates the space of all the files being installed to drive D: instead of calculating how much space is required on each drive
  Reply With Quote
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