====================================
Alternative installation for Windows
====================================

If you already have Anaconda installed on your computer, you must use the
:doc:`recommended method <navigator>` of installing Fusion to prevent multiple
copies of Anaconda from being installed on your system--multiple installations
could lead to system conflicts.

If you do not have Anaconda installed on your computer, and do not want to
follow the recommended installation method--using Navigator, Fusion can be
installed on your Windows PC in 2 other ways:

* :ref:`fusion_install_conda_win`

* :ref:`fusion_install_win`

.. _fusion_install_conda_win:

Installing using a conda package on Windows
===========================================

If you already have an Anaconda installation, and are familiar with conda
packages, you can install Fusion as a conda package.

NOTE: Fusion requires Python 3.5. You may create a Python 3.5 conda environment
and install Fusion there even if your conda root environment uses another Python
version (such as Python 2.7).

To install Fusion as a conda package:

#. After Excel has been updated, open a command prompt.

#. In the command prompt, run the following command to create the new conda environment where you will install Fusion:

   .. code-block:: bash

    conda create -n fusion-env python=3.5
    activate fusion-env

   NOTE: Replace ``fusion-env`` with the name you choose for your Fusion environment.

#. Once your Fusion environment is created, run the following command to install Fusion:

   .. code-block:: bash

    conda install -c anaconda-fusion anaconda-fusion

#. To start Fusion, go to your your Apps dashboard and then click the Fusion icon:

   .. figure:: /img/fusion_start_fusion.png
    :width: 80%

   |

The installation is complete. For more information about activating Fusion in
Excel, see :ref:`start_fusion_windows`.

Updating the conda package
--------------------------

To update Fusion with each new release:

#. If you have an open instance of Excel, close that program.

#. Open the command prompt.

#. Run the following command:

   .. code-block:: bash

    conda update -c anaconda-fusion anaconda-fusion

Uninstalling the conda package
------------------------------

To uninstall Fusion:

#. Open the command prompt.

#. Run the following command:

   .. code-block:: bash

    source activate your-environment-name
    conda remove anaconda-fusion

   NOTE: Replace ``your-environment-name`` with the name you used for your environment.

.. _fusion_install_win:

Installing using a standalone installer on Windows
===================================================

To install Fusion using a standalone installer:

#. Download the `Fusion Windows installer  <https://anaconda.org/anaconda-fusion/anaconda-fusion/1.0.2/download/AnacondaFusion-1.0.2-Windows-x86_64.exe>`_.

#. In your Downloads folder, open ``AnacondaFusion-1.0.2-Windows-x86_64.exe``.

#. In the Installation Wizard, follow the on-screen prompts to finish the installation.

   NOTE: The installation requires administrative rights so that all of the assets required by Excel Office365 Add-ins. If the administrative rights are not granted, the registration of these assets will fail and Fusion will be installed in the system, but will not visible within Excel.

   To solve this problem, see :ref:`fusion_install_win_manually` and :ref:`fusion_register_catalog_win`.

#. In your Apps Dashboard, click the Fusion icon:

   .. figure:: /img/fusion_start_fusion.png
    :width: 80%

   |

The installation is complete. You can open Excel and see :ref:`start_fusion_windows` for more information about activating Fusion in Excel.

.. _start_fusion_windows:

Starting Fusion on Windows
==========================

To run Fusion, follow the steps below--depending on which installation method
you used.

If you followed the :ref:`Windows standalone installation instructions <fusion_install_win>`:

#. Click Start and select the Fusion icon:

   .. figure:: /img/fusion_windows_icon.png
    :width: 70%

   |

A command prompt with the server log is displayed.

If you followed the :ref:`Conda package installation instructions <fusion_install_conda_win>`:

#. Open the Windows command prompt and run:

   .. code-block:: bash

    activate your-environment-name

   NOTE: Replace ``your-environment-name`` with the name you used for your environment.

#. After the environment is active, start Fusion by running the command ``fusion``.

Excel is opened.

Installing additional dependencies
==================================

If you have installed Fusion with an installer, you can install additional
conda packages:

#. Open a command prompt.

#. In the command prompt, run:

   .. code-block:: bash

      conda install your-dependency-name

   NOTE: Replace ``your-dependency-name`` with the actual name of the package you want to install.

If you have installed Fusion as a conda package, you can install additional
conda packages:

#. Open a command prompt.

#. In the command prompt, run:

   .. code-block:: bash

      source activate your-environment-name

   NOTE: Replace ``your-environment-name`` with the name you used for your environment.

#. After the environment is active, run:

   .. code-block:: bash

    conda install your-dependency-name

   NOTE: Replace ``your-dependency-name`` with the actual name of the package you want to install.

Installing the Anaconda License files
=====================================

The first time you start Fusion, it will ask you to upload the license file:

.. figure:: /img/fusion_install_license.png
    :width: 70%

|

To upload your license file:

#. Browse your local directory and find the Fusion license file--by default it is named ``license_bundle_20160524191753.txt``.

#. Click the Upload button.

Fusion starts.

Updating on Windows
===================

To update Fusion with each new release:

#. Close Excel.
#. Uninstall the current version of Fusion.
#. Install the new version.

Fusion is updated.

Uninstalling on Windows
=======================

To uninstall Fusion:

#. Click Start.
#. Select Uninstall Anaconda Fusion.

Fusion is uninstalled.

Next steps
==========

For more information about using Fusion, see :doc:`../user-guide/getting-started`.
