Category filter

Script to install and uninstall Mozilla Firefox on Windows devices.

Mozilla Firefox offers advanced privacy and security features, which makes it ideal for enterprise use. However, manual installation/uninstallation of the app can become a hassle when needed to be done on a large number of devices. Using Hexnode’s custom script feature, administrators can install or uninstall Firefox remotely across all deployed Windows devices.

Disclaimer:

The sample scripts provided below are adapted from third-party open-source sites.

PowerShell script

Install Firefox

To install Firefox on a Window device, use the following script:

This will download the installer file in c:\installer\ and subsequently use it to install the application on your device.

Uninstall Firefox

The following script will help you uninstall Firefox:

This will check the device for the helper application required to uninstall the application and run it to uninstall Mozilla Firefox. In case the app is not installed on the device, it will relay that Firefox is not installed on this device as output.

Notes:

  • If the helper file has been installed at a different location on the device than C:\Program Files\Mozilla Firefox, provide the file path for the helper file at $filepath to uninstall the application.
  • Mozilla Firefox app should have been installed using either the above script or using an MSI file as an Enterprise app for the script to successfully uninstall the app.
  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository