BUG - Check Disk Space does not work on new folders

Got a problem you cannot solve? Try here.
seanc
Posts: 3
Joined: Wed Mar 28, 2007 1:52 am

BUG - Check Disk Space does not work on new folders

Postby seanc » Thu Jul 12, 2007 10:18 pm

The help file suggests you can use the Check Disk Space function to obtain the free disk space on a folder not yet created.

From the Help File:
Provide the path for the disk to obtain space information from. You may specify an existing disk folder (such as the root folder), or a new folder that has not been created yet. You may also specify network paths using the UNC convention, of the form \\\\server\\share. In this case, the amount of free space in the server share is reported.

However this is not working in my case as I am trying to use this function to validate the directory. It always returns 0, even if the path passed is valid.

After the destination dialog I have the following code:
I was expecting an invalid TARGETDIR would return a negative value that is displayed on the dialog in the RemainingSpace label.

It returns 0 for available and free space calls

~InstallAware Clipboard Data~
~End~
~{E3093094-9827-4FE5-8E1B-43D3AED9B7B4}~
~GoTo Label~
~{855E69FB-5DBE-4FB2-98AA-A6C2B8B5089A}~
~DestinationDialog~
~MessageBox~
~{D6442CDE-DCE9-490D-8F1D-56DD4C059DFE}~
~Target Dir Check~
~Perform check of ProgramFiles= $PROGRAMFILES$ $DISKSPACE_ON_PROGRAMFILESDIR$ TargetDir here: $TARGETDIR$ $TARGETDIRCHECK$ $DISKSPACE_ON_TARGETDIR$~
~0~
~1~
~~
~If~
~{E4E4C927-504A-4A59-8C71-DE7DED3E17AC}~
~TARGETDIRCHECK~
~0~
~FALSE~
~FALSE~
~Does File/Folder Exist~
~{8F888DCF-73A9-48C9-B44A-ABF1A5218D3A}~
~TARGETDIRCHECK~
~$TARGETDIR$~
~FALSE~
~Check Disk Space~
~{0091B806-0A5F-4A7C-B52D-7239B5767EA2}~
~DISKSPACE_ON_TARGETDIR~
~$TARGETDIR$~
~FALSE~
~TRUE~
~Check Disk Space~
~{97D8C6E4-7BC5-45AE-8B6C-0E29768417D6}~
~DISKSPACE_ON_PROGRAMFILESDIR~
~$PROGRAMFILES$~
~TRUE~
~FALSE~
Sean

Return to “Technical Support”

Who is online

Users browsing this forum: vaibhavopkey and 75 guests