mercredi 2 juin 2021

How can a windows desktop application be installed and run from the web

It is possible to run a windows desktop application from a weblink. This can be achieved bij registering a custom protocol. Something like this (myapp.reg):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\myapp]
@="\"URL: myapp protocol\""
"URL Protocol"=""

[HKEY_CLASSES_ROOT\myapp\shell]

[HKEY_CLASSES_ROOT\myapp\shell\open]

[HKEY_CLASSES_ROOT\myapp\shell\open\command]
@="\"C:\\myapp.exe\" -URL \"%1\""

The URL: “myapp://parameters" will start the myapp application.

Is there a way to install the application and custom protocol, when it is not installed jet, before running the application?

Could this be done with msix?

By replacing the URL with: “ms-appinstaller:?source=http://myaddres/myapp_1.0.0_x64__z3ppzndyktgh8.msix”

The simplified flow (without user interaction/cancellation) would be:

if not installed myapp then
   install myapp 
else if not up to date myapp then
  update myapp
run myapp with parameters



Aucun commentaire:

Enregistrer un commentaire