Click here to Skip to main content
13,868,826 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

15.7K views
19 bookmarked
Posted 14 Jun 2016
Licenced CPOL

Convert Desktop Applications to Universal Windows Platform Apps -Project Centennial

, 14 Jun 2016
Rate this:
Please Sign up or sign in to vote.
Convert Desktop Applications to Universal Windows Platform Apps -Project Centennial

Introduction

Are you looking for a way to convert your existing Win32/WPF/Classic desktop applications to Universal Windows platform? Do not want to change any code? then go through this article, it will help you to convert your desktop apps to UWA (Universal Windows Apps) using Project Centennial

 

Need for Universal Windows platform Apps

                                                                        

 Are you facing below problems in Classic Windows desktop/WPF/Win32 apps?

  1. Error in installations (Incomplete installations, access issue, registry failure, framework problem)
  2. DLL hell issue (occur when same DLL is referring by multiple program but DLL is replaced due to version information is not persist by application)
  3. Uninstallation issue (Does not Uninstall completely, Application un-install but registry key was not removed)
  4. Application utilizing high System resources (Processor, RAM leads to hang up machine)
  5. One click installation not possible
  6. Performance issue
  7. Want to run application on Windows 10

To over come such issues, we should move to UWA (Universal windows Apps), There are multiple links exist on internet that explain, how to build Universal windows Apps but none will explain, How to convert our existing Classic Windows/WPF/Win32 Desktop Apps to UWA ? The answer is Project Centennial

What is Project Centennial ?

Simply, it is nothing but useful desktop application convertor that will help developers to convert their desktop application/Win32/WPF classic application to UWA, Just you need to give your installer file (MSI) or .EXE file as an input and it will work on file and give you a .AppX or .AppXbundle file, that can be easily install on windows 10 and further more you can deploy that file to windows store. 

Project Centennial also gives a package identity to converted AppX/AppXbundle file (Package identity will be useful when deploy it to windows store)

According to Microsoft

"Desktop App Converter is a pre-release tool that enables developers to bring their existing desktop apps written for .NET 4.6.1 or Win32 to the Universal Windows Platform. The developers can run their desktop installers through the converter in an unattended (silent) mode and obtain an AppX package that can be installed via the Add-AppXPackage PowerShell cmdlet on their development machine." 

List of Features

  1. Apps created by Project Centennial can get full Windows 10 leverages, Apps get smoothly installed using sideloading features Read here: Sideloading features of Windows 10 
  2. As your APP has package identity, you can easily call UWA (Universal Windows Apps) API in your existing code.
  3. User will experience window store like installation process as One click installation is possible.
  4. Install and uninstall gets Intelligible as all required files and registry entries stored on single point, (In windows desktop Applications, where some temp files and few registry entries gets left behind even after you un-install application)
  5. Overall System speed will not affect as registry entries will not span across all registry and installation files will be at single location (In Classic/Win32 Desktop application registry entries and installation files span across system and will load on system boot each time, so it will cost to system performance), as well as Window 10 will handle UWA differently than classic application so it ends up in resource and performance improvement
  6. After conversion your output package will gifted with Windows Apps features like Great user interface with  XAML , Live tiles and updates, services, background work and more.
  7. Windows store licensing and update amenity will be 'bydefault' applicable to your converted app
  8. Once it converted to AppX, we can run it on different windows platform like Desktop, Mobile, XboX, Surface, Holographic Devices, IOT etc

Pre-requisite

It needs at least Windows 10 to be on system to run Project Centennial, Hardware could be a x64 processor with good amount of Memory

How to use Project Centennial

First you need to download DesktopAppConverter.zip and then base image .wim file, both files can be downloaded from  Here [Download Link]

Unzip 'DesktopAppConverter.zip' file on local system

Use power shell window with admin rights to install Convertor on your machine, see below command to install Desktop convertor

PS C:\> .\DesktopAppConverter.ps1 -Setup -BaseImage .\BaseImage-1XXXX.wim -Verbose

Successful run of above command will lead to reboot.

After reboot, you are almost ready to use App convertor, PowerShell or command prompt can be use to run this tool, you need to provide different parameters to run it like Installer, Destination, PackageName, Publisher and Version to AppX file (which is the output of the convertor program)

Syntax will be as below

DesktopAppConverter.ps1
-Installer <String> [-InstallerArguments <String>] [-InstallerValidExitCodes <Int32>]
-Destination <String>
-PackageName <String>
-Publisher <String>
-Version <Version>
Reference

Fore more details and Usage you can switch to below link

Windows Dev Center: Project Centennial

Points of Interest

It is really amazing Convertor that will convert your Classic Windows/Win32 EXE to directly AppX without any code change, additionally we will get all Windows Store Apps like benefits in bonus. Now Lets see, in future how Develoepers will treat this opprtunity and convert their EXE/MSI to AppX.

Hope it will help you all to Convert your existing Win32/Windows Classic/WPF applications to New world AppX

Happy Conversion to you !
-Prasad

 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

koolprasadd
Software Developer (Senior)
India India
Hi there, I am Prasad. Author, Blogger, contributor and passionate about Microsoft .NET technologies. I like to write an articles/blogs on different .NET aspects and like to help Developers, to resolve their issues and boost them on Microsoft Technologies.


Certifications: Microsoft Certified professional (MCP), Microsoft Certified technology specialist (MCTS), Agile-Scrum Master.


Awards: Microsoft Re-connect MVP (GSC Member), Most valuable member at dotnetspider, Most popular curator, Most active curator, featured curator at Microsoft Curah, Editor at dotnetspider.


Microsoft MVP 2014 [ASP.NET/IIS]
Click here for more .NET Tips
-After all Knowledge is an endless entity

You may also be interested in...

Pro

Comments and Discussions

 
Questiondownload DesktopAppConverter.zip can't find it anywhere Pin
dcarl6614-Jan-18 8:34
memberdcarl6614-Jan-18 8:34 
AnswerRe: download DesktopAppConverter.zip can't find it anywhere Pin
koolprasadd4-Jan-18 18:42
professionalkoolprasadd4-Jan-18 18:42 
GeneralRe: download DesktopAppConverter.zip can't find it anywhere Pin
dcarl6615-Apr-18 10:16
memberdcarl6615-Apr-18 10:16 
QuestionWindows Forms? Pin
Oshtri Deka28-Jun-16 22:38
professionalOshtri Deka28-Jun-16 22:38 
AnswerRe: Windows Forms? Pin
koolprasadd28-Jun-16 22:40
professionalkoolprasadd28-Jun-16 22:40 
GeneralRe: Windows Forms? Pin
Oshtri Deka29-Jun-16 2:45
professionalOshtri Deka29-Jun-16 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06 | 2.8.190214.1 | Last Updated 14 Jun 2016
Article Copyright 2016 by koolprasadd
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid