Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an installer for a Windows 10 HWA bundle?

I've built a Windows 10 Hosted Web App (HWA) using MS Visual Studio 2015. Now, I've investigated if there is a way to create a standalone installer for it - which bundles the generated .appx and related files into a one-click executable. Sadly, so far, I've only succeded to sideload the HWA bundle by using the provided PowerShell script.

In this context, I've looked at the NSIS (Nullsoft Scriptable Install System) to create an Installer for this HWA. So far there seems to be only "preliminary Windows 10 support" according to the latest changelogs (see section Version F.2 3.0 Beta 2).

So my questions are:

  1. How can I create a standalone installer without the need to invoke PowerShell installation routines?
  2. What does "preliminary Windows 10 support" mean for appxapplications?

Note:

I'm interested in non-Windows-Store based approaches as the app should only be distributed to a group of verified customers by local installation.

EDIT-1:

I'm open to ideas on other (non NSIS-based) installer creation approaches.

like image 490
MWiesner Avatar asked Feb 10 '16 10:02

MWiesner


People also ask

How do I create a Windows 10 installation image?

On the Windows 10 download page, download the media creation tool by selecting Download tool now, then run the tool. In the tool, select Create installation media (USB flash drive, DVD, or ISO) for another PC > Next. Select the language, architecture, and edition of Windows, you need and select Next.

How do I add software to Windows 10 ISO?

Mount the ISO File in Windows 11, 10, or 8.1From the pop-up menu, select the Mount command. This will open a virtual drive that is visible in File Explorer, from which you can install the software. On the virtual drive, you should find a setup.exe file (or something similar) for installing the program.


1 Answers

NSIS does not support HWA apps out of the box. If you know which Windows APIs to call you could probably use the System plugin or create a custom NSIS plugin. I had a quick look on MSDN but I could not find which API you are supposed to call to sideload apps.

The part about preliminary Windows 10 support has nothing to do with Modern apps. It is mostly about general compatibility and version checking.

like image 74
Anders Avatar answered Oct 19 '22 21:10

Anders