How to Convert Desktop Apps to Universal Windows Platform Apps with Desktop Bridge

Total Page:16

File Type:pdf, Size:1020Kb

How to Convert Desktop Apps to Universal Windows Platform Apps with Desktop Bridge How to convert desktop apps to Universal Windows Platform apps with Desktop Bridge If you're looking to bring your traditional app to the Universal Windows Platform, this guide walks you through the steps to use the DesktopAppConverter to convert your app. On Windows 10, Microsoft is not only adding new features and making the operating system more secure, but it's also investing on making the Windows Store the single place for users to acquire apps. The caveat with the Windows Store is that it doesn't include support for distribution of traditional desktop applications -- you're only able to download Universal Windows Platform (UWP) apps. However, Microsoft is making some changes, and now thanks to Desktop Bridge, we're slowly starting to see desktop apps and tools available in the Store. What's Desktop Bridge? How does Desktop Bridge works? Things you need before converting an app How to prepare your computer to convert apps How to convert desktop apps into Windows Store apps How to install a converted app on Windows 10 What's Desktop Bridge? It's all part of an initiative called Project Centennial, which now you know as Desktop Bridge. The new approach is essentially a "bridge" that let developers take traditional desktop applications and convert them into Universal Windows Platform (modern) apps. The idea behind Desktop Bridge is that great apps take time and effort, and if they're already working, Microsoft doesn't want you to abandon that code. With Desktop Bridge, you can take your existing desktop application (Win32, WPF, and Windows Forms), make a little modification (if necessary), and bring that great code to the new platform, which can also take advantage of many new features. The conversion is done using the DesktopAppConverter, which is a tool to automate the process (or at least most of it) to bring your desktop application built using .NET 4.6.1 or Win32 technologies to the new Universal Windows Platform (UWP). In addition, you can also publish the app in the Windows Store to reach millions of new customers, which is one of the reasons Microsoft wants you to convert your app. How does Desktop Bridge works? When converting an app, the tool runs the app installer inside of an isolated environment that uses a clean Windows 10 image. You can think of it as a lightweight virtual machine, which is used to capture file system I/O and registry keys generated by the desktop installer. Once the app is converted, you'll end up with an APPX package that you can quickly deploy to any computer running the 64-bit (x64) version of Windows 10 using a PowerShell cmdlet. While Desktop Bridge is meant for developers, anyone (who is up to the challenge) can use the new tools and convert virtually any desktop application into a Windows Store app. This is because you don't need the source code — you only need the installer (the .exe file). In this Windows 10 guide, we'll walk you through the steps to convert a traditional desktop application into a Universal Windows Platform app. Things you need before converting an app You'll need a computer running the Windows 10 Anniversary Update (build 1607-14393 or later). Your computer must have a 64-bit processor, hardware-assisted virtualization, and Second Level Address Translation (SLAT). It's important to note that you can only run the DesktopAppConverter on Windows 10 Pro or Enterprise. You can download a free version on the Microsoft site as trail. You can only convert applications with installers, and not portable apps. And you can only deploy converted apps to 64-bit machines. Finally, you'll also need around 20GB of hard drive space, as the base image, developer tools, and the creation of the isolated environment will take several gigabytes. If you don't have enough storage, the process will fail, and it could take a lot of time to start over. How to prepare your computer to convert apps Once you have the required hardware and the latest version of Windows 10 running on your computer, you'll need to install and configure a few components. Important: As usual, here is a friendly reminder to create a full backup of your system, which you can use in case something goes wrong and you need to roll back. This is a task also recommended for anyone who is not a developer but wants to try Desktop Bridge. How to add Containers to Windows 10 While running the setup should install the Containers feature on Windows 10 automatically, there is a chance that this may not happen, as such you can enable this feature in advanced. To add Containers, do the following: 1. Open Control Panel. 2. Click on Programs. 3. Click on Turn Windows Features on or off. 4. Check the Containers option. 5. Click OK. 6. Click Restart to complete the task. How to install the Windows 10 SDK You'll also need to have installed the Windows Software Development Kit (SDK) on your Windows 10 device, which you can easily do with the following steps: 1. Download the Windows 10 SDK installer from the Microsoft support website. 2. Double-click the installer. 3. Leave the default location and click Next. 4. Decide whether to participate in the Microsoft data collection program and click Next. 5. Click Accept to get through the legal stuff. 6. Make sure all the components are checked and click Install. 7. Click Close to complete the task. Roughly 2.3GB of files will be downloaded at this point, so it might take a while depending on the speed of your internet connection. How to install and setup the converter and base image After checking the minimum system requirements and installing the necessary components, it's now time to install and configure the DesktopAppConverter and the base image. Note: The commands used in this guide to run Desktop Bridge should work on Command Prompt as well as on PowerShell. However, the tool has been designed to work on PowerShell, so to avoid problems you'll be better off using PowerShell. 1. Download the Desktop App Converter from the Windows Store. 2. On the Store, click the Install button to get the app. 3. Once the DesktopAppConverter installs, do not launch the app, just close the Windows Store and continue with the steps below. 4. Visit the Microsoft Download Center to grab the latest Desktop App Converter base image. 5. Click the red Download button. 6. Select the .wim file with build number that matches the version of Windows 10 you have installed on your PC. For example, BaseImage-14393.wim, if you're running Windows 10 build 14393. If you don't know your current Windows 10 version number, use the Windows key + R keyboard shortcut, type the winver command on Run, and click OK. 7. Click Next on the support page to begin the download. 8. Open the Start menu and do a search for PowerShell. 9. Right-click the app and select Run as administrator. 10. Type the following command and press Enter: Set-ExecutionPolicy bypass 11. Enter the letter A and press Enter to continue. 12. Now it's the time to set up Desktop Bridge with the base image, and to do that type the following command: DesktopAppConverter.exe -Setup -BaseImage C:\PATH-TO-IMAGE\BaseImage- 1XXXX.wim -Verbose Important: You must change "XXXX" on the name of the base image to the number of the image you downloaded and remember to specify the path to the location of the image. For example: DesktopAppConverter.exe -Setup -BaseImage C:\Users\admin\Downloads\BaseImage-14393.wim -Verbose. The below image shows an example of the complete command. 13. Restart your computer if prompted. Then PowerShell will open automatically to complete the setup after the reboot by expanding the image to prep the isolated environment. Once the setup completes, you'll end up in the root directory of the DesktopAppConverter. In my experience, it works better if you continue with next set of instructions while in the root directory of the converter. At least for the purpose of this guide, leave PowerShell open and continue with the instructions below. How to convert desktop apps to Windows Store apps For this manual, I chose to convert the popular Notepad++ desktop app. Quick Tip: It's important to download the app installer in its own folder, as the converter will copy all the files from that location to the isolated environment. To convert a desktop app into a modern app, do the following: 1. If you don't have PowerShell ISE already open, bring up the Start menu and do a search for PowerShell, and run as Admin!! 2. Right-click the app and select Run as administrator. 3. Type the following command and press Enter to convert the app: # Path App-Conversion-Output has to exsist. cd c:\ $path = "C:\App-Conversion-Output" If(!(test-path $path)) { New-Item -ItemType Directory -Force -Path $path } DesktopAppConverter.exe -installer C:\APP-INSTALLER-PATH\APP-NAME.exe -installerarguments "/S" - destination c:\App-Conversion-Output -packagename "notepadplus" -publisher "CN=PUBLISHER-NAME" - Version 0.7.5.8 -makeappx -Sign -verbose -Verify With this command we're invoking the DesktopAppConverter and passing several arguments. The -Installer switch is used to note the location of the installer. The InstallerArgument "/S" allows to run the installer in silent mode inside the isolated environment, which let the converter record the install process without user interaction. The -Destination switch notes the location the converter will output the final project files.
Recommended publications
  • APK Files) on Your Android Phone
    How to Install Applications (APK Files) on Your Android Phone Overview An Android application is stored in an APK file (i.e., a file named by {Application Name}.apk). You must install the APK on your Android phone in order to run it. There are three different ways to install APK files on your phone: • The easiest way is simply to download the application from the Android Market or from a web site directly to the SD card mounted in your phone, then click on the APK file to install it. • The second way is to download the APK file to your computer, mount your phone’s SD card in the computer (or connect the phone with the SD inserted in it to the computer via USB cable) and copy the APK file to the SD card, then insert the SD card in the phone and install the APK file from the SD card using an Application Installer or File Manager that you download from the Android Market. This method is useful for installing non-market applications (i.e., applications not available on the Android Market). • The third way is to install the Android Software Development Kit (SDK ) on your computer, then connect the phone via USB cable to the computer and use the Android Debug Bridge (contained in the SDK) to install the APK on the phone. This method is more suitable for developers and technical users who need to install non-market applications. Note: Because of the diversity in Android devices, some methods may not be supported on your phone.
    [Show full text]
  • Windows 10 to Stop Asking You for Feedback 2
    Table of Contents SYSTEM o Display o Advance Display Settings o Color calibration o ClearType text o Advanced sizing of text and other items o Display adapter properterties o Notification & actions o Select which icons appear on the taskbar o Turn system icons on or off o Apps & Features o Manage optional features o See optional feature history o Programs And Features o Multitasking o Tablet Mode o Battery Saver o Battery Use o Change Background App Settings o Change Battery Saver Settings o Battery Saver Settings o Power & Sleep o Additional power settings o Storage o Offline Maps o Choose default apps o Choose Defaults Apps By File Type o Choose Defaults Apps By Protocol o Set Defaults By App o About o Change product key or upgrade your edition of Windows o Read the Privacy Statement for Windows and Microsoft services o Read the Microsoft Services Agreement that applies to our services o Read the Microsoft Software License Terms o Additional Administrative Tools o Bitlocker settings o DeviceManager 1 | Page o System info DEVICES o Printers & Scanners o Devices & Printers o DeviceManager o Connected devices o Mouse And Touchpad o Additional Mouse Options o Typing o Pen o AutoPlay o Default app settings o USB Network & Internet o WiFi o WirelessNetworkConnection o Advanced options o Manage Wi-Fi Settings o Your email and accounts o Sign in with a Microsoft account instead o Add a work or school account o Change adapter options o Change Advanced Sharing Options o Network and Sharing Center o HomeGroup o Windows Firewall o Airplane mode
    [Show full text]
  • Quick Guide Page | 1
    Quick Guide Page | 1 Contents Welcome to Windows 10 ................................................................................................................................................................................................... 3 Key innovations ...................................................................................................................................................................................................................... 3 Cortana ................................................................................................................................................................................................................................. 3 Microsoft Edge .................................................................................................................................................................................................................. 4 Gaming & Xbox ................................................................................................................................................................................................................ 5 Built-in apps ....................................................................................................................................................................................................................... 7 Enterprise-grade secure and fast ...................................................................................................................................................................................
    [Show full text]
  • Sprout App Installer Guide
    Sprout App Installer Guide DATE: July 17, 2015 Sprout Developer Guide Table of Contents Introduction ................................................................................................................................................................. 3 Steps to Upload an App to Sprout Marketplace ............................................................................................. 3 Signing Digital Binaries .............................................................................................................................................. 6 Steps to Create an MSI (Microsoft Installer Package) ............................................................................................ 6 MSI Installation Using the Visual Studio Installer ............................................................................................... 6 Steps to Create an MSI Installer in Visual Studio 2013 ................................................................................. 7 Set up the Properties of Your Application Folder ........................................................................................ 10 Add the Key Value to the Registry ................................................................................................................. 11 Remove GUI Elements ......................................................................................................................................... 14 MSI Installation Using WiX Toolset ....................................................................................................................
    [Show full text]
  • Shortcut Keys for Windows 10
    IT Showcase Productivity Guide Shortcut Keys for Windows 10 This guide lists shortcut keys that you can use from the desktop in Windows 10. Shortcut Description Open and close the Start menu. Windows key Switch to the desktop and launch the nth application in the taskbar. For example, +1 launches +1, +2, etc. whichever application is first in the list, numbered from left to right. Open the action center. +A Highlight the notification area. +B Launch Cortana into listening mode.1 Users can begin to speak to Cortana immediately. +C Switch between Show Desktop (hides/shows any applications and other windows) and the +D previous state. Switch to the desktop and launch File Explorer with the Quick Access tab displayed. +E Open the Share charm. +H Open the Settings app. +I Open the Connect pane to connect to wireless displays and audio devices. +K Lock the device and go to the Lock screen. +L Switch to the desktop and minimize all open windows. +M Lock device orientation. +O Open the Project pane to search and connect to external displays and projectors. +P Display the Run dialog box. +R Launch Cortana.2 Users can begin to type a query immediately. +S Cycle through the apps on the taskbar. +T Launch the Ease of Access Center. +U Cycle through notifications. +V Open the advanced menu in the lower-left corner of the screen. +X Open the app-specific command bar. +Z Launch Narrator. +ENTER Switch input language and keyboard layout. +SPACEBAR Open Task view. +TAB 1 If Cortana is unavailable or disabled, this shortcut has no function.
    [Show full text]
  • Windows 10 Open the Start Menu This Pamphlet Online Windows 10 - Press Start Button Or the Icon Resize App Tile on the Start Menu
    Start Menu Windows 10 Open the Start Menu This Pamphlet Online Windows 10 - Press Start button or the icon https://its.niagaracollege.ca/ Resize App Tile on the Start Menu - Right click the Tile, Click size, Choose preference Contents Rearrange Tiles How to Guides on the - Click and drag tile to preferred spot following topics Start Menu Remove a Tile from the Start Menu - Right click the tile, select Blackboard Apps Add a Tile to the Start Menu Desktop - Right click the app, Click Windows 10 Stop Updating on Apps Live Tile Settings and personalization - Right click the live Tile, Click More, Click Office 365 Turn live tile off File Explorer OneDrive Search for Files or Apps Action Center Skype for Business - Click Cortana and type Cortana the File or Applications Name https://its.niagaracollege.ca/ Rename Live Tile Groups Keyboard Shortcuts - Click the Name you want to change. Adjust the text Lock your Computer - Click , click Account, Click Lock Sign Out of Windows Install OneDrive Mobile and - Click , click Account, Desktop App Click Sign Out Switch Users Visit https://onedrive.live.com/ - Click , click Account, click the download tab on your Click Switch User Change Account Settings mobile device or desktop - Click , click Account, Click Change Account Settings Niagara College Help Desk Niagara College Help Desk Monday-Thursday 8:30am to 10:00pm Monday-Thursday 8:30am to 10:00pm Friday 8:30am to 4:30pm Friday 8:30am to 4:30pm Phone: 905-735-2211 ext. 7642 Phone: 905-735-2211 ext. 7642 https://its.niagaracollege.ca/ https://its.niagaracollege.ca/
    [Show full text]
  • Students, Faculty and Staff Guide for Windows 10
    Students, Faculty and Staff Guide for Windows 10 Prepared by Information Technology Division Lehman College, CUNY Revised - January 31, 2020 This document was originally prepared by Microsoft. It was modified and adapted for use at Lehman College. Information Technology Division Lehman College, CUNY Guide contents The purpose of this guide is to introduce you to the key features in Windows 10, and give you tips and tricks on how to get started using those features. You’ll find information on the following topics: A few feature highlights Cortana Using Microsoft Office Personalization • Start menu • What can Cortana do? 365 with Windows 10 and Settings • Access your email • A new look • How to search • Cortana’s Notebook • Use Office 365 on • Personalize your lock • Using tiles Microsoft Edge mobile devices screen • Task view • Hub • Use Office 365 with • Get started with themes • Virtual desktops OneDrive for Business to • Web Notes • Change your desktop work with files anywhere • Windows behavior in • Reading List background and color modern applications • Sign in to Office 365 Apps and the • Charms functionality in Setting things up • Create a file action center modern applications • Set up your email and • Share a file calendar • Snap enhancements • Synchronize a file • Change your • Quick access tools account picture • Protect your PC Information Technology Division Lehman College, CUNY A few feature highlights in Windows 10 Windows 10 is designed to please both touch and mouse users. It’s also designed to be intuitive for users of both Windows 7 and Windows 8.1, incorporating the “best of both worlds” to enhance your experience and help you be more productive.
    [Show full text]
  • Ezeep for Windows Virtual Desktop (Preview)
    Ezeep for Windows Virtual Desktop (Preview) Overview ................................................................................................................................................................................... 1 User Management.................................................................................................................................................................... 2 Printing ..................................................................................................................................................................................... 2 Installation & Configuration ..................................................................................................................................................... 2 Downloading the ezeep Print App and installing it on your Windows Virtual Desktop ............................................. 2 Downloading the ezeep Connector and installing it on the PC(s) from where your users will start a WVD session......................................................................................................... 3 Known Issues ........................................................................................................................................................................... 4 Help & Support ......................................................................................................................................................................... 4 Overview Ezeep for Windows Virtual Desktop is designed
    [Show full text]
  • Windows 10 Quick Reference Card
    Microsoft® Windows 10 Quick Reference Card Windows Desktop and Start Menu Keyboard Shortcuts General App List Tile Group App Tile Start menu ........................... 0 Copy a file or folder .............. Ctrl + C Cut a file or folder ................. Ctrl + X Paste a file or folder .............. Ctrl + V Action Center ....................... + A Task view ............................. + Tab Close an app ........................ Alt + F4 Lock computer ..................... + L Print ..................................... Ctrl + P Start Menu File Explorer ......................... + E Account Run dialog box ..................... + R Document Ease of Access Center. ........ + U Picturess Task Manager ...................... Ctrl + Shift Settings Esc Power Capture screenshot .............. + PrtScn Show Open Search ........................ + S Desktop Open Narrator ...................... + Enter Start Search Task Pinned Taskbar System Button Field View Apps Icons Settings Shortcuts Windows settings ................. + I Start Menu Apps Connect pane ...................... + K Open the Start Menu: Click the Start button Launch an App: Click the app’s tile in the Start Sharing pane ........................ + H on the taskbar, or, press the key. menu. Or, scroll through the list of apps at the left Display options for of the Start Menu and select the app you want to second screen ..................... + P Resize an App Tile in the Start Menu: Right- open. click a tile, select Resize, and select a size. Quick Link menu .................. + X Search for an App: Click within the Search field Rearrange Tiles: Click and drag a tile to a new and type a keyword for the app you want to Desktop Shortcuts location in a group. Or, drag a tile between open. groups to start a new group. Show/hide desktop .............. + D Jump to an Open App: Click the Task View Maximize window ................
    [Show full text]
  • Vermont Nurse Connection
    Vermont Nurse Connection Quarterly Circulation 20,000 to all Registered Nurses, LPNs, LNAs, and Student Nurses in Vermont Volume 11 • Number 2 Vermont State Nurses’ Association Offi cial Publication May, June, July 2008 Inside... President’s Letter June M. Benoit, MSN, FNP crucial to VSNA staying on top of issues affecting our nursing profession and patient safety/ quality care. She By the time you are provides regular reports to the VSNA Executive Board reading this edition of the and through the VSNA list-serve members are notified of VNC, hopefully the cold impending bills needing nurses’ input to elected officials. weather and snow storms Recently Margaret asked members to contact Committee of the winter will just be Chairs and legislators about H. 11, An Act Relating to a memory and navigating Commissioner of Health and S. 281, End of Life Care through mud season will be and Pain Management. I hope many of you participated. National Nurses Week our latest challenge! Our nursing profession can only be as politically strong as our members. You can view the VSNA Legislative Page 3 “I think one’s feelings waste Platform on our website: www.vsna-inc.org by choosing themselves in words, they the “Mission/Vision” link on the home page. You can ought to be all distilled into also find information about general legislation, track bills, actions and into actions that check voting records, and find contact information for which bring results.” Benoit your elected officials by choosing the “Political Action” Florence Nightingale link on the home page. This page also gives you a link to the VSNA Lobbyist Guide.
    [Show full text]
  • Getting to Know Windows 10 for Employees
    Getting to know Windows 10 for employees Microsoft IT Showcase microsoft.com/itshowcase Familiar and better than ever Windows 10 is the best combination of the Windows you Windows 10 was designed to be the safest Windows already know, plus lots of great improvements you’ll love. ever. The Creators Update adds comprehensive security It helps you do what matters, faster. capabilities and privacy tools on top of what was already available in Windows 10. Our new Creators Update is designed to spark and The new Surface devices for Windows 10 are a balance unleash creativity, bringing 3D and mixed reality to of craftsmanship, performance, and versatility, designed everyone. Combined with Office 365, Cortana, and with you at the center. Microsoft Edge, you’ll have new ways of working that increase and enhance your productivity. And the IT management tools, services, and advances like AutoPilot and Microsoft Store for Business will make the work of IT organizations easier and more systematic. Microsoft IT Showcase microsoft.com/itshowcase Getting to know Windows 10 Creators Update Boost productivity • Start menu • Task view • Edge • Quick access menu • Virtual desktop • Office365 • Using tiles • Personalization • Windows Ink • Snap enhancements • Action center and notifications • Paint 3D • Tablet mode • Cortana Comprehensive security Devices and Windows 10 S Modern IT • Windows Hello • Meet the Surface family • AutoPilot • Windows Defender features • Windows 10 S • Microsoft Store for Business • Microsoft Edge • Security Guards • Windows Information Protection Microsoft IT Showcase microsoft.com/itshowcase The Start menu: More options, easy access Windows 10 brings back the familiar Windows desktop and Start menu from Windows 7.
    [Show full text]
  • Quick Start Guide to Windows 10 Making Your Move to Windows 10 Quick and Simple Table of Contents
    Quick Start Guide to Windows 10 Making your move to Windows 10 quick and simple Table of Contents Understanding your desktop Security, privacy and scam protection Take a tour of the Windows 10 desktop. Learn how to be more Your security and privacy mean a lot to us. Windows 10 features a productive using the Windows Start menu, Taskbar and Action full security dashboard, with personal privacy settings and our most center. advanced safety measures yet. Setup and personalization Accessibility Make it yours! Windows 10 is all about you, from personalized Microsoft’s accessibility features make tasks easier for users with a backgrounds to custom language choices. Create a Microsoft disability. Enlarge screen text to make it easier to read and change account to unlock the full Microsoft universe of features. narration and dictation settings. Apps and programs Windows updates and upgrades Now that you’ve made yourself at home, it’s time to take Windows 10 provides regular updates to keep your device Windows 10 to the next level: adding apps. Whether you want secure and bring new features to you. Windows 7 users can find to tackle more tasks around the house or at work, or have fun resources to transition to Windows 10. playing games, it’s all here. Tips and tricks Additional resources Do more with Windows 10! Our tips and tricks will get you off and We’re here to help you make the most of Windows 10 from Day running in no time. 1 to Day 101—and beyond! Get to know these resources.
    [Show full text]