Add git version to setup.exe

This commit is contained in:
Lauri Kenttä
2016-06-04 20:51:35 +03:00
parent b7fd08c978
commit 3da9e1818a
2 changed files with 10 additions and 2 deletions

View File

@@ -364,6 +364,11 @@ public class Setup {
* @param args The arguments.
*/
public static void Main(string[] args) {
#if GIT_DESCRIBE
Console.WriteLine("HackBGRT installer version: {0}", GIT_DESCRIBE.data);
#else
Console.WriteLine("HackBGRT installer version: unknown; not an official release?");
#endif
var self = Assembly.GetExecutingAssembly().Location;
try {
// Relaunch as admin, if needed.