# Portable mode

How to run DataSuite in portable mode from the Windows ZIP archive by creating a data folder, so all its data lives next to the app and can be moved around.

DataSuite supports [portable mode](https://en.wikipedia.org/wiki/Portable_application). This mode enables all data created and maintained by DataSuite to live near itself, so it can be moved around across environments.

Portable mode is supported on the ZIP download for Windows. See the [downloads page](https://datasuite.damurka.com/en/downloads.md) to find the correct `.zip` file for your platform.

> **Warning**
>
>
> Do not attempt to configure portable mode on an installation from the **Windows User or System installers**. Portable mode is only supported on the Windows ZIP (`.zip`) archive. Note also that the Windows ZIP archive does not support auto update.
>

## Enable portable mode

### Windows

After unzipping the DataSuite download, create a `data` folder within DataSuite's folder:

```
|- DataSuite-win32-x64-1.0.0
|   |- Suite.exe (or code executable)
|   |- data
|   |- bin
|   |  |- code
|   |  |- ...
|   |- ...
```

From then on, the `data` folder will be used to contain all DataSuite data, including session state, preferences, etc.

The `data` folder can be moved to other DataSuite installations. This is useful for updating your portable DataSuite version, in which case you can move the `data` folder to a newer extracted version of DataSuite.

## Update portable DataSuite

On **Windows**, you can update DataSuite by copying the `data` folder over to a more recent version of DataSuite.

## Migrate to portable mode

You can also migrate an existing installation to portable mode.

### Windows

1. Download the [DataSuite](https://datasuite.damurka.com/en/downloads.md) ZIP distribution for your platform.
2. Create the `data` folder as above.
3. Copy the user data directory `DataSuite` to `data` and rename it to `user-data`:
   - **Windows**: `%APPDATA%\DataSuite`

As an example, here's the desired outcome on **Windows**:

```
|- DataSuite-win32-x64-1.84.2
|   |- DataSuite.exe (or suite executable)
|   |- data
|   |   |- user-data
|   |   |   |- ...
|   |- ...
```

## TMP directory

By default, the `TMP` directory is still the system one even in portable mode, since no state is kept there. If you want to also have your TMP directory within your portable directory, you can create an empty `tmp` directory inside the `data` folder. As long as a `tmp` directory exists, it will be used for TMP data.
