installing.rst 9.3 KB

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