Many users encounter problems when running Openfire on Windows platform because of UAC protection, which forbids changes to Program files folders without privileges elevation. Openfire is storing its configuration and embedded database in the installation folder, so it causes problems when running it via launcher. We should add a comment about that in the installation guide and maybe even suggest installing in C:\ or some other folder than Program files.
A note can be added at the top of the guide, right after "Windows
Run the Openfire installer. The application will be installed to c:\Program Files\Openfire by default."
"Note: If you are installing Openfire on Windows Vista/Windows 7/Windows Server 2008 or newer Windows version and you have UAC protection enabled, then we suggest to choose other installation folder than Program files (e.g. C:\Openfire). Otherwise you will have to run Openfire launcher with Run as administrator option, because Openfire is storing its configuration (and the embedded database if used) in the installation folder and UAC protection will cause errors on startup, when running without elevated privileges."
Windows Vista and all newer Windows versions
Though running it as a service should probably avoid such problems, but personally i still install it in C:\Openfire, just in case.
patch by redeyes