---
title: 'Tutorial: Create OpenVPN Connect Bundled Installers'
canonical: https://openvpn.net/as-docs/v3/tutorials/tutorial--create-openvpn-connect-installers/
product: Access Server Docs
description: You can manually create installers for a bundled OpenVPN Connect app that includes a user's connection
---

# Tutorial: Create OpenVPN Connect Bundled Installers

## Overview

It is possible to create OpenVPN Connect v3 setup files for macOS and Windows from Access Server's CLI that come preconfigured with a connection profile. You can deploy such an installer on a computer, and after installation completes, it will have the necessary connection profile already loaded. Access Server already creates such preconfigured installers of OpenVPN Connect for your users. These are available for users to download from the [Client Web UI](https://openvpn.net/as-docs/v3/tutorials/tutorial--download-from-client-web-ui.md).

Access Server creates these preconfigured with connection profiles — server-locked, user-locked, or auto-login. If you don’t use the Client Web UI to allow users to download and install OpenVPN Connect independently, you can create and distribute these setup files to your users.

## Prerequisites

- An installed Access Server.
- Configured users.
- Console access and the ability to get root access.

## Step 1: Create setup files

1. Sign in to the console and get root privileges.
2. Run the command to create the desired OpenVPN Connect installer:
   - Create Windows OpenVPN Connect v3 .msi setup file with server-locked profile:

     ```
     sacli --dest_dir=<DESTINATION DIRECTORY> --itype=win_v3 --profile_type=server-locked GenerateInstaller
     ```
   - Create macOS OpenVPN Connect v3 .dmg setup file with server-locked profile:

     ```
     sacli --dest_dir=<DESTINATION DIRECTORY> --itype=mac_v3 --profile_type=server-locked GenerateInstaller
     ```
   - Create Windows OpenVPN Connect v3 .msi setup file with user-locked profile:

     ```
     sacli --dest_dir=<DESTINATION DIRECTORY> --itype=win_v3 --user=<USERNAME> --profile_type=user-locked GenerateInstaller
     ```
   - Create macOS OpenVPN Connect v3 .dmg setup file with user-locked profile:

     ```
     sacli --dest_dir=<DESTINATION DIRECTORY> --itype=mac_v3 --user=<USERNAME> --profile_type=user-locked GenerateInstaller
     ```
   - Create Windows OpenVPN Connect v3 .msi setup file with auto-login profile:

     ```
     sacli --dest_dir=<DESTINATION DIRECTORY> --itype=win_v3 --user=<USERNAME> --profile_type=autologin GenerateInstaller
     ```
   - Create macOS OpenVPN Connect v3 .dmg setup file with auto-login profile:

     ```
     sacli --dest_dir=<DESTINATION DIRECTORY> --itype=mac_v3 --user=<USERNAME> --profile_type=autologin GenerateInstaller
     ```

You can use the following options with the command **GenerateInstaller**:

- **--dest\_dir** — Provide the directory for saving the generated installer.
- **--exp** — Set the number of days before the client certificate bundled to the installer expires.
- **--itype** — Choose the type of installer: win\_v3, msi\_v3, mac\_v3, dmg\_v3.
  - **mac\_v3 or dmg\_v3** — generates an OpenVPN Connect v3 client .dmg setup file.
  - **win\_v3 or msi\_v3** — generates an OpenVPN Connect v3 client .msi setup file.
- **--user** — Enter the profile username.

  > **Tip**
  >
  > We recommend enclosing usernames in double quotes ("), particularly when they contain spaces.
- **--profile\_type** — Set the profile type: user-locked, server-locked, or autologin. (The default is user-locked).

  > **Important**
  >
  > Autologin profiles require that the user has autologin permission, whether granted directly or inherited. By default, autologin permission is denied.

---

Prev: [Tutorial: Import a Connection Profile Using the openvpn3-as Tool](https://openvpn.net/as-docs/v3/tutorials/tutorial--openvpn3-as-import-connection-profile.md)
Next: [Tutorial: Create OpenVPN Connect Bundled Client Installers Using the Web API](https://openvpn.net/as-docs/v3/tutorials/tutorial--create-bundled-client-installers-via-api.md)
Index: https://openvpn.net/as-docs/llms.txt
