# Applications

First, create a content item and specify that its purpose is **Application** and type is either **Folder** or **Single File**.  Check the "Open after creation" checkbox for convenience.

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FDdo6gMnfUpEuNhlUBvth%2Fimage.png?alt=media&#x26;token=1c1b02d0-8b44-4f37-861f-14b0db55e9b8" alt=""><figcaption></figcaption></figure>

Next, click "+ New Version" to add a version to the application.  In the application version, specify the  installation command line, and optionally the working directory and success exit codes.

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FL6XEkGFfQe4pWIQW9jFF%2Fimage.png?alt=media&#x26;token=cd92787f-0d7c-4867-ba4d-81d856ca17de" alt=""><figcaption></figcaption></figure>

The working directory defaults to the folder containing the extracted content.  If no success codes are specified, the default of "0 3010" will apply.  (Exit code 3010 indicates that a reboot should be performed.)

After the application version has been created, the content for the application can then be uploaded.  Click the "Choose File" button and select either a file or a folder needed for the application.

<figure><img src="https://744643921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJO9NLelA0RS8JB4i9oaQ%2Fuploads%2FpZ9eumqq9AkacLUSQg9G%2Fimage.png?alt=media&#x26;token=31fcb422-b41f-48fa-af92-223960fdd97c" alt=""><figcaption></figcaption></figure>

Normally, you would use a folder (the entire contents of the folder will be uploaded), but there are instances where a single file would be desired:

* MSI installers where no other files (e.g. transforms) are required.
* Intune app packages (.intunewin files) which can be automatically extracted by DeployR before installation.

### PowerShell wrappers

Applications that are installed with a PowerShell script, set the Installation command line to:

```
pwsh.exe -file .\PowerShellScript.ps1
```

Make sure the PowerShell script is located in the root of the source of the content you uploaded to create this Application Content Item.
