Maple 2021 Package never finishes

lehose
New Contributor II

I'm trying to deploy Maple 2021 to MacOS Big Sur.  The software actually installs fine if I watch the application folder in Finder.  However, as far as self-service is concerned, it just keeps spinning in process indefinately.

My policy caches my pkg to a temp folder.  I then run the post install script:

#!/bin/sh

cd /users/shared/Temp/Maple2021.1MacInstaller.app/Contents/Macos

./installbuilder.sh --unattendedmodeui minimal --mode unattended --licenseType network --serverName REDACTED --portNumber 27003 --enableUpdates 0 --checkForUpdatesNow 0

 

After this, another script to remove the installer runs:

#!/bin/sh

rm -rf /users/shared/Temp

 

Any suggestions?  I'm a MacOS and Jamf novice, so I'm assuming I'm doing something incorrectly




1 ACCEPTED SOLUTION

AntMac
Contributor

May I offer a possible alternative option for you? 

If you have the dmg from the vendor possibly an easier option for you may be to capture the install and desired settings in Composer. If you are able to do that you can then make a PKG which you can allow to be uninstalled. Just make sure you tick the appropriate FUT/FEU checkboxes and allow uninstall in JAMF admin after uploading. Then the JAMF policy can do more of the leg work for you rather than having to try and script it. 

Composer manual is here if you want to check it out Composer User Guide | Jamf

Also a side point, unsure if you are deploying to M1 or Intel chipset. But if you are deploying to M1, Rosetta would need to be installed first as this application is Intel with Rosetta support for M1. Der Flounder has a nifty script that works beautifully to deploy out Rosetta.   Installing Rosetta 2 on Apple Silicon Macs | Der Flounder (wordpress.com)

View solution in original post

10 REPLIES 10

damienbarrett
Valued Contributor

put exit 0 at the end of each script so the shell can exit cleanly.

Thanks for the suggestion. I've added this line but still having some issues. Still looking into it.

Unfortunately I'm running into the same behavior after adding this line to the scripts

cd /users/shared/Temp/Maple2021.1MacInstaller.app/Contents/Macos

./installbuilder.sh --unattendedmodeui minimal --mode unattended --licenseType network --serverName REDACTED --portNumber 27003 --enableUpdates 0 --checkForUpdatesNow 0

exit 0

I don't understand why you're using the cd (change directory) command in your script. You can just call the installbuilder.sh by providing the full path to it. And you likely may not even need a bash script here. You can just use the Files & Processes section of a Jamf policy to call the installbuilder.sh script as a one-line command in this part of the policy.

If you want to delete the installer from /Temp, just have your policy drop it in /tmp and it'll be deleted automatically on the next reboot of the machine. So...put the Maple installer in /tmp and then have the Files & Processes section of a policy call this installbuilder.sh script that's within the installer.

I'm willing to give that a try.  I wasn't sure if it would work since the installbuilder.sh is contained within the installer.app.  Would I just save the contents as a folder and upload to Jamf admin. Or is Jamf able to drill into the .app if I upload it?

AntMac
Contributor

May I offer a possible alternative option for you? 

If you have the dmg from the vendor possibly an easier option for you may be to capture the install and desired settings in Composer. If you are able to do that you can then make a PKG which you can allow to be uninstalled. Just make sure you tick the appropriate FUT/FEU checkboxes and allow uninstall in JAMF admin after uploading. Then the JAMF policy can do more of the leg work for you rather than having to try and script it. 

Composer manual is here if you want to check it out Composer User Guide | Jamf

Also a side point, unsure if you are deploying to M1 or Intel chipset. But if you are deploying to M1, Rosetta would need to be installed first as this application is Intel with Rosetta support for M1. Der Flounder has a nifty script that works beautifully to deploy out Rosetta.   Installing Rosetta 2 on Apple Silicon Macs | Der Flounder (wordpress.com)

lehose
New Contributor II

Thanks, I'll give this a try.  So far we only have Intel Macs on campus. For faculty/staff at least.

lehose
New Contributor II

This method works for MacOS Big Sur, but not Catelina.  I might be okay with that though once Big Sur is approved on campus.  Now I just need to figure out how to enable accessibility settings with the package.  This pops up when I launch Maple 202.1  

lehose_0-1629403522248.png

 

Very glad to hear this option worked for you. 

Assuming you are running a minimum of JAMF 10.26. For the accessibility if you want it to be automatically accepted without user interaction you could setup a configuration profile with a Privacy Preferences Policy Control payload. You would need to know the Team ID and Bundle ID of the item you need to enable. 

To obtain those if you don't have them you can run 2 lots of terminal commands over your application after it is installed.

Substituting pathtoapplication and name with actual app information the commands are : 

codesign -dr pathtoapplication

 osascript -e 'id of app "name"' 

Code sign gives your bundle ID code requirement and osascript gives you the identifier.    

 

FutureFacinLuke
Contributor II

I've just done this for Maple 2023, figured it might help:

Put the .app installer in /tmp packaged with composer

Policy: install the package, run Terminal Command: 

/tmp/Maple2023.0MacInstaller.app/Contents/MacOS/installbuilder.sh --unattendedmodeui minimal --mode unattended --licenseType network --serverName maple.org.com --portNumber 27000

 Change the serverName and portNumber to be suitable for your org