Skip to main content

This is a utility package for installing and uninstalling Mozilla applications on various platforms.

Project description

[Mozinstall](https://github.com/mozilla/mozbase/tree/master/mozinstall) is a python package for installing Mozilla applications on various platforms.

For example, depending on the platform, Firefox can be distributed as a zip, tar.bz2, exe or dmg file or cloned from a repository. Mozinstall takes the hassle out of extracting and/or running these files and for convenience returns the full path to the application’s binary in the install directory. In the case that mozinstall is invoked from the command line, the binary path will be printed to stdout.

# Usage

For command line options run mozinstall –help

Mozinstall’s main function is the install method

import mozinstall mozinstall.install(‘path_to_install_file’, dest=’path_to_install_folder’)

The dest parameter defaults to the directory in which the install file is located. The install method accepts a third parameter called apps which tells mozinstall which binary to search for. By default it will search for ‘firefox’, ‘thunderbird’ and ‘fennec’ so unless you are installing a different application, this parameter is unnecessary.

# Error Handling

Mozinstall throws two different types of exceptions:

  • mozinstall.InvalidSource is thrown when the source is not a recognized file type (zip, exe, tar.bz2, tar.gz, dmg)

  • mozinstall.InstallError is thrown when the installation fails for any reason. A traceback is provided.

# Dependencies

Mozinstall depends on the [mozinfo](https://github.com/mozilla/mozbase/tree/master/mozinfo) package which is also found in the mozbase repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mozInstall-1.0.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file mozInstall-1.0.tar.gz.

File metadata

  • Download URL: mozInstall-1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mozInstall-1.0.tar.gz
Algorithm Hash digest
SHA256 29b3ad4bf241f0aec317c4e3e4ba114844ba7b9d357913ed03dbf2aef34cba87
MD5 fc4621a3f9c3a99e6f04c291a7c9bca9
BLAKE2b-256 f9a74ed4b59ff7be6808fa17e074146c42c81d6f282494f9e9d0a9802c048fcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page