madtice 5eeabef079 Create fontexplorer.sh
2022-05-12 20:40:36 : REQ   : fontexplorer : ################## Start Installomator v. 9.2beta, date 2022-05-12
2022-05-12 20:40:36 : INFO  : fontexplorer : ################## Version: 9.2beta
2022-05-12 20:40:36 : INFO  : fontexplorer : ################## Date: 2022-05-12
2022-05-12 20:40:36 : INFO  : fontexplorer : ################## fontexplorer
2022-05-12 20:40:36 : DEBUG : fontexplorer : DEBUG mode 1 enabled.
2022-05-12 20:40:36 : INFO  : fontexplorer : BLOCKING_PROCESS_ACTION=tell_user
2022-05-12 20:40:36 : INFO  : fontexplorer : NOTIFY=success
2022-05-12 20:40:36 : INFO  : fontexplorer : LOGGING=DEBUG
2022-05-12 20:40:36 : INFO  : fontexplorer : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2022-05-12 20:40:37 : INFO  : fontexplorer : Label type: dmg
2022-05-12 20:40:37 : INFO  : fontexplorer : archiveName: FontExplorer X Pro.dmg
2022-05-12 20:40:37 : INFO  : fontexplorer : no blocking processes defined, using FontExplorer X Pro as default
2022-05-12 20:40:37 : DEBUG : fontexplorer : Changing directory to /Users/thijs/gits/Installomator/build
2022-05-12 20:40:37 : INFO  : fontexplorer : No version found using packageID com.linotype.FontExplorerX
2022-05-12 20:40:37 : INFO  : fontexplorer : App(s) found: /Applications/FontExplorer X Pro.app
2022-05-12 20:40:37 : INFO  : fontexplorer : found app at /Applications/FontExplorer X Pro.app, version 7.3.0, on versionKey CFBundleShortVersionString
2022-05-12 20:40:37 : INFO  : fontexplorer : appversion: 7.3.0
2022-05-12 20:40:37 : INFO  : fontexplorer : Latest version of FontExplorer X Pro is 7.3.0
2022-05-12 20:40:37 : WARN  : fontexplorer : DEBUG mode 1 enabled, not exiting, but there is no new version of app.
2022-05-12 20:40:37 : REQ   : fontexplorer : Downloading http://www.fontexplorerx.com/download/free-trial/Mac/ to FontExplorer X Pro.dmg
2022-05-12 20:40:58 : DEBUG : fontexplorer : File list: -rw-r--r--  1 root  staff   219M May 12 20:40 FontExplorer X Pro.dmg
2022-05-12 20:40:58 : DEBUG : fontexplorer : File type: FontExplorer X Pro.dmg: bzip2 compressed data, block size = 100k
2022-05-12 20:40:58 : DEBUG : fontexplorer : curl output was:
*   Trying 104.18.180.24:80...
* Connected to www.fontexplorerx.com (104.18.180.24) port 80 (#0)
> GET /download/free-trial/Mac/ HTTP/1.1
> Host: www.fontexplorerx.com
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 12 May 2022 18:40:37 GMT
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: max-age=3600
< Expires: Thu, 12 May 2022 19:40:37 GMT
< Location: https://www.fontexplorerx.com/download/free-trial/Mac/
< Set-Cookie: __cf_bm=kZPes1jyXmAENecQ_jHVQct9Dvv_ISHMkgRcS4glo0I-1652380837-0-AQPVHegSUW/AmyCHfCgPmZVwgpJlX+4Jhdd51CRneVeNlhg4cWjwzSZp1L+1T+G40HCB/aPfP1oHNCNBbcRLTS6YT7jub4dfXfD26HdNm7S8; path=/; expires=Thu, 12-May-22 19:10:37 GMT; domain=.fontexplorerx.com; HttpOnly; SameSite=None
< Server: cloudflare
< CF-RAY: 70a548a99c75972d-AMS
<
* Ignoring the response-body
{ [5 bytes data]
* Connection #0 to host www.fontexplorerx.com left intact
* Issue another request to this URL: 'https://www.fontexplorerx.com/download/free-trial/Mac/'
*   Trying 104.18.180.24:443...
* Connected to www.fontexplorerx.com (104.18.180.24) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [326 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2992 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=Massachusetts; L=Woburn; O=Monotype Imaging Inc.; CN=*.fontexplorerx.com
*  start date: Oct  7 00:00:00 2021 GMT
*  expire date: Nov  7 23:59:59 2022 GMT
*  subjectAltName: host "www.fontexplorerx.com" matched cert's "*.fontexplorerx.com"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fc1df00d200)
> GET /download/free-trial/Mac/ HTTP/2
> Host: www.fontexplorerx.com
> user-agent: curl/7.79.1
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 302
< date: Thu, 12 May 2022 18:40:37 GMT
< content-type: text/html; charset=utf-8
< location: https://fex.linotype.com/download/mac/FontExplorerXPro.dmg
< cache-control: no-cache, no-store, must-revalidate
< pragma: no-cache
< expires: -1
< x-content-type-options: nosniff
< content-security-policy: frame-ancestors 'none'
< strict-transport-security: max-age=31536002
< cf-cache-status: DYNAMIC
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< set-cookie: __cf_bm=dYYK6Y7iXYOgbnA4M2wcaGi_3TSiOjfbcxSSw3Zbino-1652380837-0-AVfDaWLwFR6cAPkneaotOxDc7uxHiUEPuV92v30LSBVarfBz2BmbAgyBtIlmQBVorqV7i4ihmfqfHx+toFnCJJTxa6tymS6p9Cg6cp6Gs6hU; path=/; expires=Thu, 12-May-22 19:10:37 GMT; domain=.fontexplorerx.com; HttpOnly; Secure; SameSite=None
< server: cloudflare
< cf-ray: 70a548aa1d8e0b43-AMS
<
* Ignoring the response-body
{ [175 bytes data]
* Connection #1 to host www.fontexplorerx.com left intact
* Issue another request to this URL: 'https://fex.linotype.com/download/mac/FontExplorerXPro.dmg'
*   Trying 104.16.65.114:443...
* Connected to fex.linotype.com (104.16.65.114) port 443 (#2)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [321 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2979 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=Massachusetts; L=Woburn; O=Monotype Imaging Inc.; CN=*.linotype.com
*  start date: Oct 19 00:00:00 2021 GMT
*  expire date: Nov 19 23:59:59 2022 GMT
*  subjectAltName: host "fex.linotype.com" matched cert's "*.linotype.com"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fc1df00d200)
> GET /download/mac/FontExplorerXPro.dmg HTTP/2
> Host: fex.linotype.com
> user-agent: curl/7.79.1
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 301
< date: Thu, 12 May 2022 18:40:37 GMT
< content-type: text/html; charset=iso-8859-1
< location: https://fex.linotype.com/download/mac/FontExplorerXPro730.dmg
< x-content-type-options: nosniff
< strict-transport-security: max-age=600
< cf-cache-status: HIT
< age: 434
< expires: Thu, 12 May 2022 22:40:37 GMT
< cache-control: public, max-age=14400
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< set-cookie: __cf_bm=SlfrZLCGpjb6KyGZO8AA0rwgarMWV7kPmFXBLTzy5W4-1652380837-0-AbVvJxFnFOqL80rmdoW6+BJoGPtsSkZracJNOqpaUuwfkPqWxPXamLI3d94NaQ7loSyoYWq7sQEi2MBI2EVzhlg=; path=/; expires=Thu, 12-May-22 19:10:37 GMT; domain=.linotype.com; HttpOnly; Secure; SameSite=None
< server: cloudflare
< cf-ray: 70a548acfe324c61-AMS
<
* Ignoring the response-body
{ [269 bytes data]
* Connection #2 to host fex.linotype.com left intact
* Issue another request to this URL: 'https://fex.linotype.com/download/mac/FontExplorerXPro730.dmg'
* Found bundle for host fex.linotype.com: 0x600000236f70 [can multiplex]
* Re-using existing connection! (#2) with host fex.linotype.com
* Connected to fex.linotype.com (104.16.65.114) port 443 (#2)
* Using Stream ID: 3 (easy handle 0x7fc1df00d200)
> GET /download/mac/FontExplorerXPro730.dmg HTTP/2
> Host: fex.linotype.com
> user-agent: curl/7.79.1
> accept: */*
>
< HTTP/2 301
< date: Thu, 12 May 2022 18:40:37 GMT
< content-type: text/html; charset=iso-8859-1
< location: https://fast.fontexplorerx.com/FontExplorerXPro730.dmg
< x-content-type-options: nosniff
< strict-transport-security: max-age=600
< cf-cache-status: HIT
< age: 433
< expires: Thu, 12 May 2022 22:40:37 GMT
< cache-control: public, max-age=14400
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< set-cookie: __cf_bm=Q4TbFu6Pl0l_HkUJCmCaf5rQaPllv5YED.XM2SL79U8-1652380837-0-AW4DU7pcHEiy+fHl61+ok4XgWh0nEcH+xQmqFXKJiv7H+3qCrGMgF3VX72WPtXrPszVJXl5V0uRNL2er8uChQpk=; path=/; expires=Thu, 12-May-22 19:10:37 GMT; domain=.linotype.com; HttpOnly; Secure; SameSite=None
< server: cloudflare
< cf-ray: 70a548ad2e6d4c61-AMS
<
* Ignoring the response-body
{ [262 bytes data]
* Connection #2 to host fex.linotype.com left intact
* Issue another request to this URL: 'https://fast.fontexplorerx.com/FontExplorerXPro730.dmg'
*   Trying 104.18.181.24:443...
* Connected to fast.fontexplorerx.com (104.18.181.24) port 443 (#3)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [327 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2992 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=Massachusetts; L=Woburn; O=Monotype Imaging Inc.; CN=*.fontexplorerx.com
*  start date: Oct  7 00:00:00 2021 GMT
*  expire date: Nov  7 23:59:59 2022 GMT
*  subjectAltName: host "fast.fontexplorerx.com" matched cert's "*.fontexplorerx.com"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fc1df00d200)
> GET /FontExplorerXPro730.dmg HTTP/2
> Host: fast.fontexplorerx.com
> user-agent: curl/7.79.1
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Thu, 12 May 2022 18:40:38 GMT
< content-type: application/x-apple-diskimage
< content-length: 229482072
< x-amz-id-2: rrcC6JFnkN2jtYk94tMm+523tEdrKttw5CAFgpRxGam9Q+CbHoM/Uh574h1Tiej44o+/Y/NwdLY=
< x-amz-request-id: CB8VSYEZ9B03GME4
< last-modified: Wed, 02 Mar 2022 10:13:51 GMT
< etag: "1e88553987c85a58640ed89b09b3905a-14"
< x-amz-version-id: cnP65ReMq6hht_tJxn6vOaTLvOrEPBC8
< cf-cache-status: HIT
< age: 434
< expires: Thu, 12 May 2022 22:40:38 GMT
< cache-control: public, max-age=14400
< accept-ranges: bytes
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< set-cookie: __cf_bm=fXzImTkInEiKHLNXQKjb4ssMB7TRhWIvw3OZqbnDGYA-1652380838-0-AVO+uwdFQxX4T6ttCaCyQ0IvfqwyaOvkySC4KiaQDqZv7Z9xZDH9qDg1jUHyTJNVdZEnTT1Z7YH3I3xRC4NWKJOHeHnD3lmDBXorIH2I7uRv; path=/; expires=Thu, 12-May-22 19:10:38 GMT; domain=.fontexplorerx.com; HttpOnly; Secure; SameSite=None
< server: cloudflare
< cf-ray: 70a548ad99424bef-AMS
<
{ [701 bytes data]
* Connection #3 to host fast.fontexplorerx.com left intact

2022-05-12 20:40:58 : DEBUG : fontexplorer : DEBUG mode 1, not checking for blocking processes
2022-05-12 20:40:58 : REQ   : fontexplorer : Installing FontExplorer X Pro
2022-05-12 20:40:59 : INFO  : fontexplorer : Mounting /Users/thijs/gits/Installomator/build/FontExplorer X Pro.dmg
2022-05-12 20:41:20 : DEBUG : fontexplorer : Debugging enabled, dmgmount output was:
FontExplorer X Software License Agreement We recommend that you
print this Agreement for further reference. This FontExplorer X
Software License Agreement (this “Agreement”) becomes a binding
contract between you and Monotype, when you click on the area marked
“ACCEPT LICENSE AGREEMENT” (or such similar language). If you do
not wish to be bound by this Agreement, you may not Use the
FontExplorer X Software. Please read all of this Agreement before
you agree to be bound by its terms and conditions.  1.      Definitions
Defined terms used throughout this Agreement: “Critical Patch
Releases” means updates to the FontExplorer X Software that Monotype
determines, in its sole discretion, will be made available on a
general basis to all of its customers. Critical Patch Releases may
or may not include certain changes that are included in an Update
and may be released before or after any such Update is provided to
eligible customers. A Critical Patch Release may, in Monotype’s
sole discretion, be released prior to completion of Monotype’s
complete quality assurance testing process.  “Device” means any
piece of electronic equipment or mechanism designed to serve a
special purpose or perform a special function, including, but not
limited to, a desktop computer, server or laptop.  “FontExplorer X
Pro Software” means all the contents of the files, CD-ROM, DVD-ROM
or other media relating to Monotype’s proprietary FontExplorer X
Pro Software product if such product is provided to you under this
Agreement. The FontExplorer X Pro Software may include Plugins
delivered as part of the FontExplorer X Pro Software package,
Updates, Upgrades, Critical Patch Releases, permitted copies, and
related documentation, in each case which may be provided to you
by Monotype in its sole discretion.  “FontExplorer X Server Software”
means all the contents of the files, CD-ROM, DVD-ROM or other media
relating to Monotype’s proprietary FontExplorer X Server Software
product if such product is provided to you under this Agreement.
The FontExplorer X Server Software may include Updates, Upgrades,
Critical Patch Releases, permitted copies, and related documentation,
in each case which may be provided to you by Monotype in its sole
discretion.  “FontExplorer X Software” means the FontExplorer X Pro
Software or the FontExplorer X Thin Client Software and, as the
case may be, the FontExplorer X Server Software.  “FontExplorer X
Thin Client Software” means the all contents of the files, CD-ROM,
DVD-ROM or other media relating to Monotype’s proprietary FontExplorer
X Thin Client Software product if such product is provided to you
under this Agreement. The FontExplorer X Thin Client Software may
include Plugins delivered as part of the FontExplorer X Thin Client
Software package, Updates, Upgrades, Critical Patch Releases,
permitted copies, and related documentation, in each case which may
be provided to you by Monotype in its sole discretion.  “Licensed
Server” means a Device that the FontExplorer X Server Software runs
on, regardless of other purposes the Device may be used for, and
which shall remain in your sole care, custody and control (or, if
the Licensed Server is hosted by an internet service provider for
your benefit, you shall be responsible for all content on the
Licensed Server, as well as access to and security for such content).
“Licensed User” means you and, so long as they have been notified
by you of the terms and conditions of this Agreement and have agreed
to be bound by it, (i) if you are an individual, members of your
immediate household or (ii) if you are a business entity, your
employees and any contractors, in each case subject to the limit
of the number of users specified in the respective invoice(s) or
licensing document(s).  “Monotype” means collectively Monotype
Imaging Inc., 600 Unicorn Park Drive, Woburn, Massachusetts 01801,
USA, its successors and assigns, its parent and affiliated corporations,
its authorized distributors, and any third party which has licensed
to Monotype any or all of the components of the FontExplorer X
Software supplied to you pursuant to this Agreement.  “Software
Releases” are newly named products which provide unique functionality
beyond the scope of previously released software products and which
will be made available to customers for an additional fee.  “Trial
Period” is a period defined by the communication between you and
Monotype to evaluate FontExplorer X Software in accordance with the
terms of this Agreement.  “Update” means any bug fixes or minor
debugging that revises or corrects inefficiencies or defects in the
FontExplorer X Software. Some specific updates may include a Critical
Patch Release in Monotype’s sole discretion. Updates shall not
include any Upgrades or Software Releases.  “Upgrade” means a new
version of the FontExplorer X Software which provides product
updates, feature enhancements and/or the foundation for additional
functionality beyond that contained in the most recent version of
the FontExplorer X Software. Upgrades shall not include any Software
Releases.  “Use” of the FontExplorer X Software shall occur when
it is downloaded, installed, executed, accessed or an individual
or entity otherwise benefits from the FontExplorer X Software.  2.
Scope
You are bound by this Agreement and you acknowledge that
all Use of the FontExplorer X Software is governed by this
Agreement. You are responsible for any breach of this
Agreement by a Licensed User.
3.      License Grants 3.1     FontExplorer X Server Software. If
the quotation appertaining to this Agreement references the
FontExplorer X Server Software you are hereby granted, unless you
obtain the FontExplorer X Server Software for a Trial Period, subject
to the payment of the applicable license fees, and subject to the
terms and conditions of this Agreement, a non-exclusive, non-assignable,
non-transferable (if the FontExplorer X Software was not acquired
through a subscription except as expressly permitted in Section 9
of this Agreement) license to (i) Use the FontExplorer X Server
Software on Licensed Servers and (ii) to permit Licensed Users to
access and Use the FontExplorer X Server Software through Devices
or through an internal local area network (LAN) which includes
connections though a Virtual Private Network (VPN).  3.2
FontExplorer X Pro Software or FontExplorer X Thin Client Software.
Subject to the payment of the applicable license fees, and subject
to the terms and conditions of this Agreement, each Licensed User
is hereby granted a non-exclusive, non-assignable, non-transferable
(if the FontExplorer X Software or the FontExplorer X Thin Client
Software was not acquired through a subscription except as expressly
permitted in Section 9 of this Agreement) license to copy and Use
the FontExplorer X Pro Software or FontExplorer X Thin Client
Software on Devices which a Licensed User may access under the
condition that persons other than Licensed Users are excluded from
Use of the FontExplorer X Pro Software or FontExplorer X Thin Client
Software. The FontExplorer X Pro Software or FontExplorer X Thin
Client Software may be Used from a server (through a LAN or external
network system) as long as such Use is restricted to Licensed Users.
4.      Copies and Modifications 4.1     FontExplorer X Server
Software. If the quotation appertaining to this Agreement references
the FontExplorer X Server Software you may make one back-up copy
of the FontExplorer X Server Software for archival purposes only,
and you shall retain exclusive custody and control over such copy.
Such copy must contain the same copyright, trademark, and other
proprietary notices that appear on or in the FontExplorer X Server
Software.  4.2     FontExplorer X Pro Software or FontExplorer X
Thin Client Software. With the exception of making copies of the
FontExplorer X Pro Software or FontExplorer X Thin Client Software
for Devices which a Licensed User may access as provided by 3.2, a
Licensed User may make one back-up copy of the FontExplorer X Pro
Software or FontExplorer X Thin Client Software for archival purposes
only, and such Licensed User shall retain exclusive custody and
control over such copy. Such copy must contain the same copyright,
trademark, and other proprietary notices that appear on or in the
FontExplorer X Pro Software or FontExplorer X Thin Client Software.
4.3     Additional Restrictions. You may not, and you will not
encourage, assist or authorize any other person to: ¥       Install
the FontExplorer X Server Software on Devices other than on a
Licensed Server; ¥       Use the FontExplorer X Software if such
person is not a Licensed User; ¥       sublicense, rent or lease,
adapt, modify, alter, translate, convert, create any derivative
work or otherwise change the FontExplorer X Software or any portion
thereof; or ¥       reverse engineer, decompile, disassemble, or
otherwise attempt to discover the source code of the FontExplorer X
Software or any portion thereof, provided, however, that if you are
located in a European Community member country or any other country
which provides rights materially similar to the rights set forth
in this proviso, you may reverse engineer or decompile the
FontExplorer X Software only to the extent that sufficient information
is not available for the purpose of creating an interoperable
software program (but only for such purpose and only to the extent
that sufficient information is not provided by Monotype upon written
request). You agree not to publish, or make otherwise accessible
to the public, the information arrived at through reverse engineering
and/or decompiling for the purpose of achieving interoperability.
4.4     Ownership. If you modify or create a derivative work of the
FontExplorer X Software, Monotype becomes the owner of the modified
data and/or derivative work.  5.      Purchases of Font Software
through the FontExplorer X Pro Software 5.1     In order to purchase
font software products through the FontExplorer X Pro Software, a
Licensed User must register with Monotype. You agree to provide
accurate, current, and complete information and to maintain and
update the registration data as required. Personal data will be
collected, processed and used only by Monotype and its affiliated
companies to provide the services specified herein. In accordance
with the principle of the efficient collection of data, Monotype
will only collect personal data that is necessary to fulfill the
contract and provide the services hereunder.  5.2     Any purchase
of font software products made through the FontExplorer X Pro
Software is subject to the respective foundries’ End User License
Agreement (EULA). The EULAs may be updated by the respective foundry
from time to time and the EULA in effect at the time a Licensed
User purchases a particular font software product shall apply to
that font software product. A breach of any such EULA will also
constitute a breach of this Agreement.  6.      Licensing Information
The FontExplorer X Software may contain license information
about the fonts that are loaded in its repository (e. g.
number of licenses per font). To the extent that you or a
Licensed User enter or change such license information, you
agree that such information is and will be at all times
correct and complete.
7.      Reservation of Rights 7.1     You acknowledge that the
FontExplorer X Software is protected by the copyright of the United
States of America, by the copyright laws of other nations, and by
international treaties. Neither you nor any Licensed User has rights
to the FontExplorer X Software other than as expressly set forth
in this Agreement. You agree that Monotype or its licensors owns
all right, title and interest in and to the FontExplorer X Software,
its structure, organization, code, and related files, including all
property rights therein such as copyright, design and trademarks
rights. You agree that the FontExplorer X Software, its structure,
organization, code, and related files (including, without limitation,
its metrics) are valuable property of Monotype and that any intentional
Use of the FontExplorer X Software not expressly permitted by this
Agreement constitutes a theft of valuable property. You agree to
treat the FontExplorer X Software as you would any other copyrighted
material, such as a book. All rights not expressly granted in this
Agreement are expressly reserved to Monotype.  7.2     Monotype,
the Monotype logo, FontExplorer X and other Monotype trademarks
used in connection with the FontExplorer X Software are trademarks
or registered trademarks of Monotype Imaging Inc. or Monotype GmbH
in the U.S., Germany and/or other countries. Neither you nor any
Licensed User is granted any right or license with respect to any
of the aforementioned trademarks or any use of such trademarks. You
agree to use trademarks associated with the FontExplorer X Software
according to accepted trademark practice, including identification
of the trademark owner’s name. The use of any trademark as herein
authorized does not give you any rights of ownership in that trademark
and all use of any trademark shall inure to the sole benefit of
Monotype.  8.      Warranty; Disclaimer of Warranty; Liability
Limitations 8.1     Monotype warrants to you that the FontExplorer X
Software will perform in accordance with its documentation for the
ninety (90) day period following delivery. To make a warranty claim,
you must, within the ninety (90) day warranty period, notify Monotype.
8.2     MONOTYPE DOES NOT WARRANT THE PERFORMANCE OR RESULTS YOU
MAY OBTAIN BY USING THE FONTEXPLORER X SOFTWARE. TO THE GREATEST
EXTENT PERMITTED BY LAW THE FOREGOING STATES THE SOLE AND EXCLUSIVE
REMEDIES FOR MONOTYPE’S BREACH OF WARRANTY. EXCEPT FOR THE FOREGOING
LIMITED WARRANTY, MONOTYPE MAKES NO REPRESENTATIONS OR WARRANTIES,
EXPRESS OR IMPLIED, AS TO NON-INFRINGEMENT OF THIRD PARTY RIGHTS,
MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE.  8.3     TO
THE EXTENT PERMITTED BY THE APPLICABLE LAW MONOTYPE WILL NOT BE
LIABLE TO YOU OR ANYONE ELSE (I) FOR ANY CONSEQUENTIAL, INCIDENTAL
OR SPECIAL DAMAGES, INCLUDING WITHOUT LIMITATION ANY LOST PROFITS,
LOST DATA, LOST BUSINESS OPPORTUNITIES, OR LOST SAVINGS, EVEN IF
MONOTYPE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR
(II) FOR ANY CLAIM AGAINST YOU BY ANY THIRD PARTY SEEKING SUCH
DAMAGES EVEN IF MONOTYPE HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.  8.4     THE ABOVE LIMITATIONS OF LIABILITY WILL NOT
APPLY IF THE CAUSE OF THE DAMAGE WAS DELIBERATE OR DUE TO GROSS
NEGLIGENCE OR IF PERSONAL INJURY HAS OCCURRED. NEITHER WILL IT APPLY
IF YOU RAISE COMPULSORILY LEGALLY-BASED CLAIMS.  8.5     IN NO EVENT
SHALL MONOTYPE’S LIABILITY EXCEED ONE HUNDRED THOUSAND EURO (€
100,000.00), PROVIDED THAT THE APPLICABLE LAW PERMITS SUCH LIMITATION
OF LIABILITY.  8.6     To the greatest extent permitted by law, any
implied warranties not effectively excluded by this Agreement are
limited to thirty (30) days.  9.      Transfers
Unless you acquire the FontExplorer X Software through a
subscription or for a Trial Period you may transfer all
your rights to Use the FontExplorer X Software to another
person or legal entity provided that (i) all such software
must be transferred simultaneously, (ii) the transferee
accepts and agrees in writing to be bound by all the terms
and conditions of this Agreement, (iii) you forward a copy
of such writing to Monotype, (iv) you destroy all copies
of the FontExplorer X Software not transferred to the
transferee, including all copies stored in the memory of a
hardware device, and (v) you cease all Use of the FontExplorer X
Software.
10.     Term and Termination 10.1    If you acquire the FontExplorer
X Software through a subscription, this Agreement shall be effective
as of the date of acceptance of this Agreement and subscription to
the Monotype Web Fonts Service and will remain in effect for the
term of such subscription unless earlier terminated in accordance
with the terms hereof. If you acquire the FontExplorer X Software
for a Trial Period, the term of a Trial Period shall be from the
date of delivery of the FontExplorer X Software and shall terminate
automatically after the period defined in the communication between
you and Monotype. If no term is communicated then the Trial Period’s
term shall automatically end thirty (30) days after the delivery.
If you acquire the FontExplorer X Software by other means, this
Agreement shall be effective as of the date of acceptance of this
Agreement and will remain in effect unless terminated in accordance
with the terms hereof.  10.2    If you or any Licensed User fails
to comply with any of the provisions of this Agreement or any
Licensed User fails to comply with the terms of a EULA relating to
font software purchased through the FontExplorer X Pro Software,
Monotype, at its sole discretion, may (i) terminate this Agreement
and/or the account of any Licensed User, (ii) terminate any license
to font software purchased through the FontExplorer X Pro Software,
and/or (iii) preclude access to the service offered through the
FontExplorer X Software. The termination of this Agreement shall
not preclude Monotype from suing you for damages resulting from any
breach of this Agreement or any EULA relating to purchased font
software products.  10.3    You will remain liable for all amounts
due to Monotype up to and including the date of termination.  10.4
Upon termination of this Agreement, you must destroy the original
and any and all copies of, and cease all Use of, the FontExplorer X
Software.  11.     Miscellaneous 11.1    Governing Law and Forum.
Unless you enter into this agreement through the Monotype affiliate
Monotype Ltd. or Monotype GmbH, or unless otherwise set forth in
writing in the agreement between you and Monotype, the agreement
entered into between you and Monotype is governed by the laws of
Massachusetts applicable to contracts wholly entered and performable
within such Commonwealth (without regard to applicable conflict of
laws provisions). The United States District Court for the District
of Massachusetts or, if federal subject matter jurisdiction is
lacking, the Superior Court of the Commonwealth of Massachusetts
in Middlesex County, shall be the exclusive forum for any disputes
arising out of or related to such agreement. Both you and Monotype
agree to the personal jurisdiction and venue of these courts in any
action related to such agreement.
If you enter into this agreement through the Monotype
affiliate Monotype Ltd. the agreement is governed by the
laws of England and Wales (without regard to applicable
conflict of laws provisions). The courts of London, England,
shall be the exclusive forum for any disputes arising out
of or related to such agreement. Both you and Monotype Ltd.
agree to the personal jurisdiction and venue of these courts
in any action related to such agreement.  If you enter into
this agreement through the Monotype affiliate Monotype GmbH
the agreement is governed by the laws of Germany (without
regard to applicable conflict of laws provisions). The
courts of Frankfurt/Main, Germany, shall be the exclusive
forum for any disputes arising out of or related to such
agreement. Both you and Monotype GmbH agree to the personal
jurisdiction and venue of these courts in any action related
to such agreement.  The agreement will not be governed by
the United Nations Convention of Contracts for the International
Sale of Goods, the application of which is expressly excluded.
11.2            Supplementary Support. If you have entered into a
separate FontExplorer X Software support agreement or into another
prior FontExplorer X Software agreement that included support, the
support may continue as specified in the support agreement or prior
FontExplorer X Software agreement, notwithstanding any change of
the terms of this Agreement. The continued support may require a
renewal of the respective agreement.  11.3    Entire Agreement.
This Agreement, together with any agreement “clicked through” by
you in connection with the installation of the FontExplorer X Pro
Software or FontExplorer X Thin Client Software, constitutes the
entire agreement between you and Monotype that governs the use of
the FontExplorer X Software, superseding any prior agreements between
you and Monotype. Each party owes to the other party a duty to
co-operate in order to give full effect to this Agreement.  11.4
Severability. If any part of this Agreement is held invalid or
unenforceable, that portion shall be construed in a manner consistent
with applicable law to reflect, as nearly as possible, the original
intention of the parties, and the remaining portions shall remain
in full force and effect.  11.5    No Waiver. Monotype’s failure
to enforce any right or provisions in this Agreement will not
constitute a waiver of such provision, or any other provision of
this Agreement.  11.6    Government End Users. If this product is
acquired under the terms of a (i) GSA contract - use, reproduction
or disclosure is subject to the restrictions set forth in the
applicable ADP Schedule contract, (ii) DOD contract - use, duplication
or disclosure by the Government is subject to the applicable
restrictions set forth in DFARS 252.277-7013; (iii) Civilian agency
contract - use, reproduction, or disclosure is subject to FAR
52.277-19(a) through (d) and restrictions set forth in the Agreement.

FontExplorer X Software License Agreement clickthrough (v160909)
Checksumming Driver Descriptor Map (DDM : 0)…
Driver Descriptor Map (DDM : 0): verified CRC32 $DA8F7176
Checksumming Apple (Apple_partition_map : 1)…
Apple (Apple_partition_map : 1): verified CRC32 $73B16945
Checksumming disk image (Apple_HFS : 2)…
disk image (Apple_HFS : 2): verified CRC32 $256DD0EC
Checksumming  (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
verified CRC32 $2B19FAF6
/dev/disk2          	Apple_partition_scheme
/dev/disk2s1        	Apple_partition_map
/dev/disk2s2        	Apple_HFS                      	/Volumes/FontExplorer X Pro

2022-05-12 20:41:20 : INFO  : fontexplorer : Mounted: /Volumes/FontExplorer X Pro
2022-05-12 20:41:20 : INFO  : fontexplorer : Verifying: /Volumes/FontExplorer X Pro/FontExplorer X Pro.app
2022-05-12 20:41:20 : DEBUG : fontexplorer : App size: 353M	/Volumes/FontExplorer X Pro/FontExplorer X Pro.app
2022-05-12 20:42:04 : DEBUG : fontexplorer : Debugging enabled, App Verification output was:
/Volumes/FontExplorer X Pro/FontExplorer X Pro.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Linotype GmbH (2V7G2B7WG4)

2022-05-12 20:42:04 : INFO  : fontexplorer : Team ID matching: 2V7G2B7WG4 (expected: 2V7G2B7WG4 )
2022-05-12 20:42:04 : INFO  : fontexplorer : Downloaded version of FontExplorer X Pro is 7.3.0 on versionKey CFBundleShortVersionString, same as installed.
2022-05-12 20:42:04 : DEBUG : fontexplorer : Unmounting /Volumes/FontExplorer X Pro
2022-05-12 20:42:15 : DEBUG : fontexplorer : Debugging enabled, Unmounting output was:
"disk2" ejected.
2022-05-12 20:42:15 : DEBUG : fontexplorer : DEBUG mode 1, not reopening anything
2022-05-12 20:42:15 : REG   : fontexplorer : No new version to install
2022-05-12 20:42:15 : REQ   : fontexplorer : ################## End Installomator, exit code 0
2022-05-12 20:43:43 +02:00
2022-05-12 20:43:43 +02:00
2022-03-30 13:39:23 +02:00
2022-02-08 10:38:40 +01:00
2021-09-09 19:26:38 +02:00
2021-08-25 10:55:35 +02:00
2021-04-21 11:30:58 +02:00
2022-03-18 13:51:25 +01:00
2022-02-08 11:13:03 +01:00
2022-03-18 13:51:25 +01:00
2020-05-14 11:48:50 +02:00

Installomator

The one installer script to rule them all.

   

This script is in the “we find it useful, it is working for us” stage.

Your production and deployment environment will be different, please test thoroughly before rolling it out to your production.

We have put a lot of work into making it stable and safe, but we cannot - of course - make any promises that it won't break in some not yet encountered edge case.

Authors

Intallomator was originally inspired by the download scripts from William Smith and Sander Schram, and created by:

Later on a few more members came on the project:

And with numerous contributions from many others.

Support and Contributing

Please note, that if you are contributing to this project with new labels or other suggestions in PRs, please put your changes in the files below fragments-folder. DO NOT edit the full Installomator.sh script. The full script is now a build of the fragments, and will be overwritten. See the README.md file in the utils directory for detailed instructions.

Discussion, support and advice around Installomator happens in the #installomator channel in the MacAdmins.org Slack. Go there for support questions.

Do not create an issue just when you have a questions, but do file an issue or pull request (PR) for bugs or wrong behavior. When in doubt, ask in the above Slack channel.

Please see CONTRIBUTING.md for how to contribute.

More reading

Our wiki:

There are a few interesting post on Installomator on Armins weblog:

Background

In the world of managing Apple Macs, organizations can have two different approaches to the management. Either the IT department will tightly manage and verify each piece of software, or they will just want the latest software to be deployed as fast as possible.

OK, maybe some software should be tightly managed and others not, but you get the point.

Tightly managed

If your solution needs to be tightly managed, i.e. the versions of the operating system and third party software are controlled and updates will only be pushed with the management system when the administration and security team went through an approval process and then the update is automated. This is an important and valid workflow and the right fit for many deployments.

Installomator was not written for these kinds of deployment.

If you are running this kind of deployment, you want to use AutoPkg and you can stop reading here.

Latest version always

There are other kinds of deployments, though. In these deployments the management system is merely used to “get the user ready” as quickly as possible when they set up a new machine, and to offer software from a self service portal. In these deployments, system and software installations are latest version available and updates are user driven (though we do want to nag them and push them).

Installomator can help with this.

These deployments can be

  • user driven
  • low control
  • minimal maintenance effort
  • latest version is best

These can be 'user controlled' Macs and we (the admins) just want to assist the user in doing the right thing. And the right thing is (often) to install the latest versions and updates when they are available.

The Mac App Store and software pushed through the Mac App Store follow this approach. When you manage and deploy software through the App Store — whether it is on iOS or macOS — neither the MacAdmin nor the user get a choice of the application version. They will get the latest version.

In such deployments, keeping the installers hosted in your management system up to date is an extra burden. AutoPkg can, well, automate much of the download/re-package/upload/stage cycle, but it still requires oversight and maintenance. Instead of downloading, re-packaging, uploading application installers to the management system, it is often easier to run a script which downloads the latest version directly from the vendor's servers and installs it.

There are obviously a few downsides to this approach:

  • when your fleet is mostly on site and many will install or update at the same time, they will reach out over the internet to the vendor's servers, possibly overwhelming your internet connection
  • when you download software from the internet, it should be verified to avoid man-in-the-middle or other injection attacks
  • there is no control over which version the clients get, you cannot "hold back" new versions for testing and approval workflows
  • some application downloads are gated behind logins or paywalls and cannot be automated this way

Some of these disadvantages can be seen as advantages in different setups. When your fleet is mostly mobile and offsite, then downloading from vendor servers will relieve the inbound connection to your management server, or the data usage on your management system's cloud server. Software vendors are pushing for subscriptions with continuous updates and feature releases, so moving the entire team to the latest versions quickly can make those available quickly. Also being on the latest release includes all current security patches.

Because this is an attractive solution for certain kinds of deployment, there are already many scripts out there that will download and install the latest version of a given software. And we have built and used quite a few in-house, as well. Most importantly, William Smith has this script which can be used to install several different Microsoft applications and bundles, because Microsoft has a nice unified URL scheme.

At some point, in 2018, Armin got frustrated at the number of scripts he was maintaining (or failing to). Also, his concern that most of the scripts werent doing any verification of the download was getting unbearable. So, he set out to write the one install script to rule them all…

Locally installed

So Armin made the version for Jamf Pro but universally for any MDM to adopt.

Søren looked at this, and wanted this approach to work in Mosyle and Addigy, and for these solutions we need Installomator to be locally installed on. the Mac, and then the MDM can call this script from their scripts features. For some time Søren had a version of Installomator that was supplied with a notarized pkg, so it could be deployed as part of DEP or however was needed.

This has now been merged into Installomator, and with contributions of Isaac and Adam, new features and labels have been added more frequently.

Goals

The goals for Installomator are:

  • work with various common archive types
  • verify the downloaded archive or application
  • have a simple interface to the admin
  • single script file so it can easily be copied into a management system
  • signed and notarized pkg-installer for local installation
  • extensible without deep scripting knowledge
  • work independently of a specific management system
  • no dependencies that may be removed from macOS in the future or are not pre-installed

In Detail:

Archive types

Installomator can work with the following common archive and installer types:

  • pkg: as a direct download, or when nested inside a dmg or zip
  • dmg: for the common 'drag app to /Applications' installation style
  • zip: the application is just compressed with zip or or tbz

When the download yields a pkg file, Installomator will run installer to install it on the current system.

Applications in dmgs or zips will be copied to /Applications and their owner will be set to the current user, so the install works like a standard drag'n drop installation. Owner can also be set to root/wheel.

(I consider it a disgrace, that Jamf, after nearly 20 years, still cannot deal with dragn drop installation dmgs natively. Its not that hard.)

Verify the download

I chose to use the macOS built-in verification for the downloads. Even though download quarantine does usually not take effect with scripted downloads and installations, we can use Gatekeeper's verification with the spctl command.

All downloads have to be signed and notarized by a valid Apple Developer ID. Signature and notarization will verify the origin and that the archive has not been tampered with in transfer. In addition, the script compares the developer team ID (the ten-digit code associated with the Apple Developer account) with the expected team ID, so that software signed with a different, malicious Apple ID will not be installed.

Simple interface

When used to install software, Installomator has a single argument: the label or name of the software to be installed.

./Installomator.sh firefox
./Installomator.sh firefox LOGO=jamf BLOCKING_PROCESS_ACTION=tell_user_then_kill NOTIFY=all

There is a debug mode and other settings that can be controlled with variables in the code. This simplifies the actual use of the script from within a management system.

Extensible

As of this writing, Installomator knows how to download and install more than 364 different applications. You can add more by adding new labels to the fragments-folder. Below is an example of a label, and most of them (just) needs this information (not really "just" in this case, as we have to differentiate between arm64 and i386 versions for both downloadURL and appNewVersion):

googlechrome)
    name="Google Chrome"
    type="dmg"
    if [[ $(arch) != "i386" ]]; then
        printlog "Architecture: arm64 (not i386)"
        downloadURL="https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg"
        appNewVersion=$(curl -s https://omahaproxy.appspot.com/history | awk -F',' '/mac_arm64,stable/{print $3; exit}')
    else
        printlog "Architecture: i386"
        downloadURL="https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
        appNewVersion=$(curl -s https://omahaproxy.appspot.com/history | awk -F',' '/mac,stable/{print $3; exit}')
    fi
    expectedTeamID="EQHXZ8M8AV"
    ;;

When you know how to extract these pieces of information from the application and/or download, then you can add an application to Installomator.

The script buildLabel.sh can help with the label creation. Just server the URL to the script, and it will try to figure out things and write out a label as output. See Wiki Tutorials.

Please note: Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed.

Actually labels are part of a case-statement, and must be formatted accordingly.

Not specific to a management system

Armin wrote this script mainly for use with Jamf Pro, because that is what he used. For testing, you can run the script interactively from the command line. However, we have tried to keep anything that is specific to Jamf optional, or so flexible that it will work anywhere. Even if it does not work with your management system out of the box, the adaptations should be straightforward.

Not all MDMs can include the full script, for those MDMs it might be more useful to install it on the client machines, and run it from there. So a PKG to be installed on client Macs is also provided here.

No dependencies

The script started out as a pure sh script, and when arrays was needed it was switched to zsh, because that is what we can rely on being in macOS for the foreseeable future. There are quite a few places where using python would have been easier and safer, but with the python 2 run-time being deprecated, that would have added a requirement for a Python 3 run-time to be installed. XML and JSON parsing would have been better with a tool like scout or jq, but those would again require additional installations on the client before the script can run.

Keeping the script as a zsh allows you to paste it into your management system's interface (and disable the DEBUG mode) and use it without requiring any other installations.

How to use

Interactively in the command line

The script will require one argument.

The argument can be version or longversion which will print the script's version.

> ./Installomator.sh version
2021-03-28 10:03:42 version ################## Start Installomator v. 0.5.0
2021-03-28 10:03:42 version ################## version
2021-03-28 10:03:42 version 0.5.0
> ./Installomator.sh longversion
2021-03-28 10:04:16 longversion ################## Start Installomator v. 0.5.0
2021-03-28 10:04:16 longversion ################## longversion
2021-03-28 10:04:16 longversion Installomater: version 0.5.0 (2021-03-28)

Other than the version arguments, the argument can be any of the labels listed in the Labels.txt file. Each of the labels will download and install the latest version of the application, or suite of applications. Since the script will have to run the installer command or copy the application to the /Applications folder, it will have to be run as root.

> sudo ./Installomator.sh desktoppr DEBUG=0

(Since Jamf Pro always provides the mount point, computer name, and user name as the first three arguments for policy scripts, the script will use argument $4 when there are more than three arguments.)

Debug mode

There is a variable named DEBUG which is set in line 21 of the script. When DEBUG is set to 1 (default) or 2 for a variation of debug, no actions that would actually modify the current system are taken. This is useful for testing most of the actions in the script, but obviously not all of them.

When the DEBUG variable is 1, downloaded archives and extracted files will be written to the script's directory, rather than a temporary directory, which can make debugging easier.

When DEBUG variable is 2, the temporary folder is created and downloaded and extracted files goes to that folder, as if not in DEBUG mode, but installation is still not done. On the other hand blocking processes are checked, the app is reopened if closed, and the user is notified.

Debug mode 1 is useful to test the download and verification process without having to re-download and re-install an application or package on your system. Debug mode 2 is great for checking running processe and notifications.

Always remember to change the DEBUG variable to 0 when deploying. The installer PKG we provide has DEBUG=0.

Use Installomator with various MDM solutions

In the wiki we have provided documentation on how Installomator is used in various MDM solution, like Jamf Pro, Mosyle, and Addigy.

What it does

When it runs with a known label, the script will perform the following:

  • Check the version installed with the version online. Only continue if it's different
  • download the latest version from the vendor
  • when the application is running, prompt the user to quit or cancel (customizable)
  • dmg or zip archives:
    • extract the application and copy it to /Applications
    • change the owner of the application to the current user
  • pkg files:
    • when necessary, extract the pkg from the enclosing archive
    • install the pkg with the installer tool
  • clean up the downloaded files
  • notify the user (also customizable)

Configuring the script

We have several default settings for certain behavior and notifications inside the script, but these can be customized when calling the script.

Blocking Process actions

The BLOCKING_PROCESS_ACTION variable controls the behavior of the script when it finds a blocking process running.

There are eight options:

  • ignore: continue even when blocking processes are found.
  • silent_fail: Exit script without prompt or installation.
  • prompt_user: Show a user dialog for each blocking process found, user can choose "Quit and Update" or "Not Now". When "Quit and Update" is chosen, blocking process will be told to quit. Installomator will wait 30 seconds before checking again in case Save dialogs etc are being responded to. Installomator will abort if quitting after three tries does not succeed. "Not Now" will exit Installomator.
  • prompt_user_then_kill: show a user dialog for each blocking process found, user can choose "Quit and Update" or "Not Now". When "Quit and Update" is chosen, blocking process will be terminated. Installomator will abort if terminating after two tries does not succeed. "Not Now" will exit Installomator.
  • prompt_user_loop: Like prompt-user, but clicking "Not Now", will just wait an hour, and then it will ask again. WARNING! It might block the MDM agent on the machine, as the script will not exit, it will pause until the hour has passed, possibly blocking for other management actions in this time.
  • tell_user: (Default) User will be showed a notification about the important update, but user is only allowed to Quit and Continue, and then we ask the app to quit. This is default.
  • tell_user_then_kill: User will be showed a notification about the important update, but user is only allowed to Quit and Continue. If the quitting fails, the blocking processes will be terminated.
  • kill: kill process without prompting or giving the user a chance to save.

If any process was closed, Installomator will try to open the app again, after the update process is done.

Notification

The NOTIFY variable controls the notifications shown to the user. As of now, there are three options:

  • success: (default) notify the user after a successful install
  • silent: no notifications
  • all: all notifications (great for Self Service installation)

The LOGO variable is used for the icon shown in dialog boxes. There are these options:

  • appstore: Icon is Apple App Store (default)
  • jamf: JAMF Pro
  • mosyleb: Mosyle Business
  • mosylem: Mosyle Manager (Education)
  • addigy: Addigy Path can also be set in the command call, and if file exists, it will be used, like LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns" (spaces are escaped).

App Store apps handling

Default is IGNORE_APP_STORE_APPS=no options:

  • no: If installed app is from App Store (which include VPP installed apps) it will not be touched, no matter it's version (default)
  • yes: Replace App Store (and VPP) version of app and handle future updates using Installomator, even if latest version. Shouldnt give any problems for the user in most cases. Known bad example: Slack will loose all settings.

Owner of copied apps

Default is SYSTEMOWNER=0 options:

  • 0: Current user will be owner of copied apps, just like if they installed it themselves (default).
  • 1: root:wheel will be set on the copied app. Useful for shared machines.

Install behavior (force installation)

Since we now make a version checking, and only installs the software if the version is different, an INSTALL variable can be used to force the installation:

  • : When not set, software is only installed if it is newer/different in version (default)
  • force: Install even if its the same version

Re-opening of closed app

The REOPEN can be used to prevent the reopening of a closed app

  • yes: (default) app will be reopened if it was closed
  • no: app not reopened

Configuration from Arguments

You can provide a configuration variable, such as DEBUG or NOTIFY as an argument in the form VAR=value. For example:

./Installomator.sh desktoppr DEBUG=0 NOTIFY=silent

Providing variables this way will override any variables set in the script.

You can even provide all the variables necessary for download and installation. Of course, without a label the argument parsing will fail, so I created a special label valuesfromarguments which only checks if the four required values are present:

./Installomator.sh name=desktoppr type=pkg downloadURL=https://github.com/scriptingosx/desktoppr/releases/download/v0.3/desktoppr-0.3.pkg expectedTeamID=JME5BW3F3R valuesfromarguments

The order of the variables and label is not relevant. But, when you provide more than one label, all but the last label will be ignored.

Providing all the variables this way might be useful for certain downloads that have a customized URL for each vendor/customer (like customized TeamView or Watchman Monitoring) or are local downloads.

Adding applications/label blocks

Required Variables

The script requires four pieces of information to download and install an application:

spotify)
    name="Spotify"
    type="dmg"
    downloadURL="https://download.scdn.co/Spotify.dmg"
    expectedTeamID="2FNC3A47ZF"
    ;;

The four required variables are

  • name: The display name of the installed application without the .app extensions.

  • type: The type of installation. Possible values:

    • dmg: application in disk image file (drag'n drop installation)
    • pkg: flat pkg download
    • zip: application in zip archive (zip extension)
    • tbz: application in tbz archive (tbz extension)
    • pkgInDmg: a pkg file inside a disk image
    • pkgInZip: a pkg file inside a zip
    • appInDmgInZip: an app in a dmg file that has been zip'ed
  • downloadURL: The URL from which to download the archive. The URL can be generated by a series of commands, for example when you need to parse an xml file for the latest URL. (See bbedit, desktoppr, or omnigraffle for examples.) Sometimes version differs between Intel and Apple Silicon versions. (See brave, obsidian, omnidisksweeper, or notion).

  • curlOptions: (array, optional) Options to the curl command, needed for curl to be able to download the software. Usually used for adding extra headers that some servers need in order to serve the file. curlOptions=( -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" ) (See “mocha”-labels, for examples on labels, and buildLabel.sh for header-examples.)

  • appNewVersion (optional, but recommended): Version of the downloaded software. If given, it will be compared to installed version, to see if download is different. It does not check for newer or not, only different. Not always easy to figure out how to make this. Sometimes this is listed on the downloads page, sometimes in other places. And how can we isolate it in a genral manner? (See abstract, bbedit, brave, desktoppr, googlechrome, or omnidisksweeper).

  • packageID (optional, but recommended for pkgs without an app) This variable is for pkg bundle IDs. Very usefull if a pkg only install command line tools, or the like that does not install an app. (See label desktoppr, golang, installomator_st, odrive, or teamviewerhost).

  • expectedTeamID: The 10-character Developer Team ID with which the application or pkg is signed and notarized.

    Obtain the team ID by running:

    • Applications (in dmgs or zips) spctl -a -vv /Applications/BBEdit.app

    • Installation Packages (pkg) spctl -a -vv -t install ~/Downloads/desktoppr-0.2.pkg

Optional Variables

Depending on the application or pkg there are a few more variables you can or need to set. Many of these are derived from the required variables, but may need to be set manually if those derived values do not work.

  • archiveName: (optional) The name of the downloaded file. When not given the archiveName is set to $name.$type

  • appName: (optional) File name of the app bundle in the dmg to verify and copy (include the .app). When not given, the appName is set to $name.app. This is also the name of the app that will get reopned, if we closed any blockingProcesses (see further down)

  • targetDir: (optional) dmg or zip: Applications will be copied to this directory. Default value is '/Applications' for dmg and zip installations. pkg: targetDir is used as the install-location. Default is '/'.

  • blockingProcesses: (optional) Array of process names that will block the installation or update. If no blockingProcesses array is given the default will be: blockingProcesses=( $name ) When a package contains multiple applications, all should be listed, e.g: blockingProcesses=( "Keynote" "Pages" "Numbers" ) When a workflow has no blocking processes, use blockingProcesses=( NONE )

  • pkgName: (optional, only used for dmgInPkg and dmgInZip) File name of the pkg file inside the dmg or zip. When not given the pkgName is set to $name.pkg.

  • updateTool, updateToolArguments: When Installomator detects an existing installation of the application, and the updateTool variable is set then $updateTool $updateArguments Will be run instead of of downloading and installing a complete new version. Use this when the updateTool does differential and optimized downloads. e.g. msupdate (see various Microsoft installations).

  • updateToolRunAsCurrentUser: When this variable is set (any value), $updateTool will be run as the current user. Default is unset and

  • CLIInstaller:

  • CLIArguments: If the downloaded dmg is actually an installer that we can call using CLI, we can use these two variables for what to call. We need to define name for the installed app (to be version checked), as well as installerTool for the installer app (if named differently that name. Installomator will add the path to the folder/disk image with the binary, and it will be called like this: $CLIInstaller $CLIArguments For most installations CLIInstaller should contain the installerTool for the CLI call (if its the same). We can support a whole range of other software titles by implementing this. See label adobecreativeclouddesktop.

  • installerTool: Introduced as part of CLIInstaller. If the installer in the DMG or ZIP is named differently than the installed app, then this variable can be used to name the installer that should be located after mounting/expanding the downloaded archive. See label adobecreativeclouddesktop

Frequently Asked Questions

What if the latest version of the app is already installed?

Short answer: That depends on if labels will know what the latest version will be.

Longer answer:

  • Labels without this will re-download and re-install the latest over the existing installation.
  • Labels with this info will only install the app if the version is different than the one installed.
  • Labels that can use update tool will use that for the update (if the version is different)

Why don't you just use autopkg install?

Short answer: autopkg is not designed or suited for this kind of workflow

Long answer:

The motivation to not re-invent the wheel and use and existing tool is understandable. However, autopkg was not designed with this use case in mind and has a few significant downsides.

First, you would have to deploy and manage autopkg on all the clients. But to do its work, autopkg requires recipes. So, you have to install, and update the recipe repos on the client, as well. For security reasons, you really should only run trusted recipes, so you need to install and update your personal recipe overrides as well.

The recipes you use are probably spread across multiple community provided recipe-repos, so we have autopkg itself, several recipe-repos, and your overrides that we need to manage, each of which may need to be updated at any time.

The community recipe-repos contain several recipes for different applications. When you add a recipe-repo for an app you want, you will also install all the other recipes from that repo.

The autopkg install does not require root or even administrative privileges. Any user (even standard users) on the system can now install any of the random recipes that came with the community repos.

To prevent users installing random apps from the community repos, you can curate your own recipe-repo from the community repos and push that to the clients. At this point, you are managing autopkg, your curated repo, your recipe overrides on the clients and handling the additional work of curating and updating your recipe-repo and the overrides.

In addition, a really savvy user (or a malicious attacker) could build their own recipe and run it using the pre-installed autopkg you installed.

And then consider what your CISO department (if you have one) would say about the autopkgserver and autopkginstalld daemons running on all the clients...

At this point it would be easier to use AutoPkg the way it was intended: on a single admin Mac, and let it upload the pkgs to your management system, which deploys them. Each tool is doing what it is designed for.

Please don't misunderstand this as me saying that AutoPkg is a bad or poorly designed tool. AutoPkg is amazing, powerful, and useful. The Scripting OS X recipe-repo is one of the older repos. AutoPkg is valuable tool to help admins with many apps that cannot be automated with tools like Installomator, and with deployment strategies that require more control.

But it is not suited as a client install automation tool.

Why don't you just use brew or MacPorts?

Read the explanation for autopkg, pretty much the same applies for brew, i.e. while it is useful on a single Mac, it is a un-manageable mess when you think about deploying and managing on a fleet of computers.

Description
Installation script to deploy standard software on Macs
Readme Apache-2.0 4.4 MiB
Languages
Shell 100%