GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — velopack/samples/CSharpWinForms at develop · velopack/velopack

Expand file tree

/

CSharpWinForms

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

CSharpWinForms

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
CSharpWinForms.csproj
CSharpWinForms.csproj
 
 
Form1.Designer.cs
Form1.Designer.cs
 
 
Form1.cs
Form1.cs
 
 
Form1.resx
Form1.resx
 
 
MemoryLogger.cs
MemoryLogger.cs
 
 
Program.cs
Program.cs
 
 
README.md
README.md
 
 
build.bat
build.bat
 
 

README.md

Outline

VeloWinFormsSample

Prerequisites: vpk command line tool installed

This app demonstrates how to use WinForms to provide a desktop UI, installer, and updates for Windows only.

You can run this sample by executing the build script with a version number: build.bat 1.0.0. Once built, you can install the app - build more updates, and then test updates and so forth. The sample app will check the local release dir for new update packages.

In your production apps, you should deploy your updates to some kind of update server instead.

WinForms Implementation Notes

The Velopack startup bootstrapping should be placed as early as possible in the Main method.

VelopackApp.Build()
    .WithFirstRun((v) => { /* Your first run code here */ })
    .Run(Log);

This sample explicitly sets the AssemblyName in the csproj file to match the Velpoack packId (-u option). This is not required, but demonstrates handling the case where the app name and the packId are different.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.