build: windows deploy

* implemented a new deploy script for windows
* created a new setup project for the Coati Trail
This commit is contained in:
malte_langkabel
2016-02-24 10:52:24 +01:00
parent 64ffafffa8
commit 4dabe31776
45 changed files with 7259 additions and 943 deletions
@@ -0,0 +1,48 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace SetupRemoveCacheFiles
{
[RunInstaller(true)]
public partial class SetupRemoveCacheFiles : System.Configuration.Install.Installer
{
public SetupRemoveCacheFiles()
{
InitializeComponent();
}
protected override void OnAfterRollback(IDictionary savedState)
{
base.OnAfterRollback(savedState);
DeleteCacheFiles();
}
protected override void OnAfterUninstall(IDictionary savedState)
{
base.OnAfterUninstall(savedState);
DeleteCacheFiles();
}
private void DeleteCacheFiles()
{
try
{
string appDataCoatiPath = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software"; // \\Coati\\";
Directory.Delete(appDataCoatiPath, true);
}
catch(Exception e)
{
// well damn
}
}
}
}