Skip to main content

Worklet: Install LogMeIn client on Mac or Windows

  • August 19, 2019
  • 3 replies
  • 109 views

Nic-Automox

This worklet will check to see if LogMeIn is installed and if it isn’t, will download and install it.

 

See this KB article for how to setup a worklet:


https://help.automox.com/hc/en-us/articles/5603324231700-Creating-a-Worklet

 

 

Evaluation Code:

 

 

#!/bin/bash



if [ -d "/Applications/LogMeIn Client.app" ]; then

exit 0

else

exit 1

fi

 

Remediation Code:

 

 

#!/bin/bash



echo -e "Downloading LogMeIn Client..."

curl -L -o "/tmp/LogMeInClientMac.dmg" https://secure.logmein.com/LogMeInClientMac.dmg



echo -e "Installing LogMeIn Client..."

hdiutil attach "/tmp/LogMeInClientMac.dmg" -nobrowse

ditto "/Volumes/LogMeInClient/LogMeIn Client.app" "/Applications/LogMeIn Client.app"



echo -e "Cleaning up..."

hdiutil detach "/Volumes/LogMeInClient"

rm -f "/tmp/LogMeInClientMac.dmg"

This topic has been closed for replies.

3 replies

cfrieberg
Forum|alt.badge.img
  • Novice
  • 26 replies
  • January 30, 2020

Any chance someone can make one of these for windows please 🙂


cfrieberg
Forum|alt.badge.img
  • Novice
  • 26 replies
  • January 30, 2020

nvm I got one made 🙂

Use required software for windows, and attach the logmein client installer msi.

Add this code:

`exit (Start-Process -FilePath 'msiexec.exe' -ArgumentList ('/qn', '/i', '"LogMeInIgnition.msi"') -Wait -Passthru).ExitCode`

Nic-Automox
  • Author
  • Former Automox Employee
  • 832 replies
  • January 31, 2020

Thanks for sharing that - I’ll change the title to indicate windows and Mac so that people can find your code.