Skip to content

Script or Company App Install Fails Because a File Is Missing

A script or Company App assigned to Windows endpoints goes through the usual installation statuses and then ends in Failed install. The same script or app may have worked before, or it may fail on every endpoint it’s assigned to.

To confirm that a missing file is the cause, open the endpoint’s row menu on the Endpoints tab and select View logs. In Install.log, the last brick with a Started line is the brick that uses the file, for example Copy File. See Read Installation Logs for Company Apps and Scripts.

The script or app uses a file that isn’t uploaded under Source Files. For example, a script copies a shortcut to the endpoint with the Copy File PowerBrick, but the shortcut was never added to the script, or was removed later. CapaOne has nothing to send to the endpoint, so the installation fails.

Only check the files that your PowerBricks use. The install script, Install.ps1, is generated by CapaOne from the PowerBricks. It’s never listed under View content, and you don’t upload it.

  1. Go to Windows → Applications and open the Company Apps or Scripts tab.
  2. Open the row menu for the script or app and select View content. Note which files are listed.
  3. Open the script or app and review its PowerBricks. Compare the files the bricks use, for example in Copy File or Download Content, with the files listed in step 2.
  4. Select Edit, then use Modify Content under Source Files to add the missing files. Save the changes.
  5. Open the Endpoints tab and select Redeploy for each endpoint that failed.

The endpoint shows Up to date when the installation succeeds.