How can I use Endpoint Central to check the volume of a drive before I install software applications in it?

Description

Follow the steps provided in this document to check the volume of a drive before installing software applications in it. For example, you try to install a software application in a client computer. The size of the software application is 10 MB. However, the installation stops midway because of lack of space in the drive that you are installing it in, and your computer hangs. You can use the steps given below to check the space available in a drive before installing a software application in it.

Steps

To use Endpoint Central to check the volume of a drive before installing applications in it, follow the steps given below:

  1. Download the script checkvolume.txt
  2. Save it in your computer, locally
  3. Rename it to checkvolume.vbs
  4. Click the Software Deployment tab
  5. Click Add Package
  6. Set the package type as required
  7. Specify the name of the application
  8. Set the required path type
  9. Add the files or installation commands depending on the path type that you have chosen. Follow the steps given below:
    1. Network Path
      1. If you've chosen the file type as MSI, add name of the MSI file with the network path
      2. If you've chosen the file type as MSIEXEC/EXE/ISS/Command, specify the required installation command with switches or arguments specific to the application you are trying to install.
    2. HTTP Path
      1. If you've chosen the file type as MSI, browse and add the required files to upload. For example, the executable file of the application and a vbs file to check the volume of the drive in which you want to install the executable file.
      2. If you've chosen the file type as MSIEXEC/EXE/ISS/Command, browse and add files to upload and specify the required installation command with switches or arguments specific to the application you are trying to install.
  10. Check the Run the Script before Installing Software checkbox
  11. Enter the following in the fields provided:
    1. Script/Software name: %windir%\system32\cscript.exe checkvolume.vbs
    2. Arguments: <drive name> <space in MB> For example, D: 130000 or just 130000

      Note: If you do not specify the drive, it will check the volume of the default system drive. For example C: (Refer to Figure 1: Example for a script in a network share, below). The space of a volume should be converted to megabytes (MB) before you enter it.

      Check Volume

      Figure 1: Example for a script in a network share

  12. In the Continue installation if the exit code is field, enter 0
  13. Click Add Package
  14. Select the package that you added
  15. Click Install/Uninstall Software
  16. Select the required computers
  17. Click Deploy

The settings will reflect in the client computers during the agent's 90-minute refresh cycle, during startup or during logon—whichever takes place earlier.

If there is not enough storage space available, you will see the error message, "Pre-Installation failed : Not enough storage is available to complete this operation.", when you check the deployment status. Endpoint Central will not install the package that you created.