|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|