For the client I just install the version I want using the windows installer, then edit the profile in the vanilla launcher. If you're using other launchers it's a different procedure.
Then for the server I selected to install the server somewhere locally, then copied the server jar file (after renaming it since that is required by the host I'm using) and the needed folders (libs?).