installing.rst 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. =============================================
  2. Installing the Desktop Synchronization Client
  3. =============================================
  4. You can download the latest version of the Nextcloud Desktop Synchronization
  5. Client from the `Nextcloud download page`_.
  6. There are clients for Linux, macOs, and Microsoft Windows.
  7. The currently supported server releases are the latest three stable versions
  8. at time of publication. It means that the |version| release series is supporting
  9. stable server major versions.
  10. See https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule for
  11. supported major versions.
  12. Installation on Mac OS X and Windows is the same as for any software
  13. application: download the program and then double-click it to launch the
  14. installation, and then follow the installation wizard. After it is installed and
  15. configured the sync client will automatically keep itself updated; see
  16. :doc:`autoupdate` for more information.
  17. Linux users must follow the instructions on the download page to add the
  18. appropriate repository for their Linux distribution, install the signing key,
  19. and then use their package managers to install the desktop sync client. Linux
  20. users will also update their sync clients via package manager, and the client
  21. will display a notification when an update is available.
  22. Linux users must also have a password manager enabled, such as GNOME Keyring or
  23. KWallet, so that the sync client can login automatically.
  24. You will also find links to source code archives and older versions on the
  25. download page.
  26. System Requirements
  27. ----------------------------------
  28. - Windows 8.1+
  29. - macOS 10.14+ (64-bit only)
  30. - Linux
  31. - FreeBSD
  32. .. note::
  33. For Linux distributions, we support, if technically feasible, the latest 2 versions per platform and the previous LTS.
  34. Customizing the Windows Installation
  35. ------------------------------------
  36. If you just want to install Nextcloud Desktop Synchronization Client on your local
  37. system, you can simply launch the `.msi` file and configure it in the wizard
  38. that pops up.
  39. Features
  40. ^^^^^^^^
  41. The MSI installer provides several features that can be installed or removed
  42. individually, which you can also control via command-line, if you are automating
  43. the installation, then run the following command::
  44. msiexec /passive /i Nextcloud-x.y.z-x64.msi
  45. The command will install the Nextcloud Desktop Synchronization Client into the default location
  46. with the default features enabled.
  47. If you want to disable, e.g., desktop shortcut icons you can simply change the above command to the following::
  48. msiexec /passive /i Nextcloud-x.y.z-x64.msi REMOVE=DesktopShortcut
  49. See the following table for a list of available features:
  50. +--------------------+--------------------+-----------------------------------+---------------------------+
  51. | Feature | Enabled by default | Description |Property to disable |
  52. +====================+====================+===================================+===========================+
  53. | Client | Yes, required | The actual client | |
  54. +--------------------+--------------------+-----------------------------------+---------------------------+
  55. | DesktopShortcut | Yes | Adds a shortcut to the desktop |``NO_DESKTOP_SHORTCUT`` |
  56. +--------------------+--------------------+-----------------------------------+---------------------------+
  57. | StartMenuShortcuts | Yes | Adds a shortcut to the start menu |``NO_START_MENU_SHORTCUTS``|
  58. +--------------------+--------------------+-----------------------------------+---------------------------+
  59. | ShellExtensions | Yes | Adds Explorer integration |``NO_SHELL_EXTENSIONS`` |
  60. +--------------------+--------------------+-----------------------------------+---------------------------+
  61. Installation
  62. ~~~~~~~~~~~~
  63. You can also choose to only install the client itself by using the following command::
  64. msiexec /passive /i Nextcloud-x.y.z-x64.msi ADDDEFAULT=Client
  65. If you for instance want to install everything but the ``DesktopShortcut`` and the ``ShellExtensions`` feature, you have two possibilities:
  66. 1. You explicitly name all the features you actually want to install (whitelist) where `Client` is always installed anyway::
  67. msiexec /passive /i Nextcloud-x.y.z-x64.msi ADDDEFAULT=StartMenuShortcuts
  68. 2. You pass the `NO_DESKTOP_SHORTCUT` and `NO_SHELL_EXTENSIONS` properties::
  69. msiexec /passive /i Nextcloud-x.y.z-x64.msi NO_DESKTOP_SHORTCUT="1" NO_SHELL_EXTENSIONS="1"
  70. .. NOTE::
  71. The Nextcloud `.msi` remembers these properties, so you don't need to specify them on upgrades.
  72. .. NOTE::
  73. You cannot use these to change the installed features, if you want to do that, see the next section.
  74. Changing Installed Features
  75. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  76. You can change the installed features later by using `REMOVE` and `ADDDEFAULT` properties.
  77. 1. If you want to add the the desktop shortcut later, run the following command::
  78. msiexec /passive /i Nextcloud-x.y.z-x64.msi ADDDEFAULT="DesktopShortcut"
  79. 2. If you want to remove it, simply run the following command::
  80. msiexec /passive /i Nextcloud-x.y.z-x64.msi REMOVE="DesktopShortcut"
  81. Windows keeps track of the installed features and using `REMOVE` or `ADDDEFAULT` will only affect the mentioned features.
  82. Compare `REMOVE <https://msdn.microsoft.com/en-us/library/windows/desktop/aa371194(v=vs.85).aspx>`_
  83. and `ADDDEFAULT <https://msdn.microsoft.com/en-us/library/windows/desktop/aa367518(v=vs.85).aspx>`_
  84. on the Windows Installer Guide.
  85. .. NOTE::
  86. You cannot specify `REMOVE` on initial installation as it will disable all features.
  87. Installation Folder
  88. ^^^^^^^^^^^^^^^^^^^
  89. You can adjust the installation folder by specifying the `INSTALLDIR`
  90. property like this::
  91. msiexec /passive /i Nextcloud-x.y.z-x64.msi INSTALLDIR="C:\Program Files\Non Standard Nextcloud Client Folder"
  92. Be careful when using PowerShell instead of `cmd.exe`, it can be tricky to get
  93. the whitespace escaping right there.
  94. Specifying the `INSTALLDIR` like this only works on first installation, you cannot simply re-invoke the `.msi` with a different path. If you still need to change it, uninstall it first and reinstall it with the new path.
  95. Disabling Automatic Updates
  96. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  97. To disable automatic updates, you can pass the `SKIPAUTOUPDATE` property.::
  98. msiexec /passive /i Nextcloud-x.y.z-x64.msi SKIPAUTOUPDATE="1"
  99. Launch After Installation
  100. ^^^^^^^^^^^^^^^^^^^^^^^^^
  101. To launch the client automatically after installation, you can pass the `LAUNCH` property.::
  102. msiexec /i Nextcloud-x.y.z-x64.msi LAUNCH="1"
  103. This option also removes the checkbox to let users decide if they want to launch the client
  104. for non passive/quiet mode.
  105. .. NOTE::
  106. This option does not have any effect without GUI.
  107. No Reboot After Installation
  108. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  109. The Nextcloud Client schedules a reboot after installation to make sure the Explorer extension is correctly (un)loaded.
  110. If you're taking care of the reboot yourself, you can set the `REBOOT` property::
  111. msiexec /i Nextcloud-x.y.z-x64.msi REBOOT=ReallySuppress
  112. This will make `msiexec` exit with error `ERROR_SUCCESS_REBOOT_REQUIRED` (3010).
  113. If your deployment tooling interprets this as an actual error and you want to avoid that, you may want to set the `DO_NOT_SCHEDULE_REBOOT` instead::
  114. msiexec /i Nextcloud-x.y.z-x64.msi DO_NOT_SCHEDULE_REBOOT="1"
  115. Installation Wizard
  116. -------------------
  117. The installation wizard takes you step-by-step through configuration options and
  118. account setup. First, you need to enter the URL of your Nextcloud server.
  119. .. image:: images/wizard_welcome.png
  120. :alt: form for choosing between login and registering
  121. If you already have an account on a Nextcloud instance, you want to
  122. press the button ``Login to your Nextcloud``. If you don't have a
  123. Nextcloud instance and an account there, you might want to register an
  124. account with a provider. Press ``Create account with Provider`` in
  125. that case. Please keep in mind that the desktop client might have
  126. built without provider support. In that case, you won't see this
  127. page. Instead, you will be prompted with the next page.
  128. .. image:: images/wizard_setup.png
  129. :alt: form for entering Nextcloud server URL
  130. Enter the URL for your Nextcloud instance. The URL is the same URL that
  131. you type into your browser when you try to access your Nextcloud
  132. instance.
  133. .. image:: images/wizard_flow2.png
  134. :alt: form waiting for authorization
  135. Now your web browser should open and prompt you to login into your
  136. Nextcloud instance. Enter your username and password in your web
  137. browser and grant access. After you did that, go back to the
  138. wizard. Please keep in mind that you might not need to enter your
  139. username and password if you are already logged in to your browser.
  140. .. image:: images/wizard_advanced.png
  141. :alt: Select which remote folders to sync, and which local folder to store
  142. them in.
  143. On the local folder options screen, you may sync all of your files on
  144. the Nextcloud server, or select individual folders. The default local
  145. sync folder is ``Nextcloud``, in your home directory. You may change
  146. this as well.
  147. When you have completed selecting your sync folders, click the Connect
  148. button at the bottom right. The client will attempt to connect to your
  149. Nextcloud server, and when it is successful, the wizard closes
  150. itself. You can now observe the sync activity if you open the main
  151. dialogue by clicking on the tray icon.
  152. .. Links
  153. .. _Nextcloud download page: https://nextcloud.com/download/#install-clients