Microsoft Desktop App Converter Guide

Martin Brinkmann
Aug 22, 2016
Updated • Aug 22, 2016
Development
|
6

Microsoft showcased its Desktop App Converter program some time ago to highlight how easy it is to convert some desktop programs to Universal Apps format.

The main idea behind the tool was to make it easier for developers to turn legacy desktop programs for Windows into Store apps.

Programs turned into apps this way would benefit from Store-exclusive features such as security sandboxing. Developers may furthermore benefit from extra exposure on Windows Store.

The Desktop App Converter that Microsoft released some time ago is still only available as a preview. The program is being worked on, and updates are released regularly that introduce new features or fix issues.

Microsoft Desktop App Converter

microsoft desktop app converter

You may only install and run the Desktop App Converter if your computer meets the following requirements:

  1. Windows 10 Anniversary Update installed on Enterprise or Pro edition.
  2. 64-bit processor.
  3. Supports hardware-assisted virtualization and Second Level Address Translation (SLAT). Most modern cpus should support those.
  4. You may only convert installer files and not portable programs.
  5. Converted apps may only be deployed to 64-bit Windows devices.

Desktop App Converter Setup

setup

First thing you need to do is download a couple of files to your system as you require them to install the Desktop App Converter on the computer. Please note that one of the files is a Windows base image that has a size of 3.3 Gigabyte.

Visit the official Microsoft download page for the Desktop App Converter. Click on the download button, and select DesktopAppConverter.zip and one of the base images. The Base Images are based on different versions of Windows. Version 14939 is the Anniversary Update version. You need to select the base image that matches your Windows version.

There is a doc file as well that you may want to download as it offers information on the tool.

Also, download the Windows Software Development Kit for Windows 10 from here. I have downloaded the Windows Standalone SDK for Windows 10, but there are others.

Extract the DesktopAppConverter.zip file once it is downloaded. I suggest you move the downloaded BaseImage file to the same directory as it makes it a bit easier during setup.

To start the setup, do the following:

  1. Tap on the Windows-key, type cmd.exe, hold down Shift and Ctrl, and hit enter. This opens an elevated command prompt.
  2. Type powershell.
  3. I suggest you use the cd command to go to the DesktopAppConverter directory, e.g. cd c:\DesktopAppConverter.
  4. Run the command: Set-ExecutionPolicy bypass
  5. Run the command: DesktopAppConverter.ps1 -Setup -BaseImage BaseImage-14939.wim -Verbose

Setup runs automatically from that point onward. Please note that you need to restart the PC before you can start converting programs into apps.

Windows will update during reboot, and open a PowerShell command prompt automatically when the desktop loads. Setup is then completed, and you may start using the program to convert programs to apps.

Using the Desktop App Converter

The app converter may converter legacy Win32 programs or Microsoft .NET Framework 4.61 programs to the UWP format.

Run the command get-help .\DesktopAppConverter.ps1 -detailed to get detailed information about the parameters and options that the converter supports.

To convert a program, run the following command:

.\DesktopAppConverter.ps1 -Installer C:\Installer\MyApp.exe -InstallerArguments "/S" -Destination C:\Output\MyApp -PackageName "MyApp" -Publisher "CN=publishername" -Version 0.0.0.1 -MakeAppx -Verbose

You need to adjust the command, for instance to match the program path and name of the program you want converted, the name, publisher and version. Please note that version seems to reject too short or too long versions. The compiler will throw an error if you use 0.8 or 1 in the command. Use four digits, that works, so that version 0.8 shows as 0.8.0.0 in the command.

You may get other error messages, but the messages usually point you in the right direction so that you know what went wrong.

If the command is accepted, the following happens:

  1. Checks are performed to make sure the environment meets all requirements.
  2. Checks are performed on the selected installer.
  3. The output directory is created if it does not exist.
  4. The Conversion environment is set up.
  5. The installer is run inside an isolated environment.

The result

The Desktop App Converter tool creates an .appx package which is the UWP version of the program. You can run the following command on an elevated PowerShell command prompt window to test the new app before signing it:

Add-AppxPackage -Path PATHTOAppxManifest.xml -Register

Replace PATHTOAppxManifest.xml with the path to the manifest file. You find it in the same directory as the .appx package.

You may then run the app like any other using the Start Menu. Check out this guide for signing information, and issues.

Summary
Microsoft Desktop App Converter Guide
Article Name
Microsoft Desktop App Converter Guide
Description
The guide walks you through the steps of using the Desktop App Converter to turn Win32 or .Net programs into UWP applications.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Previous Post: «
Next Post: «

Comments

  1. v1adimir said on May 6, 2018 at 12:58 am
    Reply

    Ofc., “We’re sorry, this download is no longer available”, as it is now part of Microsoft Store and it has been re-labeled as “Desktop App Converter (Desktop Bridge)” in order to NOT let us have this wonderful feature – but, instead, be forced to use the Store… Which I will *never* even install on my system. Like, ever. :)

    *using Windows LTSB for this purpose

  2. marc klink said on August 24, 2016 at 1:54 am
    Reply

    But why would a sane person do this?

    1. Jim said on August 24, 2016 at 1:31 pm
      Reply

      1. Make it easier to uninstall programs.
      2. 1-click installations
      3. If they wish to, they can publish it to the Windows Store.

      It works similarly with Linux’s packaged apps (.deb for example). You just need a valid signature to ship it outside from Windows Store.

  3. Multinamed Commenter said on August 22, 2016 at 8:38 pm
    Reply

    Hmmm… Turning a program into a Store App with a 3,3 Gb download seems like a Dr. Frankenstein effort.

    Meanwhile: “Privacy campaigners warn that people will soon abandon the once trusted company” – Source:
    http://www.theinquirer.net/inquirer/news/2468540/eff-slams-microsofts-blatant-disregard-for-user-privacy-with-windows-10

  4. Concerned Reader said on August 22, 2016 at 6:52 pm
    Reply

    Wait… you did it for free?

    1. Martin Brinkmann said on August 22, 2016 at 6:54 pm
      Reply

      Yes, why do you ask?

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.