
A tool for dynamically using installapplication
Repo macadmins/installapplications, read from GitHub 14 h ago. macadmins has not joined Take My Repo.
macadmins/installapplications is a public repo on GitHub by macadmins. A tool for dynamically using installapplication. It declares the Apache-2.0 license on GitHub. It is written mainly in Python, has 307 stars and last changed on 2026-10-23. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
![]()
InstallApplications is an alternative to tools like PlanB where you can dynamically download packages for use with InstallApplication. This is useful for DEP bootstraps, allowing you to have a significantly reduced initial package that can easily be updated without repackaging your initial package.
As of v2.0, InstallApplications now uses its own embedded python v3.8. This is due to Apple's upcoming removal of Python2.
Gurl has been updated from the Munki 4.0 release and tested with HTTPs and Basic Authentication. Further testing would be appreciate by the community.
To help admins with their scripts, the following modules have been added: PyObjC (required for gurl) Requests (for API driven tools)
Should the need come up for more modules, a PR should be made against the repo with proper justification
installapplications.py and postinstall have been ran through 2to3 to automatically convert for Python3 compatibility.
To reduce the size of the git repository, you must create your own Python. To do this, simply run the ./build_python_framework script within the repository.
The framework build uses Python 3.13.17 and requires Xcode on a supported macOS build host.
Rebuild and redistribute the embedded framework to apply the eMudhra/emSign CA mitigation; updating the source requirements does not fix installed copies. The build installs certifi 2026.10.19, bootstraps pip 26.2.2 from a SHA-256 verified wheel, replaces ensurepip’s bundled wheel, and updates virtualenv’s offline seeds. Before signing, it verifies the relocated CA bundles, offline venv creation, and normal HTTPS. See the Python security advisory.
The framework selects its relocated certifi bundle for stdlib HTTPS by default. Explicit SSL_CERT_FILE overrides and additional trust stores remain the operator’s responsibility. macOS trust updates are also required for the native NSURLSession downloads used by InstallApplications.
./build_python_framework
Cloning relocatable-python tool from github...
Cloning into '/tmp/relocatable-python-git'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 70 (delta 7), reused 16 (delta 6), pack-reused 50
Unpacking objects: 100% (70/70), done.
Downloading https://www.python.org/ftp/python/3.8.0/python-3.8.0-macosx10.9.pkg...
...
Done!
Customized, relocatable framework is at ./Python.framework
Moving Python.framework to InstallApplications payload folder
Unfortunately due to the embedded python, InstallApplications has significantly grown in size, from approximately 35Kb to 27.5 MB. The low size of InstallApplications has traditionally been one of it's greatest strengths, given how fragile mdmclient can be, but there is nothing that can be done here.
Python user/root scripts should be pinned to the embedded Python framework. Moving forward, scripts not pinned will be unsupported.
It is recommended that you run 2to3 against your scripts to make them python3 compliant.
/usr/local/bin/2to3 -w /path/to/script
Then simply update the shebang on your python scripts to pin against the InstallApplications python framework.
#!/Library/installapplications/Python.framework/Versions/Current/bin/python3
You can find an example on how this was done by looking at InstallApplications' own postinstall
While other MDMs could technically install this tool, the mechanism greatly differs. Other MDMs currently use InstallApplication API to install their binary. From here, you could then install this tool.
Unfortunately, by doing this, you lose many of the features of InstallApplications, the primary one being speed.
Example: Jamf Pro
Jamf Pro would install the jamf binary first, rather than InstallApplications. An admin would need to scope a policy through the console in order to install this tool and it cannot be 100% validated that InstallApplications will be installed during the SetupAssistant process.
During a DEP SetupAssistant workflow (with a supported MDM), the following will happen:
InstallApplication to inform the device of a package installation.There are currently three stages:
This stage is designed to only work with a single rootscript. This stage is useful for running InstallApplications on previously deployed machines or if you simply want to re-run it.
If the preflight script exits 0, InstallApplications will cleanup/remove itself, bypassing the setupassistant and userland stages.
If the preflight script exits 1 or higher, InstallApplications will continue with the bootstrap process.
By utilizing setupassistant/userland, you can have almost instant UI notifications for your users.
You will NEED to sign this package for use with DEP/MDM. To acquire a signing certificate, join the Apple Developers Program.
Open the build-info.json file and specify your signing certificate.
"signing_info": {
"identity": "Mac Installer: Erik Gomez (XXXXXXXXXXX)",
"timestamp": true
},
Note that you cannot use a Mac Developer: signing identity as that is used for application signing and not package signing. Attempting to use this will result in the following error:
An installer signing identity (not an application signing identity) is required for signing flat-style products.)
InstallApplications can handle downloading and running scripts. Please see below for how to specify the json structure.
For user scripts, you must set the folder path to the userscripts sub folder. This is due to the folder having world-wide permissions, allowing the LaunchAgent/User to delete the scripts when finished.
"file": "/Library/installapplications/userscripts/userland_exampleuserscript.py",
If you need to install IAs to another folder, you can modify the munki-pkg payload, but you will also need to modify the launchdaemon plist's iapath argument.
<string>--iapath</string>
<string>/Library/installapplications</string>
Simply specify a url to your json file in the LaunchDaemon plist, located in the payload/Library/LaunchDaemons folder in the root of the project.
<string>--jsonurl</string>
<string>https://domain.tld</string>
NOTE: If you alter the name of the LaunchAgent/LaunchDaemon or the Label, you will also need enable the arguments laidentifier and ldidentifier in the launchdaemon plist, and the lapath and ldpath varibles in the postinstall script.
<string>--laidentifier</string>
<string>com.example.installapplications</string>
<string>--ldidentifier</string>
<string>com.example.installapplications</string>
If after installing all of your packages, you want to force a reboot, simply uncomment the flag in the launchdaemon plist.
<string>--reboot</string>
If you would like to pre-package your bootstrap.json file into your package and not download it, simply uncomment the flag in the launchdaemon plist.
<string>--skip-validation</string>
Currently, Basic Authentication is only supported by using --headers flag.
The authentication should be passed as a base64 encoded username:password, including the Basic string.
Example:
import base64
base64.b64encode('test:test')
'dGVzdDp0ZXN0'
up = base64.b64encode('test:test')
print 'Basic ' + up
Basic dGVzdDp0ZXN0
In the LaunchDaemon add the following:
<string>--headers</string>
<string>Basic dGVzdDp0ZXN0</string>
If your webserver needs to redirect InstallApplictions to fetch content from another URL, pass --follow-redirects in your LaunchDaemon. Useful for situations where content may be stored on a CDN or object storage.
<string>--follow-redirects</string>
As of InstallApplications v2.0.2, the built in support for DEPNotify has been removed.
Big Sur makes this code less stable. If you would like an example on how to launch DEPNotify with a user script, please see depnotify_user_launcher.py at the installapplications demo GitHub.
All root actions are logged at /private/var/log/installapplications.log as well as through NSLog. You can open up Console.app and search for InstallApplications to bring up all of the events.
All user actions are logged at /var/tmp/installapplications/installapplications.user.log as well as through NSLog. You can open up Console.app and search for InstallApplications to bring up all of the events.
Adapted from Munki's middleware methodology and code,
This optional feature allows an admin to use third party code, or create their own code to manipulate InstallApplication's HTTP requests.
InstallApplications is looking for files the start with "middleware". Examples of good and bad middleware filenames:
👍 middleware.py
👎 middleware
👎 my_middleware.py
👍 middleware_logic_taken_from_munki.py
If you are using middleware, ensure the Python sha-bang is the same as InstallApplications, ie #!/Library/installapplications/Python.framework/Versions/Current/bin/python3.
The middleware file must live in the same directory of InstallApplications folder (/Library/installapplications/), including your middleware in payload/Library/installapplications/ should be sufficient enough to ensure its contained within the build package and receives proper permissions upon install.
process_request_options() is the function that InstallApplications is looking for in the middleware. If InstallApplications doesn't find this function in the middleware it will abandon the processing of the url, and continue on.
This repository has been setup for use with munkipkg. Use munkipkg to build your signed installer with the following command:
./munkipkg /path/to/repository
Each package must have a SHA256 hash stored in the JSON. You can easily create hashes with the following command:
/usr/bin/shasum -a 256 /path/to/pkg
This guarantees that the package you place on the web for download is the package that gets installed by InstallApplication. If the hash does not match, InstallApplication will attempt to re-download and re-check.
The JSON structure is quite simple. You supply the following:
/Library/installapplications)macadmins/installapplications is a public repo on GitHub by macadmins. A tool for dynamically using installapplication.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-10-23. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run installapplications. What is known comes from GitHub. It declares the Apache-2.0 license on GitHub. Its last change was on 2026-10-23. It has 307 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.