# Install Command Cheat Sheet

{% hint style="info" %}
\<INSTALLERFILE> does not need to be changed, Scappman will automatically swap this with the name of the primary installer file you upload when creating your custom app
{% endhint %}

{% hint style="info" %}
These are all examples. Vendors install arguments for silent install may vary. Please refer to the vendors documentation
{% endhint %}

{% hint style="info" %}
Scappman automatically appends the required command-line arguments for silent install, no reboot and logging.
{% endhint %}

### Installing an MSI silently

```powershell
Execute-MSI -Action 'Install' -Path '<INSTALLERFILE>'
```

### Installing an MSI silently with an MST file

{% hint style="info" %}
Check out our doc on deploying MST files to your client device - [Using MST's with Scappman Apps](/applications/using-msts-with-scappman-apps.md)
{% endhint %}

```powershell
Execute-MSI -Action 'Install' -Path '<INSTALLERFILE>' -Transform '<LocalPath>\Transform.mst'
```

### Installing an MSI silently with custom parameters

```powershell
Execute-MSI -Action 'Install' -Path '<INSTALLERFILE>' -AddParameters '<YourParameters>'
```

### Installing an EXE silently

```powershell
Execute-Process -Path "<INSTALLERFILE>" -Parameters "/silent" -WindowStyle Hidden
```

### Extracting a zip file

{% hint style="info" %}
\<LocalClientPath> must be replaced with a real path
{% endhint %}

```powershell
Expand-Archive -Path "$dirFiles\<INSTALLERFILE>" -DestinationPath "<LocalClientPath>"
```

### Copying a file

{% hint style="info" %}
\<DestinationPath> must be replaced with a real path
{% endhint %}

```powershell
Copy-File -Path "$dirFiles\<INSTALLERFILE>" -Destination "<DestinationPath>"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.scappman.com/applications/bring-your-own-app-to-scappman/uploading-your-own-app-to-scappman/install-command-cheat-sheet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
