From: Dominik Schmidt Date: Tue, 29 Sep 2020 16:21:29 +0000 (+0200) Subject: Docs: Adopt upstream commit fe04300 for MSI installation X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~126^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8e48d53b04df66ec76177732f182c446641dd2c5;p=nextcloud-desktop.git Docs: Adopt upstream commit fe04300 for MSI installation See: https://github.com/owncloud/client/commit/fe043006c8f4a43b033243a85c294d21c7450238 Signed-off-by: Michael Schuster --- diff --git a/doc/installing.rst b/doc/installing.rst index 54f24c31b..7613e4f65 100644 --- a/doc/installing.rst +++ b/doc/installing.rst @@ -39,6 +39,133 @@ System Requirements .. note:: For Linux distributions, we support, if technically feasible, the latest 2 versions per platform and the previous LTS. +Customizing the Windows installation +------------------------------------ + +If you just want to install ownCloud Desktop Synchronization Client on your local +system, you can simply launch the .msi file and configure it in the wizard +that pops up. + +Features +^^^^^^^^ + +The MSI installer provides several features that can be installed or removed +individually, which you can also control via command-line, if you are automating +the installation:: + + msiexec /passive /i ownCloud-x.y.z.msi + +will install the ownCloud Desktop Synchronization Client into the default location +with the default features enabled. If you want to disable, e.g., desktop shortcut +icons you can simply change the above command to:: + + msiexec /passive /i ownCloud-x.y.z.msi REMOVE=DesktopShortcut + +See the following table for a list of available features: + ++--------------------+--------------------+----------------------------------+---------------------------+ +| Feature | Enabled by default | Description |Property to disable | ++====================+====================+==================================+===========================+ +| Client | Yes, required | The actual client | | ++--------------------+--------------------+----------------------------------+---------------------------+ +| DesktopShortcut | Yes | Adds a shortcut to the desktop |``NO_DESKTOP_SHORTCUT`` | ++--------------------+--------------------+----------------------------------+---------------------------+ +| StartMenuShortcuts | Yes | Adds shortcuts to the start menu |``NO_START_MENU_SHORTCUTS``| ++--------------------+--------------------+----------------------------------+---------------------------+ +| ShellExtensions | Yes | Adds Explorer integration |``NO_SHELL_EXTENSIONS`` | ++--------------------+--------------------+----------------------------------+---------------------------+ + +Installation +~~~~~~~~~~~~ + +You can also choose to only install the client itself by using the following command:: + + msiexec /passive /i ownCloud-x.y.z.msi ADDDEFAULT=Client + +If you for instance want to install everything but the ``DesktopShortcut`` and the ``ShellExtensions`` feature, you have two possibilities: + +1. You explicitly name all the features you actually want to install (whitelist) where `Client` is always installed anyway:: + + msiexec /passive /i ownCloud-x.y.z.msi ADDDEFAULT=StartMenuShortcuts + +2. You pass the `NO_DESKTOP_SHORTCUT` and `NO_SHELL_EXTENSIONS` properties:: + + msiexec /passive /i ownCloud-x.y.z.msi NO_DESKTOP_SHORTCUT="1" NO_SHELL_EXTENSIONS="1" + +.. NOTE:: +The ownCloud .msi remembers these properties, so you don't need to specify them on upgrades. + +.. NOTE:: +You cannot use these to change the installed features, if you want to do that, see the next section. + +Changing installed features +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can change the installed features later by using `REMOVE` and `ADDDEFAULT` properties. + +1. If you want to add the the desktop shortcut later:: + + msiexec /passive /i ownCloud-x.y.z.msi ADDDEFAULT="DesktopShortcut" + +2. If you want to remove it, simply do:: + + msiexec /passive /i ownCloud-x.y.z.msi REMOVE="DesktopShortcut" + +Windows keeps track of the installed features and using `REMOVE` or `ADDDEFAULT` will only affect the mentioned features. + +Compare `REMOVE `_ +and `ADDDEFAULT `_ +on the Windows Installer Guide. + +.. NOTE:: +You cannot specify `REMOVE` on initial installation as it will disable all features. + +Installation folder +^^^^^^^^^^^^^^^^^^^ + +You can adjust the installation folder by specifying the `INSTALLDIR` +property like this:: + + msiexec /passive /i ownCloud-x.y.z.msi INSTALLDIR="C:\Program Files (x86)\Non Standard ownCloud Client Folder" + +Be careful when using PowerShell instead of `cmd.exe`, it can be tricky to get +the whitespace escaping right there. Specifying the `INSTALLDIR` like this +only works on first installation, you cannot simply reinvoke the .msi with a +different path. If you still need to change it, uninstall it first and reinstall +it with the new path. + +Disabling automatic updates +^^^^^^^^^^^^^^^^^^^^^^^^^^^ +To disable automatic updates, you can pass the `SKIPAUTOUPDATE` property.:: + + msiexec /passive /i ownCloud-x.y.z.msi SKIPAUTOUPDATE="1" + +Launch after installation +^^^^^^^^^^^^^^^^^^^^^^^^^ + +To launch the client automatically after installation, you can pass the `LAUNCH` property.:: + + msiexec /i ownCloud-x.y.z.msi LAUNCH="1" + +This option also removes the checkbox to let users decide if they want to launch the client +for non passive/quiet mode. + +.. NOTE:: +This option does not have any effect without GUI. + +No reboot after installation +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The ownCloud Client schedules a reboot after installation to make sure the Explorer extension is correctly (un)loaded. +If you're taking care of the reboot yourself, you can set the `REBOOT` property:: + + msiexec /i ownCloud-x.y.z.msi REBOOT=ReallySuppress + +This will make `msiexec` exit with error `ERROR_SUCCESS_REBOOT_REQUIRED` (3010). +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:: + + msiexec /i ownCloud-x.y.z.msi DO_NOT_SCHEDULE_REBOOT="1" + Installation Wizard -------------------