# How to install Opentap Package to a specified diectory?

**URL:** https://forum.opentap.io/t/how-to-install-opentap-package-to-a-specified-diectory/1288
**Category:** General
**Created:** [October 26, 2023, 7:22am UTC](https://forum.opentap.io/t/how-to-install-opentap-package-to-a-specified-diectory/1288 "2023-10-26T07:22:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![allen](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@allen](https://forum.opentap.io/u/allen)
#### Post date: [October 26, 2023, 7:22am UTC](https://forum.opentap.io/t/how-to-install-opentap-package-to-a-specified-diectory/1288/1 "2023-10-26T07:22:21Z")

</div>

How to install Opentap Package to a specified diectory? I use the following code to install, as a result, the plugin is installed into the exe directory:

```
        var action = new PackageInstallAction()
        {
            Packages = new[] { "WpfApp23" },
            Version = pkgs[0].Version.ToString(),
            Force = false
        };

        CancellationToken ct = new CancellationToken();
        TapThread.Start(() =>
        {
            rs = action.Execute(ct);
        });

```

---

<div class="post-metadata">

### Author: ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)
#### Post date: [October 26, 2023, 7:52am UTC](https://forum.opentap.io/t/how-to-install-opentap-package-to-a-specified-diectory/1288/2 "2023-10-26T07:52:28Z")

</div>

Hi @allen,

You can set Target for the package install action:

```csharp
var action = new PackageInstallAction()
        {
            Packages = new[] { "WpfApp23" },
            Version = pkgs[0].Version.ToString(),
            Force = false,
            Target="myFolder"
        };

```
