Comment on page
How to run a Wisej app as a standalone desktop executable.
Wisej also supports a local desktop deployment (we call it Standalone deployment) as a local executable. It's very similar to the Electron system, except that we provide the shell for Internet Explorer, Chromium, Firefox and Edge.
You can find the project source on GitHub. After downloading the extensions source code, you can compile the HostService projects. In the /bin directory you will find 4 directories (one for each browser) containing a single executable Wisej.Application.exe.
All you need to do to deploy your Wisej app as a local app, is to copy the version of Wisej.Application.exe that you want to use along with the deployment files. The executable must be placed in the root folder, at the same level as /bin (not inside /bin).
CodeProject demo running as a desktop application
When your Wisej application is deployed as a Standalone executable running as a desktop application, your "server side" code in .NET is running together with with the "client side" browser. This configuration gives your .NET code full access to the user's machine.
- Read/write the user's registry
- Read/write the entire file system
- Connect to a local or remote database
- Show native windows and controls
- Launch and control Word or any other local application
It is basically a local application running in the browser.
Add <add key="Wisej.DesktopMode" value="true"/> to web.config. Otherwise Wisej.NET will look for a server licenses instead of the free desktop license.
You can customize the final executable in several ways:
- 1.Each of the standalone applications is a simple WinForms project with a form and a web browser control. You can personalize it freely: i.e. add a toolbar, status bar, icon, etc.
- 2.Change the initial splash loader simply by placing either a splash.png, splash.gif or splash.jpg file in the root project folder.
- 3.Change the application's icon.
Uses the Internet Explorer component that is already preinstalled with Windows. This is the smallest executable of all at roughly 500KB.
You can update the WebView2 controls simply by copying the newer files over the same files included in our GitHub repository. However, the WebView2 SDK needs to be downloaded and updated independently.