Giter Club home page Giter Club logo

softwareupdater's Introduction

SoftwareUpdater

SoftwareUpdater is an executable to update other software.

Build status GitHub issues GitHub forks GitHub stars License: MIT Known Vulnerabilities Blogger Patreon PayPal

Screenshot from the executable

Screenshot from the executable

Basic usage

The PreferredLanguage property needs to be set to the language that is wanted. See the languages subfolder in the execution location (to add new languages) and the language manager: https://github.com/SeppPenner/CSharpLanguageManager

<PreferredLanguage>Deutsch</PreferredLanguage>

The PathToLatestVersion property needs to be set to the path to where the newest executable is located, e.g. a server share, etc.

<PathToLatestVersion>C:\Users\asdf\Desktop\Test</PathToLatestVersion>

The MainExecutable property needs to be set to the application's main executable. StartAgain means that after the update the executable is restarted.

<MainExecutable>
	<FileName>MainExecutable.exe</FileName>
	<StartAgain>true</StartAgain>
</MainExecutable>

The files property contains all other files that should be updated and if they should be restarted after the update.

<Files>
	<FileModel>
		<FileName>SecondExe.exe</FileName>
		<StartAgain>false</StartAgain>
	</FileModel>
	<FileModel>
		<FileName>Changelog.txt</FileName>
		<StartAgain>true</StartAgain>
	</FileModel>
</Files>

How the full configuration needs to look like (Version 1.0.0.2)

The config file needs to be named "UpdateConfig.xml".

<?xml version="1.0"?>
<Config>
	<PreferredLanguage>Deutsch</PreferredLanguage>
	<PathToLatestVersion>C:\Users\asdf\Desktop\Test</PathToLatestVersion>
	<MainExecutable>
		<FileName>MainExecutable.exe</FileName>
		<StartAgain>true</StartAgain>
	</MainExecutable>
	<Files>
		<FileModel>
			<FileName>SecondExe.exe</FileName>
			<StartAgain>false</StartAgain>
		</FileModel>
		<FileModel>
			<FileName>Changelog.txt</FileName>
			<StartAgain>true</StartAgain>
		</FileModel>
	</Files>
</Config>

How the full configuration needs to look like (Version 1.0.0.1 and prior)

The config file needs to be named "UpdateConfig.xml".

<?xml version="1.0"?>
<Config>
	<PathToLatestVersion>C:\Users\asdf\Desktop\Test</PathToLatestVersion>
	<MainExecutable>
		<FileName>MainExecutable.exe</FileName>
		<StartAgain>true</StartAgain>
	</MainExecutable>
	<Files>
		<FileModel>
			<FileName>SecondExe.exe</FileName>
			<StartAgain>false</StartAgain>
		</FileModel>
		<FileModel>
			<FileName>Changelog.txt</FileName>
			<StartAgain>true</StartAgain>
		</FileModel>
	</Files>
</Config>

An example project can be found here. A test setup can be found here.

Special advice for version 1.0.0.0

If the executable is located under C:\Program Files or C:\Program Files (x86), ADMIN RIGHTS will be needed to use the updater properly. Otherwise it will not perform an update.

Change history

See the Changelog.

softwareupdater's People

Contributors

sepppenner avatar tiham07 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.