Worklet: Install Dashlane client on Mac

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

See this KB article for how to setup a worklet:

Evaluation Code:

#!/bin/bash

if [ -d "/Applications/Dashlane.app" ]; then
    exit 0
else
    exit 1
fi

Remediation Code:

#!/bin/bash

echo -e "Downloading Dashlane..."
curl -L -o "/tmp/Dashlane.dmg" https://www.dashlane.com/directdownload?platform=mac

echo -e "Installing Dashlane..."
hdiutil attach "/tmp/Dashlane.dmg" -nobrowse
ditto "/Volumes/Dashlane/Dashlane.app" "/Applications/Dashlane.app"

echo -e "Cleaning up..."
hdiutil detach "/Volumes/Dashlane"
rm -f "/tmp/Dashlane.dmg"
2 Likes