Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-57792

Companion app MSI doesn't start automatically

XMLWordPrintable

      Currently, when deploying Companion App on Windows OS using the MSI, it will not start automatically.

      If the MSI is distributed across the organization by the system administrator, if the user is not aware and doesn't reboot the machine afterward, they will still get prompted to install the Companion app upon trying to edit the attachment.

      This will result in a new installation of the Companion app on top of the one that is already installed.

      The solution for this is to make the Application start automatically after it is installed.


      Current scenario:

      After user runs the App for the first time, the registry key will be added in the following path

      HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
      The Workaround

      One of our customers came up with a solution to add the registry key automatically in the HKLM during the deployment to ensure that the app is started automatically without having the user to start it manually.

       

      Custom script for Companion App MSI

      msiexec /qn /i "Atlassian Companion.msi"
      reg add "HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run" /v "electron.app.Atlassian Companion" /d "\"C:\Program Files (x86)\Atlassian Companion\Atlassian Companion.exe\"" /f

       

              Unassigned Unassigned
              nradenovic Nikola (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: