mirror of
https://github.com/Installomator/Installomator.git
synced 2026-02-20 13:22:39 +00:00
update flag which stops installation if app is not present #532
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @scriptingosx on GitHub.
We have gotten a few requests on MacAdmins Slack recently for an 'update-only' mode in Installomator. That is, when the app or tool in question is not present on the system, Installomator does nothing. If the app is present, Installomator proceeds to determine if an update exists etc. This issue is to track comments and discussion around it.
The challenge here is to determine if the app is present. This is fairly trivial for apps in dmg and other archives, since we determine the installed app to retrieve the version. However, with pkgs, this can turn out to be much harder. Since pkgs may not install a proper app bundle or install it in an arbitrary, non-standard location. Currently, we determine the installed version of a pkg from the pkg receipt. That means that if an app or tool was installed, but later removed by deleting the app, but not "forgetting" the receipt, Installomator will see that app or tool as installed, even though it was deleted.
All of that said, I believe it would make sense to use the
INSTALLvariable for this with a new, third optionupdate.@scriptingosx commented on GitHub:
Alternative: You could create a wrapper script that checks for an app's presence and runs Installomator selectively, e.g.:
@scriptingosx commented on GitHub:
Other alternative: @Mac-Nerd 's Patchomator
@scriptingosx commented on GitHub:
discussion is happening in #410 in case you want to chime in
@Theile commented on GitHub:
Or #410.