Skip to content

Instantly share code, notes, and snippets.

@msoler8785
Created December 15, 2021 19:14
Show Gist options
  • Save msoler8785/51b769f0065d575bde2e87b45abfebca to your computer and use it in GitHub Desktop.
Save msoler8785/51b769f0065d575bde2e87b45abfebca to your computer and use it in GitHub Desktop.
How to install Unifi Network application to Program Files on Windows

The Problem

Many people want to install Unifi into the Program Files folder on Windows.
By default the installer installs into the current users profile folder.

For some reason there isn't any information on how to do this. Many people come up with all kinds of hacks such as using symlinks to achieve the same effect.

The Solution

In reality the UniFi-installer.exe is a Nullsoft NSIS installer that accepts the standard command line argument for specifying a directory

Just run this command and it will install it into the specified directory:

C:\> UniFi-installer.exe /D=C:\Program Files\Ubiquiti UniFi\

Note: The argument should be the last one and there should be no quotes around the path, even if it has spaces

@msoler8785
Copy link
Author

msoler8785 commented Apr 19, 2023

To install it as a service run the following from the directory you specified above:

C:\Program Files\Ubiquiti UniFi>java -jar lib\ace.jar installsvc

Othe userful arguments are uninstallsvc and startsvc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment