build: new windows installer

Created new windows installer based on the WiX Toolset
This commit is contained in:
Manuel Dobusch
2016-08-09 16:32:27 +02:00
parent 9cda1e773d
commit d0cf500c8e
28 changed files with 8968 additions and 0 deletions
@@ -0,0 +1,23 @@
#include <iostream>
#include <windows.h>
int main()
{
HKEY hKey;
LONG lResult = RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Coati Software OG\\Coati\\coatiSoftwareAppData"), 0, KEY_READ, &hKey);
if (lResult == ERROR_SUCCESS)
{
std::cout << "Coati found" << std::endl;
std::cout << "Performing upgrade" << std::endl;
system("msiexec /i coati.msi REINSTALL=ALL REINSTALLMODE=vomus");
}
else
{
std::cout << "Coati not found" << std::endl;
std::cout << "Performing initial installation" << std::endl;
system("msiexec /i coati.msi");
}
return 0;
}