So I have this distribution file for my package installer:
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="2">
<title>Product</title>
<domains enable_localSystem="false" enable_currentUserHome="true" enable_anywhere="false" />
<allowed-os-versions>
<os-version min="10.15" />
</allowed-os-versions>
<background file="bg.png" alignment="topleft" scaling="none" />
<license file="license.html" />
<conclusion file="conclusion.html" />
<pkg-ref id="com.company.product" />
<options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64" />
<choices-outline>
<line choice="default">
<line choice="com.company.product" />
</line>
</choices-outline>
<choice id="default" />
<choice id="com.company.product" visible="false">
<pkg-ref id="com.company.product" />
</choice>
<pkg-ref id="com.company.product" version="0" onConclusion="none">Apollo.pkg</pkg-ref>
</installer-gui-script>
It should install the app in the home folder but still installs it inside /Applications unless user explicitly clicks "Install only for me" even though that's the only option available.
At this link https://stackoverflow.com/questions/11487596/making-macos-installer-packages-which-are-developer-id-ready they discourage using pkg installer for home folder installations as it's presumably buggy. What can I do?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Adding my app to login items stopped working recently (using currently SMLoginItemSetEnabled method). While debugging I noticed that it returns an error "Could not enable login item: com.app.autoLauncher: 1: Operation not permitted". Tried the newest API SMAppService and it's the same like on the screenshot below. What does it mean? How can I fix it? I'm on Ventura but one of my colleagues is on Big Sur.
Hi,
I'm writing a custom step to our installer using IntallerPlugins.framework and class InstallerPane. Is it possible to get path and name of the pkg file from InstallerPane object?
I tried solution from this page but it seems right now the delegate is not set.
http://s.sudre.free.fr/Stuff/Installer/Installer_Plugins/InstallerPlugins-FAQ002.html.
Also there's no appropriate tag for this framework.
Is there an API that would allow me to login user to their system account (knowing their password and username)?
I'm currently working on an automated testing solution for software and we're considering this functionality on macOS (it's working on Windows already).
How would that work with FileVault and encrypted volume? Maybe it would be only possible after initial login and unlocking the disk?
Hi,
So my app (which is a mix of C++ and Objective-C) is still not a universal build since it has a lot of C++ dependencies that need to be recompiled first.
I'm using a NSTask to launch other processes from my app. Unfortunately the subprocess (even when the binary is universal) is launched via Rosetta and not natively (so the same as my app).
What's the best solution to control the architecture of a spawned subprocess?
Thanks.