Install UiPath Firefox extension globally

UiPath Firefox extension can be installed only per user and not globally (per system). This can be doable only for Chrome and not Firefox.

Approach 1:
1. Create a .ps1 file and copy-paste the below content
If (Test-Path -Path $env:appdata\Mozilla\Firefox\Profiles*.default*\extensions*uipath*.xpi) {
‘Nothing to Install’
} Else {
‘Installing UiPath Firefox extension…’
& “C:\Program Files (x86)\UiPath\Studio\UiPath\SetupExtensions.exe” /Firefox
}

2. Place the .ps1 file in a location accessible by all users (example - c:\Users)
3. Navigate to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
4. Create a .cmd file and copy-paste the below content
PowerShell -Command "Set-ExecutionPolicy Unrestricted CurrentUser"
PowerShell "C:\Users\Install_Firefox_Extension.ps1"


Explanation - When a system reboots, the .cmd file is executed. It sets the ExecutionPolicy to Unrestricted for the current user - meaning: the user is able to run commands. Then it runs the PowerShell located in that location. PowerShell script contains code to check if UiPath Firefox extension is installed. If it is installed already, nothing happens. If it is not installed, Script opens Firefox and displays a prompt to add UiPath extension.


Approach 2:
1. Login as Administrator and open Task Scheduler
Image_2019-10-24_13-04-16.png

2. Click Create Task and provide a Name.
Image_2019-10-24_13-06-08.png

3. Under Security Options, click Change Users or Group and add the user group which accesses the machine. In the screen shot, I added BUILTIN\Users group.
Please make sure Run with highest privileges is checked.
Image_2019-10-24_13-18-57.png


4. Navigate to Triggers tab and click New which displays a new popup. Select At log on in the first dropdown and select Any user . Make sure only Enabled checkbox is selected and other checkboxes are unselected. Click Ok to save the trigger.
Image_2019-10-24_13-20-17.png

Image_2019-10-24_13-20-55.png


5. Navigate to Actions tab and click New to add new action. In the popup, select Start a program and click on Browse to select the .cmd file that we created yesterday. Click Ok to save the action.
Image_2019-10-24_13-21-27.png

Image_2019-10-24_13-22-11.png

6. Navigate to Conditions tab and make sure the settings match the screen shot below -
Image_2019-10-24_13-16-20.png

7. Navigate to Settings tab and make sure the settings match below screen shot -
Image_2019-10-24_13-15-47.png

8. Click Ok to save the task.

9. Log off from the machine and log back in as Standard User . The task which we created runs (with highest privileges as selected in step #3) and opens Firefox with a prompt displaying to add UiPath extension.