Question

I am trying to use this script:

http://nsis.sourceforge.net/CheckSpaceFree

But it lacks some fundamental checks and adjustments ( comments ) for the case(s), where:

1) The $INSTDIR Path contains Program Files directory, which is Access protected, therefore, even if running setup with admin priviledges, you still get 0 integer return when, for example, your path ( absolute or relative ) lands on program files directory.

Failing Test path: C:\Program Files(x86)\BlaBlaBla\

Working test path: C:\BlaBlaBla

2) If I try to use relative path containing one level up (..\BlaBlaBla) AND point it to Disk root ( C:\ ), then path summerizes to C:\..\BlaBlaBla , resulting that nsis simply crashes.

Any best-pratice based way to gracefully work around these limitations?

Thank you all for any input!

Était-ce utile?

La solution

Have you tried DriveSpace from the "useful headers" included with NSIS?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top