Code Monkey home page Code Monkey logo

vpupdater's Introduction

VPUpdater

Automatic updater for Virtual Paradise

About

This tool is directly inspired by VPUpdater by Evonex. However since its last commit 4 years prior, a lot has changed and there were a few issues:

  • The tool did not support the 64-bit version of Virtual Paradise
  • It is incompatible with new the download & install flow (the tool expected to download and extract a .zip file, where Virtual Paradise now uses a Squirrel installer)

I've rewritten the tool from the ground up to correct all of these issues.

How to use

  1. Ensure you have the .NET Framework 4.8 Runtime
  2. Download the latest release and extract the files to your Virtual Paradise directory
  3. Create a shortcut to VPUpdater.exe
  4. Rename the shortcut to something meaningful (you know... like Virtual Paradise)
  5. Place that shortcut on your desktop / taskbar / useful location.

Now when you launch "Virtual Paradise", it will launch the updater first. If there are no updates, the tool with simply launch Virtual Paradise. If there is an update, it will download the latest setup and you can go from there.

How to enable pre-release builds

Edit (or create) file VPUpdater.cfg in the Virtual Paradise directory with the line:

stable_only=0

The next time the updater runs, it will check for pre-release builds.

Building prerequisites

Prerequisite Version
.NET Framework Developer Pack 4.8

Nuget package dependencies

Dependency Version
AngleSharp 0.12.1
SemanticVersioning 1.2.0

Disclaimer

This tool is provided as-is.

vpupdater's People

Contributors

oliverbooth avatar

Stargazers

 avatar

Watchers

 avatar

vpupdater's Issues

Updater still attempts to update if VirtualParadise.exe is not found

Describe the bug
If VPUpdater.exe is not in the same folder as VirtualParadise.exe, the error shown does not halt the application.

To Reproduce
Steps to reproduce the behavior:

  1. Launch VPUpdater.exe from a folder other than VP's

Expected behavior
The application should exit after displaying the error.

Screenshots
n/a

Additional context
See DownloadForm.cs:56-70

"{0} was not found. The updater cannot continue."

Describe the bug
If VirtualParadise.exe is not in the same folder as VPUpdater.exe, the error shown is nonsense.

To Reproduce
Steps to reproduce the behavior:

  1. Launch updater from any folder with with VirtualParadise.exe not in the same location.
  2. That's literally it.

Expected behavior
The message should display "VirtualParadise.exe was not found [...]"

Screenshots
image

Additional context
A missing call to String.Format in DownloadForm.cs:59 causes this.

Updater will always fail

Describe the bug
The updater will always claim there is an update available, even when there isn't.

To Reproduce
Steps to reproduce the behavior:

  1. Launch the updater.
  2. That's literally it.

Expected behavior
The updater should quietly quit and launch Virtual Paradise if there is no new version.

Screenshots
n/a

Additional context
VirtualParadise.cs:69 subtracts 1 from version.Build, causing the update check to always give the wrong result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.