Skip to main content

[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.

Release files for mozInstall 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mozInstall 1.0
File Size Uploaded
mozInstall-1.0.tar.gz 5.5 kB Details

Release files / mozInstall-1.0.tar.gz

Download URL mozInstall-1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
29b3ad4bf241f0aec317c4e3e4ba114844ba7b9d357913ed03dbf2aef34cba87
BLAKE2b-256 checksum
How to use checksums
f9a74ed4b59ff7be6808fa17e074146c42c81d6f282494f9e9d0a9802c048fcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.16.0

2 release files

1.15

1 release file

1.12

1 release file

1.11

1 release file

1.10

1 release file

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

This release

1.0 This release

1 release file

0.10

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page