Bringing MailWasher - a five star email spam filtering application - to the Windows Store using the Desktop Bridge
MailWasher (www.mailwasher.net) is the leader in spam filter software, and the easiest way to check and manage your e-mails before you download them to your computer. MailWasher is free to use and won’t ever expire. It works with Windows Mail, Outlook.com, Gmail.com, and every other email program. Over 8 million people use MailWasher as their spam filter, and it has been featured on television on both CNN and BBC.
Made for the Windows Desktop, MailWasher is written in both C# and C++. Firetrust was keen to bring MailWasher to the Windows Store, but re-writing the application from-scratch would have meant a lengthy delay before it was available. The Desktop Application Converter, part of the Desktop Bridge technologies for Windows 10, made bringing the MailWasher application to the store simple, fast, and without any code changes.
- Nick Bolton (@firetrust) CEO, Firetrust Ltd
- Regan Murphy (@nzregs) Senior Technical Evangelist, DX, Microsoft NZ
Firetrust (firetrust.com) was founded by Nick Bolton in 2000 with plans to develop an easy to use anti-spam software product for consumers. Following this, in 2001 MailWasher was released to the world and quickly became very popular because it allowed users to easily take control of their email.
Firetrust exports 99% of its software to the world with the main markets being USA, UK, and Australia. Correspondingly, many of the staff at Firetrust have come from countries such as UK, Germany, Jordan, Pakistan, Chile, China, and Vietnam. Firetrust is headquartered in Christchurch, New Zealand.
The Windows 10 Store makes finding apps, and installing them, much easier for users. Many of the potential users of MailWasher are consumers, and may not be confident downloading and installing software themselves. Having MailWasher discoverable for these users in the Windows Store will help bring the software to a new, wider, audience.
MailWasher was initially built in 2000, and has been continuously updated and enhanced ever since. The software is built using both C++ and C# and the developers use both Visual Studio 2008 and Visual Studio 2010. The use of these technologies has meant that MailWasher would need a rewrite before it could be bought to the Windows Store. That is, however, until the Desktop Bridge technology was created.
Firetrust wanted to bring MailWasher to the Windows Store, but did not have the time or resources to rebuild the application from scratch as a UWP application.
Solution, steps, and delivery
With the Desktop Bridge technologies, developers can take “Win32” applications and package them for the Windows Store. There are many different methods for doing this. The method that requires the least amount of work, and zero changes to the existing developer environments, was to convert an existing MSI installer file into an Appx package using the Desktop App Converter.
With the Desktop App Converter, Firetrust could quickly package MailWasher for the Windows Store. The steps were as follows: 1) Prepare the dev environment 2) Obtain the installation source packages for MailWasher 3) Package MailWasher into an Appx bundle using the Desktop App Converter 4) Deploy MailWasher Appx to a Windows 10 environment and test 5) Obtain the RunFullTrust permission and publish the MailWasher Appx package to the Windows Store
A detailed walkthrough of the steps to package an app can be found in the Package an app using the Deskktop App Converter (Desktop Bridge) article which is part of the Desktop Bridge documentation.
The simple command we used to run the Desktop App Converter and generate the packages was as follows:
Code Snippet 1 Running the Desktop App Converter to produce the Appx bundle
DesktopAppConverter.exe -installer .\MailWasher_free_setup_7_11_02_19062017.msi -destination c:\dac\output -PackageName "Firetrust.MailWasherFree" -PackageDisplayName "MailWasher Free" -AppDisplayName "MailWasher Free" -Publisher "CN=AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE" -PackagePublisherDisplayName "Firetrust" -version "18.104.22.168" -Makeappx -sign -PackageArch x86
MailWasher in action
Below is a screenshot taken from the MailWasher app running on Windows 10 on a Microsoft Surface device:
Getting up and running is as simple as deploying the MailWasher Free app directly from the Windows Store, configuring your email account details, and sitting back to watch MailWasher work its magic. For new users, there is a handy tour shown by default as can been seen in the following screenshot:
Try it for yourself!
Mailwasher is now available for Windows 10 and can be found in the Windows Store so you too can start cleaning your mail and boosting your productivity.
Issues encountered, and solutions found
We had initially intended to also bring MailWasher Pro to the Windows Store. MailWasher Pro unlocks the ability to use multiple email accounts in MailWasher. Because there is no automated way to incorporate in-app purchases when using the Desktop App Converter, we will need to take a different approach. For MailWasher Pro, we will need to bring the primary application development environment up to the latest version of Visual Studio and incorporate the use of the Desktop Bridge APIs - especially the Windows.Services.Store API for in-app purchases. There is sample code for adding in-app purchases in the Store API Sample within the Desktop Bridge to UWP Samples available on GitHub.
The journey does not stop here. Next up will be bringing MailWasher Pro to the store by incorporating the Windows Store APIs to manage in-app purchases. Beyond this we will look to the user cases for implementing Push Notifications, Live Tiles, and other functionality introduced in Windows 10. To explore the range of other APIs that are available to desktop bridge apps, see the following documentation: UWP APIs that are available to a Desktop Bridge packaged app.
Bringing the free version of MailWasher to the Windows Store was simple, fast, and completed without any code changes. This will make the MailWasher app discoverable and easily installable by 400 million+ customers running Windows 10 desktop around the world. Once we get MailWasher Pro into the Windows Store this should drive new revenue from markets that have been previously untapped.