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.
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
To install it as a service run the following from the directory you specified above:
Othe userful arguments are
uninstallsvc
andstartsvc