Application of the Week – WhatsApp Desktop (Part 2)

Application of the week > Application of the Week – WhatsApp Desktop (Part 2)

In ‘Application of the Week – WhatsApp Desktop (Part 1)‘ I’ve described how to create a managed package for ‘WhatsApp Desktop‘.

In this blog I will describe how to create two scheduled tasks to receive e-mail notifications when WhatsApp Desktop, or any other application for which you’ve created a managed package for, is updated and how to automatically update your managed package(s).

To receive email notifications from within Liquit Workspace first add an email server under Manage, Mail Settings:

– Click ‘Manage’
– Click ‘Mail Settings’
– Click Add and set the Details, Settings and Authentication parameters for this email server

This email server is used by the scheduled tasks to send email messages with. More information about ‘Mail Settings’ in the documentation here.

After you’ve configured your email server like e.g. this:

Don’t forget to use the ‘Test’ option to actually test the configuration:

To create a scheduled task ‘Notifications’:

– Click ‘Manage’
– Click ‘Schedule Tasks’
– Click ‘Add’
– Select ‘Synchronize connector’
– Use ‘Notifications’ for the name of this schedule task
– Select your Setup Store connector
– Select ‘Check for updates’ as the action type
– Click ‘Next’
– Make sure ‘Modify scheduled task after creation’ is checked, then click ‘Finish’

Then to finish the configuration of this scheduled task:

– Click Notifications on the left
– Enable the notification and add one or more email addresses

– Click Schedule on the left
– Add a ‘Daily’ schedule and set its time to 07:00:00 (which is UTC)

– Click ‘Save’ to save the scheduled task

Every day this scheduled task will send you an e-mail message that there’s an update available for a particular managed package. This is an example of how this looks like for my ‘Amazon AWS Command Line Interface’, ‘ImageMagick’ and ‘WhatsApp’ packages:

That’s informative, but this only shows a new version is available. In order to actually update the managed package we can create another scheduled task which we call ‘Per managed package’ in this example:

– Click ‘Add’
– Select ‘Synchronize connector’
– Use ‘Per Managed Package’ for the name of this schedule task
– Select your Setup Store connector
– Select ‘Download and apply updates’ as the action type

Now, two options become available selecting ‘Download and apply updates’

The first one is ‘Send detailed per package notifications’. Check the checkbox for this option. By using this option you will receive, per managed package, a very detailed email message in which all kind of information of an update is included:

Information like Release Notes, but also CVE and CVSS information (if applicable) and the VirusTotal score. The last one is very important for risk mitigation, to determine whether its safe to deploy the update:

The second option which comes available selecting ‘Download and apply updates’ is the ‘Stage’ option. Here’s where you can configure which DTAP stage the updated package is put in in order to facilitate ‘staged’ deployment:

More about that in Part 3 of this blog.

Click ‘Finish’ to finish the configuration of this scheduled task:

– Click Notifications on the left
– Enable the notification and add one or more email addresses
– Click Schedule on the left
– Add a ‘Daily’ schedule and set its time to 08:00:00 (which is UTC)


About the author