Windows 10 Desktop App Installer

broken image


May 02, 2016 The Desktop App Installer lets developersinstall.appx or.appxbundle files on their Windows 10 PC, without having to use Powershell or writing any commands into the CMD. Similar to Windows 10 Mobile, users will be able to double click on a.appx or.appxbundle file from the File Explorer and install it using the Desktop App Installer on their PC. Autodesk desktop app provides lightweight, easy access to products, updates, and security fixes by simplifying the install and update experience on your Windows system.

-->

Note

The Desktop App Converter tool is deprecated. We recommend that you use the MSIX Packaging Tool instead.

The Desktop App Converter (DAC) creates packages for desktop applications to integrate with the latest Windows features, including distribution and servicing via the Microsoft Store. This includes Win32 apps and apps that you've created by using .NET 4.6.1.

While the term 'Converter' appears in the name of this tool, it doesn't actually convert your app. Your application remains unchanged. However, this tool generates a Windows app package with a package identity and the ability to call a vast range of WinRT APIs.

You can install that package by using the Add-AppxPackage PowerShell cmdlet on your development machine.

The converter runs the desktop installer in an isolated Windows environment by using a clean base image provided as part of the converter download. It captures any registry and file system I/O made by the desktop installer and packages it as part of the output.

Important

Desktop App Converter is supported on Windows 10, version 1607, and later. It can only be used in projects that target Windows 10 Anniversary Update (10.0; Build 14393) or a later release in Visual Studio.

The DAC does more than just generate a package for you

Here's a few extra things it can do for you.

Windows 10 Creators Update

✔️ Automatically register your preview handlers, thumbnail handlers, property handlers, firewall rules, URL flags.

✔️ Automatically register file type mappings that enable users to group files by using the Kind column in File Explorer.

✔️ Register your public COM servers.

Windows 10 Anniversary Update or later

✔️ Automatically sign your package so that you can test your app.

✔️ Validate your application against packaged app and Microsoft Store requirements.

To find a complete list of options, see the Parameters section of this guide.

If you're ready to create your package, let's start.

First, prepare your application

Review this guide before you begin creating a package for your application: Prepare to package a desktop application.

Make sure that your system can run the converter

Make sure that your system meets the following requirements:

  • Windows 10 Anniversary Update (10.0.14393.0 and later) Pro or Enterprise edition.
  • 64 bit (x64) processor
  • Hardware-assisted virtualization
  • Second Level Address Translation (SLAT)
  • Windows Software Development Kit (SDK) for Windows 10.

Start the Desktop App Converter

  1. Download and install the Desktop App Converter.

  2. Run the Desktop App Converter as an administrator.

    A console window appears. You'll use that console window to run commands.

Set a few things up (apps with installers only)

You can skip ahead to the next section if your application doesn't have an installer.

  1. Identify the version number of your operating system.

    To do that, type winver in the Run dialog box, and then choose the OK button.

    You'll find the version of your Windows build in the About Windows dialog box.

  2. Download the appropriate Desktop app Converter base image.

    Make sure that the version number that appears in the name of the file matches the version number of your Windows build.

    Important

    If you're using build number 15063, and the minor version of that build is equal to or greater than .483 (For example: 15063.540), make sure to download the BaseImage-15063-UPDATE.wim file. If the minor version of that build is less than .483, download the BaseImage-15063.wim file. If you've already setup an incompatible version of this base file, you can fix it. This blog post explains how to do that.

  3. Place the downloaded file anywhere on your computer where you'll be able to find it later.

  4. In the console window that appeared when you started the Desktop App Converter, run this command: Set-ExecutionPolicy bypass.

  5. Set up the converter by running this command: DesktopAppConverter.exe -Setup -BaseImage .BaseImage-1XXXX.wim -Verbose.

  6. Restart your computer if you're prompted to do so.

    Status messages appear in the console window as the converter expands the base image. If you don't see any status messages, press any key. This can cause the contents of the console window to refresh.

    When the base image is fully expanded, move to the next section.

Package an app

To Package your app, run the DesktopAppConverter.exe command in the console window that opened when you started the Desktop App Converter.

You'll specify the package name, publisher and version number of the application by using parameters.

Note

If you've reserved your app name in the Microsoft Store, you can obtain the package and publisher names by using Partner Center. If you plan to sideload your app onto other systems, you can provide your own names for these as long as the publisher name that you choose matches the name on the certificate you use to sign your app.

A quick look at command parameters

Here are the required parameters.

You can read about each one here.

Examples

Here's a few common ways to package your app.

Package an application that has an installer (.msi) file

Point to the installer file by using the Installer parameter.

Important

There are two important things to keep in mind here. First, make sure that your installer is located in an independent folder and that only files related to that installer are in the same folder. The converter copies all of the contents of that folder to the isolated Windows environment.
Secondly, if Partner Center assigns an identity to your package that begins with a number, make sure that you also pass in the -AppId parameter, and use only the string suffix (after the period separator) as the value of that parameter.

If your installer includes installers for dependent libraries or frameworks, you might have to organize things a bit a differently. See Chaining multiple installers with the Desktop Bridge.

Package an application that has a setup executable file

Point to the setup executable by using the Installer parameter.

Important

If Partner Center assigns an identity to your package that begins with a number, make sure that you also pass in the -AppId parameter, and use only the string suffix (after the period separator) as the value of that parameter.

The InstallerArguments parameter is an optional parameter. However, because the Desktop App Converter needs your installer to run in unattended mode, you might have to use it if your application needs silent flags to run silently. The /S flag is a very common silent flag, but the flag that you use might be different depending on which installer technology you used to create the setup file.

Package an application that doesn't have an installer

In this example, use the Installer parameter to point to the root folder of your application files.

Use the AppExecutable parameter to point to your apps executable file.

Important

If Partner Center assigns an identity to your package that begins with a number, make sure that you also pass in the -AppId parameter, and use only the string suffix (after the period separator) as the value of that parameter.

Package an app, sign the app, and run validation checks on the package

This example is similar to first one except it shows how you can sign your application for local testing, and then validate your application against packaged app and Microsoft Store requirements.

Important

If Partner Center assigns an identity to your package that begins with a number, make sure that you also pass in the -AppId parameter, and use only the string suffix (after the period separator) as the value of that parameter.

The Sign parameter generates a certificate and then signs your application with it. To run your app, you'll have to install that generated certificate. To learn how, see the Run the packaged app section of this guide.

You can validate you application by using the Verify parameter.

A quick look at optional parameters

The Sign and Verify parameters are optional. There are many more optional parameters. Here are some of the more commonly used optional parameters.

You can read about all of them in the next section.

Parameter Reference

Here's the complete list of parameters (organized by category) that you can use when you run the Desktop App Converter.

You can also view the entire list by running the Get-Help command in the app console window.

Setup parameters
-Setup []RequiredRuns DesktopAppConverter in setup mode. Setup mode supports expanding a provided base image.
-BaseImage RequiredFull path to an unexpanded base image. This parameter is required if -Setup is specified.
-LogFile OptionalSpecifies a log file. If omitted, a log file temporary location will be created.
-NatSubnetPrefix OptionalPrefix value to be used for the Nat instance. Typically, you would want to change this only if your host machine is attached to the same subnet range as the converter's NetNat. You can query the current converter NetNat config by using the Get-NetNat cmdlet.
-NoRestart []RequiredDon't prompt for reboot when running setup (reboot is required to enable the container feature).
Conversion parameters
-AppInstallPath OptionalThe full path to your application's root folder for the installed files if it were installed (e.g., 'C:Program Files (x86)MyApp').
-Destination RequiredThe desired destination for the converter's appx output - DesktopAppConverter can create this location if it doesn't already exist.
-Installer RequiredThe path to the installer for your application - must be able to run unattended/silently. No-installer conversion, this is the path to the root directory of your application files.
-InstallerArguments OptionalA comma-separated list or string of arguments to force your installer to run unattended/silently. This parameter is optional if your installer is an msi. To get a log from your installer, supply the logging argument for the installer here and use the path , which is a token that the converter replaces with the appropriate path.
NOTE: The unattended/silent flags and log arguments will vary between installer technologies.
An example usage for this parameter: -InstallerArguments '/silent /log install.log' Another example that doesn't produce a log file may look like: -InstallerArguments '/quiet', '/norestart' Again, you must literally direct any logs to the token path if you want the converter to capture it and put it in the final log folder.
-InstallerValidExitCodes OptionalA comma-separated list of exit codes that indicate your installer ran successfully (for example: 0, 1234, 5678). By default this is 0 for non-msi, and 0, 1641, 3010 for msi.
-MakeAppx []OptionalA switch that, when present, tells this script to call MakeAppx on the output.
-MakeMSIX []OptionalA switch that, when present, tells this script to package the output as an MSIX Package.
Package identity parameters
-PackageName RequiredThe name of your Universal Windows App package. If Partner Center assigns an identity to your package that begins with a number, make sure that you also pass in the -AppId parameter, and use only the string suffix (after the period separator) as the value of that parameter.
-Publisher RequiredThe publisher of your Universal Windows App package
-Version RequiredThe version number for your Universal Windows App package
Package manifest parameters
-AppExecutable OptionalThe name of your application's main executable (eg 'MyApp.exe'). This parameter is required for a no-installer conversion.
-AppFileTypes OptionalA comma-separated list of file types which the application will be associated with. Example usage: -AppFileTypes '.md', '.markdown'.
-AppId OptionalSpecifies a value to set Application Id to in the Windows app package manifest. If it is not specified, it will be set to the value passed in for PackageName. In many cases, using the PackageName is fine. However, if Partner Center assigns an identity to your package that begins with a number, make sure that you also pass in the -AppId parameter, and use only the string suffix (after the period separator) as the value of that parameter.
-AppDisplayName OptionalSpecifies a value to set Application Display Name to in the Windows app package manifest. If it is not specified, it will be set to the value passed in for PackageName.
-AppDescription OptionalSpecifies a value to set Application Description to in the Windows app package manifest. If it is not specified, it will be set to the value passed in for PackageName.
-PackageDisplayName OptionalSpecifies a value to set Package Display Name to in the Windows app package manifest. If it is not specified, it will be set to the value passed in for PackageName.
-PackagePublisherDisplayName OptionalSpecifies a value to set Package Publisher Display Name to in the Windows app package manifest. If it is not specified, it will be set to the value passed in for Publisher.
Cleanup parameters
-Cleanup []RequiredRuns cleanup for the DesktopAppConverter artifacts. There are 3 valid options for the Cleanup mode.
-Cleanup AllDeletes all expanded base images, removes any temporary converter files, removes the container network, and disables the optional Windows feature, Containers.
-Cleanup WorkDirectoryRequiredRemoves all the temporary converter files.
-Cleanup ExpandedImageRequiredDeletes all the expanded base images installed on your host machine.
Package architecture parameters
-PackageArch RequiredGenerates a package with the specified architecture. Valid options are 'x86' or 'x64'; for example, -PackageArch x86. This parameter is optional. If unspecified, the DesktopAppConverter will try to auto-detect package architecture. If auto-detection fails, it will default to x64 package.
Miscellaneous parameters
-ExpandedBaseImage OptionalFull path to an already expanded base image.
-LogFile OptionalSpecifies a log file. If omitted, a log file temporary location will be created.
-Sign []OptionalTells this script to sign the output Windows app package by using a generated certificate for testing purposes. This switch should be present alongside the switch -MakeAppx.
RequiredThis cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more info, see about_CommonParameters.
-Verify []OptionalA switch that, when present, tells the DAC to validate the app package against packaged app and Microsoft Store requirements. The result is a validation report 'VerifyReport.xml', which is best visualized in a browser. This switch should be present alongside the switch -MakeAppx.
-PublishComRegistrationsOptionalScans all public COM registrations made by your installer and publishes the valid ones in your manifest. Use this flag only if you want to make these registrations available to other applications. You don't need to use this flag if these registrations will be used only by your application.
Review this article to make sure that your COM registrations behave as you expect after you package your app.

Run the packaged app

There's two ways to run your app.

One way is to open a PowerShell command prompt, and then type this command: Add-AppxPackage –Register AppxManifest.xml. It's probably the easiest way to run your application because you don't have to sign it. Flash sd app.

Another way is to sign your application with a certificate. If you use the sign parameter, the Desktop App Converter will generate one for you, and then sign your application with it. That file is named auto-generated.cer, and you can find it in the root folder of your packaged app.

Follow these steps to install the generated certificate, and then run your app.

  1. Double-click the auto-generated.cer file to install the certificate.

    Note

    If you're prompted for a password, use the default password '123456'.

  2. In the Certificate dialog box, choose the Install Certificate button.

  3. In the Certificate Import Wizard, install the certificate onto the Local Machine, and place the certificate into the Trusted People certificate store.

  4. In root folder of your packaged app, double click the Windows app package file.

  5. Install the app, by choosing the Install button.

Modify the packaged app

You'll likely make changes to your packaged application to address bugs, add visual assets, or enhance your application with modern experiences such as live tiles.

After you make your changes, you don't need to run the converter again. In most cases, you can just repackage your application by using the MakeAppx tool and the appxmanifest.xml file the DAC generates for your app. See Generate a Windows app package.

  • If you modify any of the visual assets of your app, generate a new Package Resource Index file, and then run the MakeAppx tool to generate a new package. See Generate a Package Resource Index (PRI) file.

  • If you want to add icons or tiles that appear on the Windows taskbar, task view, LT+TAB, snap assist, and the lower right corner of Start tiles, see (Optional Add Target-based unplated assets.

Note

If you make changes to registry settings that your installer makes, you will have to run the Desktop App Converter again to pick up those changes.

The following two sections describe a couple of optional fix-ups to the packaged application that you might consider.

Delete unnecessary files and registry keys

The desktop App Converter takes a very conservative approach to filtering out files and system noise in the container.

If you want, you can review the VFS folder and delete any files that your installer doesn't need. You can also review the contents of Reg.dat and delete any keys that are not installed/needed by the app.

Fix corrupted PE headers

During the conversion process, the DesktopAppConverter automatically runs the PEHeaderCertFixTool to fixup any corrupted PE headers. However, you can also run the PEHeaderCertFixTool on a UWP Windows app package, loose files, or a specific binary. Here's an example.

Telemetry from Desktop App Converter

Desktop App Converter may collect information about you and your use of the software and send this info to Microsoft. You can learn more about Microsoft's data collection and use in the product documentation and in the Microsoft Privacy Statement. You agree to comply with all applicable provisions of the Microsoft Privacy Statement.

By default, telemetry will be enabled for the Desktop App Converter. Add the following registry key to configure telemetry to a desired setting:

  • Add or edit the DisableTelemetry value by using a DWORD set to 1.
  • To enable telemetry, remove the key or set the value to 0.

Language support

The Desktop App Converter does not support Unicode; thus, no Chinese characters or non-ASCII characters can be used with the tool.

Known issues with the Desktop App Converter

E_CREATING_ISOLATED_ENV_FAILED and E_STARTING_ISOLATED_ENV_FAILED errors

If you receive either of these errors, make sure that you're using a valid base image from the download center.If you're using a valid base image, try using -Cleanup All in your command.If that does not work, please send us your logs at converter@microsoft.com to help us investigate.

New-ContainerNetwork: The object already exists error

You might receive this error when you setup a new base image. This can happen if you have a Windows Insider flight on a developer machine that previously had the Desktop App Converter installed.

To resolve this issue, try running the command Netsh int ipv4 reset from an elevated command prompt, and then reboot your machine.

Your .NET application is compiled with the 'AnyCPU' build option and fails to install

This can happen if the main executable or any of the dependencies were placed anywhere in the Program Files or WindowsSystem32 folder hierarchy.

To resolve this issue, try using your architecture-specific desktop installer (32 bit or 64 bit) to generate a Windows app package.

Publishing public side-by-side Fusion assemblies won't work

During install, an application can publish public side-by-side Fusion assemblies, accessible to any other process. During process activation context creation, these assemblies are retrieved by a system process named CSRSS.exe. When this is done for a converted process, activation context creation and module loading of these assemblies will fail. The side-by-side Fusion assemblies are registered in the following locations:

  • Registry: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionSideBySideWinners
  • File System: %windir%SideBySide

This is a known limitation and no workaround currently exists. That said, Inbox assemblies, like ComCtl, are shipped with the OS, so taking a dependency on them is safe.

Error found in XML. The 'Executable' attribute is invalid - The value 'MyApp.EXE' is invalid according to its datatype

This can happen if the executables in your application have a capitalized .EXE extension. Although, the casing of this extension shouldn't affect whether your application runs, this can cause the DAC to generate this error.

To resolve this issue, try specifying the -AppExecutable flag when you package, and use the lower case '.exe' as the extension of your main executable (For example: MYAPP.exe). Alternately you can change the casing for all executables in your application from uppercase to lowercase (For example: from .EXE to .exe).

Corrupted or malformed Authenticode signatures

This section contains details on how to identify issues with Portable Executable (PE) files in your Windows app package that may contain corrupted or malformed Authenticode signatures. Invalid Authenticode signatures on your PE files, which may be in any binary format (e.g. .exe, .dll, .chm, etc.), will prevent your package from being signed properly, and thus prevent it from being deployable from an Windows app package.

The location of the Authenticode signature of a PE file is specified by the Certificate Table entry in the Optional Header Data Directories and the associated Attribute Certificate Table. During signature verification, the information specified in these structures is used to locate the signature on a PE file. If these values get corrupted then it is possible for a file to appear to be invalidly signed.

For the Authenticode signature to be correct, the following must be true of the Authenticode signature:

  • The start of the WIN_CERTIFICATE entry in the PE file cannot extend past the end of the executable
  • The WIN_CERTIFCATE entry should be located at the end of the image
  • The size of the WIN_CERTIFICATE entry must be positive
  • The WIN_CERTIFICATEentry must start after the IMAGE_NT_HEADERS32 structure for 32-bit executables and IMAGE_NT_HEADERS64 structure for 64-bit executables

For more details, please refer to the Authenticode Portal Executable specification and the PE file format specification.

Note that SignTool.exe can output a list of the corrupted or malformed binaries when attempting to sign an Windows app package. To do this, enable verbose logging by setting the environment variable APPXSIP_LOG to 1 (e.g., set APPXSIP_LOG=1 ) and re-run SignTool.exe.

To fix these malformed binaries, ensure they conform to the requirements above.

Next steps

Find answers to your questions

Have questions? Ask us on Stack Overflow. Our team monitors these tags. You can also ask us here.

Run your application / find and fix issues

See Run, debug, and test a packaged desktop application

Distribute your app

See Distribute a packaged desktop application

Estimated reading time: 6 minutes

Docker Desktop for Windows is the Community version of Docker for Microsoft Windows.You can download Docker Desktop for Windows from Docker Hub.

This page contains information on installing Docker Desktop on Windows 10 Pro, Enterprise, and Education. If you are looking for information about installing Docker Desktop on Windows 10 Home, see Install Docker Desktop on Windows Home.

By downloading Docker Desktop, you agree to the terms of the Docker Software End User License Agreement and the Docker Data Processing Agreement.

What to know before you install

System Requirements

  • Windows 10 64-bit: Pro, Enterprise, or Education (Build 17134 or later).

    For Windows 10 Home, see Install Docker Desktop on Windows Home.

  • Hyper-V and Containers Windows features must be enabled.
  • The following hardware prerequisites are required to successfully run ClientHyper-V on Windows 10:

    • 64 bit processor with Second Level Address Translation (SLAT)
    • 4GB system RAM
    • BIOS-level hardware virtualization support must be enabled in theBIOS settings. For more information, seeVirtualization.

Note

Docker supports Docker Desktop on Windows for those versions of Windows 10 that are still within Microsoft's servicing timeline.

What's included in the installer

The Docker Desktop installation includes Docker Engine,Docker CLI client, Docker Compose,Notary,Kubernetes,and Credential Helper.

Containers and images created with Docker Desktop are shared between alluser accounts on machines where it is installed. This is because all Windowsaccounts use the same VM to build and run containers. Note that it is not possible to share containers and images between user accounts when using the Docker Desktop WSL 2 backend.

Nested virtualization scenarios, such as running Docker Desktop on aVMWare or Parallels instance might work, but there are no guarantees. Formore information, see Running Docker Desktop in nested virtualization scenarios.

About Windows containers

Looking for information on using Windows containers?

  • Switch between Windows and Linux containersdescribes how you can toggle between Linux and Windows containers in Docker Desktop and points you to the tutorial mentioned above.
  • Getting Started with Windows Containers (Lab)provides a tutorial on how to set up and run Windows containers on Windows 10, Windows Server 2016 and Windows Server 2019. It shows you how to use a MusicStore applicationwith Windows containers.
  • Docker Container Platform for Windows articles and blogposts on the Docker website.

Install Docker Desktop on Windows

  1. Double-click Docker Desktop Installer.exe to run the installer.

    If you haven't already downloaded the installer (Docker Desktop Installer.exe), you can get it from Docker Hub. It typically downloads to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.

  2. When prompted, ensure the Enable Hyper-V Windows Features option is selected on the Configuration page.

  3. Follow the instructions on the installation wizard to authorize the installer and proceed with the install.

  4. When the installation is successful, click Close to complete the installation process.

  5. If your admin account is different to your user account, you must add the user to the docker-users group. Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users. Right-click to add the user to the group.Log out and log back in for the changes to take effect.

Start Docker Desktop

Docker Desktop does not start automatically after installation. To start Docker Desktop, search for Docker, and select Docker Desktop in the search results.

When the whale icon in the status bar stays steady, Docker Desktop is up-and-running, and is accessible from any terminal window.

If the whale icon is hidden in the Notifications area, click the up arrow on thetaskbar to show it. To learn more, see Docker Settings.

When the initialization is complete, Docker Desktop launches the onboarding tutorial. The tutorial includes a simple exercise to build an example Docker image, run it as a container, push and save the image to Docker Hub.

App Installer Won't Install

Congratulations! You are now successfully running Docker Desktop on Windows.

If you would like to rerun the tutorial, go to the Docker Desktop menu and select Learn.

Automatic updates

Starting with Docker Desktop 3.0.0, updates to Docker Desktop will be available automatically as delta updates from the previous version.

When an update is available, Docker Desktop automatically downloads it to your machine and displays an icon to indicate the availability of a newer version. All you need to do now is to click Update and restart from the Docker menu. This installs the latest update and restarts Docker Desktop for the changes to take effect.

Uninstall Docker Desktop

To uninstall Docker Desktop from your Windows machine:

  1. From the Windows Start menu, select Settings > Apps > Apps & features.
  2. Select Docker Desktop from the Apps & features list and then select Uninstall.
  3. Click Uninstall to confirm your selection.

Note

Uninstalling Docker Desktop will destroy Docker containers and images local to the machine and remove the files generated by the application.

Save and restore data

Windows 10 Desktop App Installer Mac

App installer won

You can use the following procedure to save and restore images and container data. For example, if you want to reset your VM disk:

  1. Use docker save -o images.tar image1 [image2 ..] to save any images you want to keep. See save in the Docker Engine command line reference.

  2. Use docker export -o myContainner1.tar container1 to export containers you want to keep. See export in the Docker Engine command line reference.

  3. Uninstall the current version of Docker Desktop and install a different version, or reset your VM disk.

  4. Use docker load -i images.tar to reload previously saved images. See load in the Docker Engine.

  5. Use docker import -i myContainer1.tar to create a file system image corresponding to the previously exported containers. See import in the Docker Engine.

Windows 10 Desktop App Installer

For information on how to back up and restore data volumes, see Backup, restore, or migrate data volumes.

Where to go next

  • Getting started introduces Docker Desktop for Windows.
  • Get started with Docker is a tutorial that teaches you how todeploy a multi-service stack.
  • Troubleshooting describes common problems, workarounds, andhow to get support.
  • FAQs provides answers to frequently asked questions.
  • Release notes lists component updates, new features, and improvements associated with Docker Desktop releases.
windows, install, download, run, docker, local



broken image