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
+1
View File
@@ -71,3 +71,4 @@ Makefile
/deployment/windows/CoatiTrialSetup/SetupRemoveCacheFiles/bin/
/deployment/windows/CoatiTrialSetup/SetupRemoveCacheFiles/obj/
/deployment/windows/wixSetup/
+1
View File
@@ -0,0 +1 @@
%windir%\system32\msiexec.exe /x {596E7336-D5B9-449A-95E9-6040F354E283}
@@ -0,0 +1,38 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetupAppSettings", "SetupAppSettings\SetupAppSettings.csproj", "{A3901962-55C5-457B-873D-5842F2B3B2BE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UninstallRemoveLogFolder", "UninstallRemoveLogFolder\UninstallRemoveLogFolder.csproj", "{7B853830-9077-4803-8ADF-12D7B2886958}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Debug|Any CPU.ActiveCfg = Release|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Debug|Any CPU.Build.0 = Release|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Debug|x86.ActiveCfg = Debug|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Debug|x86.Build.0 = Debug|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Release|Any CPU.ActiveCfg = Release|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Release|Any CPU.Build.0 = Release|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Release|x86.ActiveCfg = Release|x86
{A3901962-55C5-457B-873D-5842F2B3B2BE}.Release|x86.Build.0 = Release|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Debug|Any CPU.ActiveCfg = Release|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Debug|Any CPU.Build.0 = Release|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Debug|x86.ActiveCfg = Debug|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Debug|x86.Build.0 = Debug|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Release|Any CPU.ActiveCfg = Release|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Release|Any CPU.Build.0 = Release|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Release|x86.ActiveCfg = Release|x86
{7B853830-9077-4803-8ADF-12D7B2886958}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<!--
Use supportedRuntime tags to explicitly specify the version(s) of the .NET Framework runtime that
the custom action should run on. If no versions are specified, the chosen version of the runtime
will be the "best" match to what Microsoft.Deployment.WindowsInstaller.dll was built against.
WARNING: leaving the version unspecified is dangerous as it introduces a risk of compatibility
problems with future versions of the .NET Framework runtime. It is highly recommended that you specify
only the version(s) of the .NET Framework runtime that you have tested against.
Note for .NET Framework v3.0 and v3.5, the runtime version is still v2.0.
In order to enable .NET Framework version 2.0 runtime activation policy, which is to load all assemblies
by using the latest supported runtime, @useLegacyV2RuntimeActivationPolicy="true".
For more information, see http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx
-->
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727"/>
</startup>
<!--
Add additional configuration settings here. For more information on application config files,
see http://msdn.microsoft.com/en-us/library/kza1yk3a.aspx
-->
</configuration>
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Deployment.WindowsInstaller;
using System.Xml;
namespace SetupAppSettings
{
public class CustomActions
{
[CustomAction]
public static ActionResult Main(Session session)
{
session.Log("Configuring AppSettings");
try
{
SetupAppSettings();
}
catch(Exception e)
{
session.Log("Failed to configure AppSettings.");
session.Log("Exception: " + e.ToString());
return ActionResult.NotExecuted;
}
session.Log("Done configuring AppSettings");
return ActionResult.Success;
}
private static void SetupAppSettings()
{
string appDataCoatiPath = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\";
string appSettingsPath = appDataCoatiPath + "ApplicationSettings.xml";
string projectsPath = appDataCoatiPath + "projects\\";
XmlDocument appSettings = new XmlDocument();
appSettings.Load(@appSettingsPath);
XmlNode recentProjects = appSettings.SelectSingleNode("config/user/recent_projects");
recentProjects.RemoveAll();
XmlNode tutorial = appSettings.CreateElement("recent_project");
tutorial.InnerText = projectsPath + "tutorial\\tutorial.coatiproject";
recentProjects.AppendChild(tutorial);
XmlNode tictactoe = appSettings.CreateElement("recent_project");
tictactoe.InnerText = projectsPath + "tictactoe\\tictactoe.coatiproject";
recentProjects.AppendChild(tictactoe);
appSettings.Save(appSettingsPath);
}
}
}
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FooAction")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FooAction")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("a3901962-55c5-457b-873d-5842f2b3b2be")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A3901962-55C5-457B-873D-5842F2B3B2BE}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SetupAppSettings</RootNamespace>
<AssemblyName>SetupAppSettings</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<WixCATargetsPath Condition=" '$(WixCATargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.CA.targets</WixCATargetsPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>3</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.Deployment.WindowsInstaller">
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CustomAction.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Content Include="CustomAction.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(WixCATargetsPath)" />
</Project>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<!--
Use supportedRuntime tags to explicitly specify the version(s) of the .NET Framework runtime that
the custom action should run on. If no versions are specified, the chosen version of the runtime
will be the "best" match to what Microsoft.Deployment.WindowsInstaller.dll was built against.
WARNING: leaving the version unspecified is dangerous as it introduces a risk of compatibility
problems with future versions of the .NET Framework runtime. It is highly recommended that you specify
only the version(s) of the .NET Framework runtime that you have tested against.
Note for .NET Framework v3.0 and v3.5, the runtime version is still v2.0.
In order to enable .NET Framework version 2.0 runtime activation policy, which is to load all assemblies
by using the latest supported runtime, @useLegacyV2RuntimeActivationPolicy="true".
For more information, see http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx
-->
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727"/>
</startup>
<!--
Add additional configuration settings here. For more information on application config files,
see http://msdn.microsoft.com/en-us/library/kza1yk3a.aspx
-->
</configuration>
@@ -0,0 +1,82 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using Microsoft.Deployment.WindowsInstaller;
using System.Xml;
namespace SetupAppSettings
{
public class CustomActions
{
[CustomAction]
public static ActionResult Main(Session session)
{
session.Log("Removing log folder");
try
{
RemoveLogFolder();
}
catch (Exception e)
{
session.Log("Failed to remove log folder.");
session.Log("Exception: " + e.ToString());
return ActionResult.NotExecuted;
}
session.Log("Log folder removed");
return ActionResult.Success;
}
private static void RemoveLogFolder()
{
// remove logs
string path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\log";
if (Directory.Exists(path))
{
Directory.Delete(path, true);
}
// remove sample projects
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\projects\\tutorial";
if(Directory.Exists(path))
{
Directory.Delete(path, true);
}
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\projects\\tictactoe";
if (Directory.Exists(path))
{
Directory.Delete(path, true);
}
// remove projects folder if empty (avoid deleting user generated files)
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\projects";
if (Directory.Exists(path) && !Directory.EnumerateFileSystemEntries(path).Any())
{
Directory.Delete(path, true);
}
// remove coati folder if empty (may not be empty if user stored stuff in here)
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati";
if (Directory.Exists(path) && !Directory.EnumerateFileSystemEntries(path).Any())
{
Directory.Delete(path, true);
}
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software";
if (Directory.Exists(path) && !Directory.EnumerateFileSystemEntries(path).Any())
{
Directory.Delete(path, true);
}
//string coatiPath = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software";
//Directory.Delete(coatiPath, true);
}
}
}
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("UninstallRemoveLogFolder")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UninstallRemoveLogFolder")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7b853830-9077-4803-8adf-12d7b2886958")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7B853830-9077-4803-8ADF-12D7B2886958}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>UninstallRemoveLogFolder</RootNamespace>
<AssemblyName>UninstallRemoveLogFolder</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<WixCATargetsPath Condition=" '$(WixCATargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.CA.targets</WixCATargetsPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.Deployment.WindowsInstaller">
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CustomAction.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Content Include="CustomAction.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(WixCATargetsPath)" />
</Project>
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 KiB

@@ -0,0 +1,28 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Setup", "Setup\Setup.vcxproj", "{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Debug|x64.ActiveCfg = Debug|x64
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Debug|x64.Build.0 = Debug|x64
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Debug|x86.ActiveCfg = Debug|Win32
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Debug|x86.Build.0 = Debug|Win32
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Release|x64.ActiveCfg = Release|x64
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Release|x64.Build.0 = Release|x64
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Release|x86.ActiveCfg = Release|Win32
{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,156 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{A9CADD4E-FCC2-43C0-BE60-8DC8962D1539}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>Setup</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\..\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\..</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\src\main.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="..\..\src\main.cpp" />
</ItemGroup>
</Project>
@@ -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;
}
+104
View File
@@ -0,0 +1,104 @@
<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Fragment>
<DirectoryRef Id='CoatiAppData'>
<Component Id="ApplicationSettingsXml" Guid="C8883C69-3123-4382-BDB1-771C206EE461">
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\coatiApplicationSettings" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
<File Id='ApplicationSettings' Name='ApplicationSettings.xml' DiskId='1' Source='./../../../bin/app/user/ApplicationSettings_for_package.xml' KeyPath='no' />
</Component>
<Directory Id="SampleProjects" Name="projects">
<Component Id="SampleProjects" Guid="12F6C3BE-CE83-441A-8A5D-E49EA1483F24">
<RemoveFolder Id='SampleProjects' On='uninstall' />
<RegistryValue Root='HKCU' Key='SampleProjectDir' Type='string' Value='' KeyPath='yes' />
</Component>
<Directory Id="SampleProjectTictactoe" Name="tictactoe">
<Component Id="TictactoeCoatiproject" Guid="E353FD02-79FD-4409-9874-3282B038DD12">
<CreateFolder />
<RemoveFolder Id='SampleProjectTictactoe' On='uninstall' />
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\tictactoeProjectKey" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
<File Id='Tictactoe' Name='tictactoe.coatiproject' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/tictactoe.coatiproject' KeyPath='no' />
</Component>
<Directory Id="TictactoeSrc" Name="src">
<Component Id="TictactoeCode" Guid="393ED988-A69D-4B10-974A-401EBB56C6A3">
<CreateFolder />
<RemoveFolder Id='TictactoeSrc' On='uninstall' />
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\tictactoeCodeKey" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
<File Id='ArtificialPlayer' Name='artificial_player.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/artificial_player.cpp' KeyPath='no' />
<File Id='ArtificialPlayerHeader' Name='artificial_player.h' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/artificial_player.h' KeyPath='no' />
<File Id='Field' Name='field.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/field.cpp' KeyPath='no' />
<File Id='FieldHeader' Name='field.h' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/field.h' KeyPath='no' />
<File Id='HumanPlayer' Name='human_player.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/human_player.cpp' KeyPath='no' />
<File Id='HumanPlayerHeader' Name='human_player.h' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/human_player.h' KeyPath='no' />
<File Id='IO' Name='io.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/io.cpp' KeyPath='no' />
<File Id='IOHeader' Name='io.h' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/io.h' KeyPath='no' />
<File Id='tictactoeMain' Name='main.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/main.cpp' KeyPath='no' />
<File Id='Player' Name='player.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/player.cpp' KeyPath='no' />
<File Id='PlayerHeader' Name='player.h' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/player.h' KeyPath='no' />
<File Id='tictactoeFile' Name='tictactoe.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/tictactoe.cpp' KeyPath='no' />
<File Id='tictactoeHeader' Name='tictactoe.h' DiskId='1' Source='./../../../bin/app/data/projects/tictactoe/src/tictactoe.h' KeyPath='no' />
</Component>
</Directory>
</Directory>
<Directory Id="SampleProjectTutorial" Name="tutorial">
<Component Id="TutorialCoatiproject" Guid="D7976D20-0447-4628-942B-0C8BE49E190E">
<CreateFolder />
<RemoveFolder Id='SampleProjectTutorial' On='uninstall' />
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\tutorialProjectKey" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
<File Id='Tutorial' Name='tutorial.coatiproject' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/tutorial.coatiproject' KeyPath='no' />
</Component>
<Directory Id="TutorialSrc" Name="src">
<Component Id="TutorialCode" Guid="DA247C7A-16F4-4297-928D-02C713B9967A">
<CreateFolder />
<RemoveFolder Id='TutorialSrc' On='uninstall' />
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\tutorialCodeKey" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
<File Id='CodeTutorial1Header' Name='code_tutorial_1.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/code_tutorial_1.h' KeyPath='no' />
<File Id='CodeTutorial2Header' Name='code_tutorial_2.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/code_tutorial_2.h' KeyPath='no' />
<File Id='CodeTutorial3Header' Name='code_tutorial_3.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/code_tutorial_3.h' KeyPath='no' />
<File Id='GraphTutorial1Header' Name='graph_tutorial_1.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/graph_tutorial_1.h' KeyPath='no' />
<File Id='GraphTutorial2Header' Name='graph_tutorial_2.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/graph_tutorial_2.h' KeyPath='no' />
<File Id='GraphTutorial3Header' Name='graph_tutorial_3.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/graph_tutorial_3.h' KeyPath='no' />
<File Id='GraphTutorial4Header' Name='graph_tutorial_4.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/graph_tutorial_4.h' KeyPath='no' />
<File Id='MainCpp' Name='main.cpp' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/main.cpp' KeyPath='no' />
<File Id='MyFirstStepHeader' Name='my_first_step.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/my_first_step.h' KeyPath='no' />
<File Id='MyNextStepHeader' Name='my_next_step.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/my_next_step.h' KeyPath='no' />
<File Id='SearchTutorial1Header' Name='search_tutorial_1.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/search_tutorial_1.h' KeyPath='no' />
<File Id='SearchTutorial2Header' Name='search_tutorial_2.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/search_tutorial_2.h' KeyPath='no' />
<File Id='SearchTutorial3Header' Name='search_tutorial_3.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/search_tutorial_3.h' KeyPath='no' />
<File Id='SearchTutorial4Header' Name='search_tutorial_4.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/search_tutorial_4.h' KeyPath='no' />
<File Id='SearchTutorial5Header' Name='search_tutorial_5.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/search_tutorial_5.h' KeyPath='no' />
<File Id='StartExploringHeader' Name='start_exploring.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/start_exploring.h' KeyPath='no' />
<File Id='TheCentralHubHeader' Name='the_central_hub.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/the_central_hub.h' KeyPath='no' />
<File Id='UtilityHeader' Name='utility.h' DiskId='1' Source='./../../../bin/app/data/projects/tutorial/src/utility.h' KeyPath='no' />
</Component>
</Directory>
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
</Wix>
+5
View File
@@ -0,0 +1,5 @@
devenv.exe /build "Release|x86" Setup/build/Setup.sln
devenv.exe /build "Release|x86" CustomActions/CustomActions.sln
candle.exe coati.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs > compileLog.txt
light.exe -ext WixUIExtension coati.wixobj customActions.wixobj dialogShortcuts.wixobj installDir.wixobj appDataDir.wixobj -out coati.msi > linkLog.txt
+282
View File
@@ -0,0 +1,282 @@
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Name='Coati' Manufacturer='Coati Software OG'
Id='596E7336-D5B9-449A-95E9-6040F354E283'
UpgradeCode='6DAB9E05-6E5B-4D26-A2A0-8F1757F2A4EF'
Language='1033' Codepage='1252' Version='0.7.0'>
<Package Id='*' Keywords='Installer' Description="Coati Installer"
Comments='Coati is a registered trademark of Coati Software OG' Manufacturer='Coati Software OG'
InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' />
<Property Id='DiskPrompt' Value="Coati Installation [1]" />
<Property Id="INSTALLDESKTOPSHORTCUT" />
<Property Id="INSTALLSTARTMENUSHORTCUT" />
<!-- Shortcuts -->
<Upgrade Id='A4C8F644-9A8C-4825-8C48-F6A98F111722'>
<UpgradeVersion OnlyDetect='yes' Property='SELFFOUND'
Minimum='0.7.0' IncludeMinimum='yes'
Maximum='0.7.0' IncludeMaximum='yes' />
<UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
Minimum='0.7.0' IncludeMinimum='no' />
</Upgrade>
<Directory Id='TARGETDIR' Name='SourceDir'>
<!-- This would be an alternative to include C++ runtime stuff, currently the required DLLs are included directly instead -->
<!-- <Merge Id="VCRedist" SourceFile="C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC140_CRT_x86.msm" DiskId="1" Language="0"/> -->
<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="Coati">
<Component Id="UninstallShortcut" Guid="028B666E-FAE8-4F53-A0E6-C2E0396CB6F2">
<Condition>INSTALLSTARTMENUSHORTCUT</Condition>
<!-- <Shortcut Id="UninstallProduct"
Name="Coati Uninstall"
Description="Uninstall Coati"
Target="[System64Folder]msiexec.exe"
Arguments="/x [ProductCode]"/> -->
<Shortcut Id="UninstallProduct"
Name="Uninstall Coati"
Description="Remove Coati from your computer"
Target="[INSTALLDIR]uninstall.bat" />
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\CoatiUninstall" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
</Component>
<Component Id="ApplicationShortcut" Guid="5AD30B21-61BA-4002-AF2F-E9E69989E446">
<Condition>INSTALLSTARTMENUSHORTCUT</Condition>
<Shortcut Id="ApplicationStartMenuShortcut"
Name="Coati"
Description="The Sauce Explorer"
Target="[INSTALLDIR]Coati.exe"
WorkingDirectory="INSTALLDIR"/>
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\CoatiShortcut" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop">
<Component Id='DesktopShortcut' Guid='285FA7FC-F355-4892-AFA7-DD49B8D81563'>
<Condition>INSTALLDESKTOPSHORTCUT</Condition>
<Shortcut Id="ApplicationDesktopShortcut"
Name="Coati"
Description="Sauce Explorer"
Target="[INSTALLDIR]Coati.exe"
WorkingDirectory="INSTALLDIR"/>
<RemoveFolder Id="DesktopFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\CoatiDesktop" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
<!-- Application Folder -->
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='COMPANYDIR' Name='Coati Software'>
<Directory Id='INSTALLDIR' Name='Coati' />
</Directory>
</Directory>
<!-- AppData Folder -->
<Directory Id="LocalAppDataFolder">
<Directory Id="CoatiSoftwareAppData" Name="Coati Software">
<Component Id="CoatiSoftwareAppDataDummy" Guid="E57CFAEC-B3E7-45EB-8B94-F50EBDA1355C">
<CreateFolder />
<RemoveFolder Id='CoatiSoftwareAppData' On='uninstall' />
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\coatiSoftwareAppData" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
</Component>
<Directory Id="CoatiAppData" Name="Coati">
<Component Id="WindowSettingsIni" Guid="F6E9CCD3-C2BE-4309-8E0F-B1FC7ABB189E">
<CreateFolder />
<RemoveFolder Id='WindowSettingsIni' On='uninstall'/>
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\coatiWindowSettings" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
<File Id='windowSettings' Name='window_settings.ini' DiskId='1' Source='./../../../bin/app/Release/user/window_settings_for_package.ini' KeyPath='no' />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Title='Coati' Description='Source Explorer' Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>
<Feature Id='Program' Title='Program' Description='The main installation' Level='1'>
<!-- Prerequisites -->
<!-- <MergeRef Id='VCRedist'/> --> <!-- see comment at declaration -->
<!-- Application Folder Stuff -->
<ComponentRef Id='MainExecutable'/>
<ComponentRef Id='ApplicationShortcut'/>
<ComponentRef Id='DesktopShortcut'/>
<ComponentRef Id='UninstallShortcut'/>
<ComponentRef Id='Qt5CoreDll'/>
<ComponentRef Id='Qt5GuiDll'/>
<ComponentRef Id='Qt5NetworkDll'/>
<ComponentRef Id='Qt5WidgetsDll'/>
<ComponentRef Id='apiMsWinCrtConvert_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtEnvironment_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtFilesystem_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtHeap_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtLocale_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtMath_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtRuntime_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtStdio_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtString_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtTime_l1_1_0Dll'/>
<ComponentRef Id='apiMsWinCrtUtility_l1_1_0Dll'/>
<ComponentRef Id='QWindowsDll'/>
<ComponentRef Id='MainCss'/>
<ComponentRef Id='SplashBluePng'/>
<ComponentRef Id='SplashWhitePng'/>
<ComponentRef Id='AboutCss'/>
<ComponentRef Id='IconClosePng'/>
<ComponentRef Id='LogoAwsPng'/>
<ComponentRef Id='LogoCoatiPng'/>
<ComponentRef Id='LogoFhsPng'/>
<ComponentRef Id='CodeViewCss'/>
<ComponentRef Id='EditPng'/>
<ComponentRef Id='MaximizeActivePng'/>
<ComponentRef Id='MaximizeInactivePng'/>
<ComponentRef Id='MinimizeActivePng'/>
<ComponentRef Id='MinimizeInactivePng'/>
<ComponentRef Id='PatternPng'/>
<ComponentRef Id='SnippetActivePng'/>
<ComponentRef Id='SnippetInactivePng'/>
<ComponentRef Id='GraphViewCss'/>
<ComponentRef Id='ArrowPng'/>
<ComponentRef Id='BundlePng'/>
<ComponentRef Id='Enum_1Png'/>
<ComponentRef Id='Enum_2Png'/>
<ComponentRef Id='FilePng'/>
<ComponentRef Id='Macro_1Png'/>
<ComponentRef Id='Macro_2Png'/>
<ComponentRef Id='Macro_3Png'/>
<ComponentRef Id='GraphPatternPng'/>
<ComponentRef Id='PrivatePng'/>
<ComponentRef Id='ProtectedPng'/>
<ComponentRef Id='PublicPng'/>
<ComponentRef Id='TemplatePng'/>
<ComponentRef Id='Typedef_1Png'/>
<ComponentRef Id='Typedef_2Png'/>
<ComponentRef Id='Typedef_3Png'/>
<ComponentRef Id='CoatiIco'/>
<ComponentRef Id='Logo_1024_1024_Png'/>
<ComponentRef Id='ProjectIco'/>
<ComponentRef Id='Project_256_256_Png'/>
<ComponentRef Id='Project_cdb_256_256_Png'/>
<ComponentRef Id='Project_vs_256_256_Png'/>
<ComponentRef Id='LicenseCss'/>
<ComponentRef Id='RefreshViewCss'/>
<ComponentRef Id='AutoRefreshPng'/>
<ComponentRef Id='RefreshPng'/>
<ComponentRef Id='SearchViewCss'/>
<ComponentRef Id='HomePng'/>
<ComponentRef Id='SearchPng'/>
<ComponentRef Id='StartscreenCss'/>
<ComponentRef Id='DotPng'/>
<ComponentRef Id='LoaderGif'/>
<ComponentRef Id='UndoRedoViewCss'/>
<ComponentRef Id='ArrowLeftPng'/>
<ComponentRef Id='ArrowRightPng'/>
<ComponentRef Id='WindowDotsPng'/>
<ComponentRef Id='WindowDotsHoverPng'/>
<ComponentRef Id='HelpPng'/>
<ComponentRef Id='HelpHoverPng'/>
<ComponentRef Id='ListboxCss'/>
<ComponentRef Id='LogoPng'/>
<ComponentRef Id='MinusPng'/>
<ComponentRef Id='MinusHoverPng'/>
<ComponentRef Id='PlusPng'/>
<ComponentRef Id='PlusHoverPng'/>
<ComponentRef Id='WindowRefreshPng'/>
<ComponentRef Id='RefreshHoverPng'/>
<ComponentRef Id='SizeGripPng'/>
<ComponentRef Id='WindowCss'/>
<ComponentRef Id='ColorSchemes'/>
<ComponentRef Id='FontSet'/>
<ComponentRef Id='UninstallBat'/>
<!-- AppData Folder Stuff -->
<ComponentRef Id='CoatiSoftwareAppDataDummy'/>
<ComponentRef Id='WindowSettingsIni'/>
<ComponentRef Id='ApplicationSettingsXml'/>
<!-- </Feature> -->
<!-- Sample Projects for AddData Folder -->
<!-- <Feature Id='SampleCode' Title='Samples' Description='Tutorial and Sample Project' Level='1000'> -->
<ComponentRef Id='SampleProjects'/>
<ComponentRef Id='TictactoeCoatiproject'/>
<ComponentRef Id='TictactoeCode'/>
<ComponentRef Id='TutorialCoatiproject'/>
<ComponentRef Id='TutorialCode'/>
</Feature>
</Feature>
<CustomAction Id='AlreadyUpdated' Error='[ProductName] is already up to date.' />
<CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is already installed' />
<InstallExecuteSequence>
<Custom Action='AlreadyUpdated' After='FindRelatedProducts'>SELFFOUND</Custom>
<Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom>
<Custom Action='SetupAppSettings' After='InstallFiles'>NOT Installed AND NOT PATCH</Custom>
<Custom Action='UninstallRemoveLogFolder' After='UnpublishComponents'>(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
</InstallExecuteSequence>
<!-- <UIRef Id="WixUI_InstallDir" /> -->
<UI Id="MyWixUI_InstallDir">
<UIRef Id="WixUI_InstallDir" />
<DialogRef Id="ShortcutDlg" />
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="ShortcutDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ShortcutDlg">1</Publish>
</UI>
<Property Id="WIXUI_INSTALLDIR" Value="COMPANYDIR" />
<UIRef Id="WixUI_ErrorProgressText" />
<Icon Id="Coati.ico" SourceFile="./../../../bin/app/data/gui/icon/coati.ico" />
<Icon Id="Project.ico" SourceFile="./../../../bin/app/data/gui/icon/project.ico" />
<WixVariable Id="WixUILicenseRtf" Value="./../../../bin/app/data/gui/installer/EULA.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="Images/banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="Images/w_installer.bmp" />
</Product>
</Wix>
@@ -0,0 +1,11 @@
<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Fragment>
<CustomAction Id='SetupAppSettings' BinaryKey='SetupAppSettingsBinary' DllEntry='Main' Execute='commit' Return='check'/>
<Binary Id='SetupAppSettingsBinary' SourceFile='SetupAppSettings.CA.dll'/>
<CustomAction Id='UninstallRemoveLogFolder' BinaryKey='UninstallRemoveLogFolderBinary' DllEntry='Main' Execute='commit' Return='check'/>
<Binary Id='UninstallRemoveLogFolderBinary' SourceFile='UninstallRemoveLogFolder.CA.dll'/>
</Fragment>
</Wix>
@@ -0,0 +1,40 @@
<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Fragment>
<UI>
<!-- <Property Id="DefaultUIFont">DlgFont8</Property> -->
<Dialog Id="ShortcutDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
<!-- <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="[BannerBitmap]" /> -->
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>{\DlgTitleFont}Create shortcuts</Text>
</Control>
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>Do you want to create shortcuts for Coati?</Text>
</Control>
<Control Id="DesktopShortcutCheckBox" Type="CheckBox" X="25" Y="50" Width="290" Height="17"
Property="INSTALLDESKTOPSHORTCUT" CheckBoxValue="1" Text="Create a shortcut for this program on the desktop." />
<Control Id="StartMenuShortcutCheckBox" Type="CheckBox" X="25" Y="73" Width="290" Height="17"
Property="INSTALLSTARTMENUSHORTCUT" CheckBoxValue="1" Text="Create a shortcut for this program in the Start Menu." />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&amp;Back">
<Publish Event="NewDialog" Value="InstallDirDlg">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="&amp;Next">
<Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
</Dialog>
<TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" />
<TextStyle Id="DlgTitleFont" FaceName="Tahoma" Size="8" Bold="yes" />
</UI>
</Fragment>
</Wix>
+393
View File
@@ -0,0 +1,393 @@
<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Fragment>
<DirectoryRef Id='INSTALLDIR'>
<Component Id='MainExecutable' Guid='A6136907-B3C5-4393-88D7-2ACF63E138A8'>
<File Id='CoatiEXE' Name='Coati.exe' DiskId='1' Source='./../../../bin/app/Release/Coati.exe' KeyPath='yes' />
<!-- File association -->
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\[ProductName].Document" Name="projectfile" Value="Coati project file" Type="string" />
<ProgId Id='Coati.coatiprojectfile' Description='Coati project file' Advertise='yes' Icon='Project.ico'>
<Extension Id='coatiproject'> <!-- ContentType='application/coatiproject' Advertise='no' -->
<Verb Id='open' Command='Open' Argument='"%1"' />
<MIME Advertise='yes' ContentType='application/coatiproject' Default='yes' />
</Extension>
</ProgId>
</Component>
<Component Id='Qt5CoreDll' Guid='0C899A49-DE40-4D35-A0E9-9B64E330BCFA'>
<File Id='qt5coreDLL' Name='Qt5Core.dll' DiskId='1' Source='./../../../bin/app/Release/Qt5Core.dll' KeyPath='yes' />
</Component>
<Component Id='Qt5GuiDll' Guid='F57A8F21-7420-49BC-98B9-2ECD3C5B9674'>
<File Id='qt5guiDLL' Name='Qt5Gui.dll' DiskId='1' Source='./../../../bin/app/Release/Qt5Gui.dll' KeyPath='yes' />
</Component>
<Component Id='Qt5NetworkDll' Guid='78E8699E-42EA-48BD-B844-DD0F9C0ED432'>
<File Id='qt5networkDLL' Name='Qt5Network.dll' DiskId='1' Source='./../../../bin/app/Release/Qt5Network.dll' KeyPath='yes' />
</Component>
<Component Id='Qt5WidgetsDll' Guid='462F10F3-6AC7-473C-95EA-C5616E2822A3'>
<File Id='qt5widgetsDLL' Name='Qt5Widgets.dll' DiskId='1' Source='./../../../bin/app/Release/Qt5Widgets.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtConvert_l1_1_0Dll' Guid='947B7587-3C4D-4706-BFE2-F3FAC60D7AC0'>
<File Id='apiMsWinCrtConvert_l1_1_0' Name='api-ms-win-crt-convert-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-convert-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtEnvironment_l1_1_0Dll' Guid='105CDF55-7DC2-40D3-9F0D-9327EB5972DC'>
<File Id='apiMsWinCrtEnvironment_l1_1_0' Name='api-ms-win-crt-environment-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-environment-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtFilesystem_l1_1_0Dll' Guid='C68E183F-6346-4B67-AE41-880A7CB696D5'>
<File Id='apiMsWinCrtFilesystem_l1_1_0' Name='api-ms-win-crt-filesystem-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-filesystem-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtHeap_l1_1_0Dll' Guid='0CC58622-7280-48E8-92B5-8E2329449215'>
<File Id='apiMsWinCrtHeap_l1_1_0' Name='api-ms-win-crt-heap-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-heap-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtLocale_l1_1_0Dll' Guid='50833B74-8A48-4994-A176-A28BFBBAEFC1'>
<File Id='apiMsWinCrtLocale_l1_1_0' Name='api-ms-win-crt-locale-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-locale-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtMath_l1_1_0Dll' Guid='9A608BBB-3152-4B1D-BFD4-E5D6A10039BB'>
<File Id='apiMsWinCrtMath_l1_1_0' Name='api-ms-win-crt-math-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-math-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtRuntime_l1_1_0Dll' Guid='48419CF9-BFE3-4B48-BC44-B4A610E0DAA1'>
<File Id='apiMsWinCrtRuntime_l1_1_0' Name='api-ms-win-crt-runtime-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-runtime-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtStdio_l1_1_0Dll' Guid='DFD68FED-5E68-46DF-A015-999B0A0C1008'>
<File Id='apiMsWinCrtStdio_l1_1_0' Name='api-ms-win-crt-stdio-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-stdio-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtString_l1_1_0Dll' Guid='6A3BF854-00C7-4813-BFE9-3BD4C2A3A0AB'>
<File Id='apiMsWinCrtString_l1_1_0' Name='api-ms-win-crt-string-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-string-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtTime_l1_1_0Dll' Guid='AB413622-275D-4D37-976D-4BD04DCCCE91'>
<File Id='apiMsWinCrtTime_l1_1_0' Name='api-ms-win-crt-time-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-time-l1-1-0.dll' KeyPath='yes' />
</Component>
<Component Id='apiMsWinCrtUtility_l1_1_0Dll' Guid='40F5F1AA-1849-45F2-A15F-816CE20AFECB'>
<File Id='apiMsWinCrtUtility_l1_1_0' Name='api-ms-win-crt-utility-l1-1-0.dll' DiskId='1' Source='./../../../bin/app/Release/api-ms-win-crt-utility-l1-1-0.dll' KeyPath='yes' />
</Component>
<Directory Id='Platforms' Name='platforms'>
<Component Id='QWindowsDll' Guid='0B57B111-1068-42D1-891B-A21C6C0CC63E'>
<File Id='qwindowsDLL' Name='qwindows.dll' DiskId='1' Source='./../../../bin/app/Release/platforms/qwindows.dll' KeyPath='yes' />
</Component>
</Directory>
<Directory Id='LieutenantCommanderData' Name='data'>
<Directory Id='DataFonts' Name='fonts'>
<Component Id='FontSet' Guid='F5330EDB-A1E2-4B1D-BBA3-A65DAFE34814'>
<File Id='FiraSansLicensetxt' Name='FiraSans_License.txt' DiskId='1' Source='./../../../bin/app/data/fonts/FiraSans_License.txt' KeyPath='yes' />
<File Id='FiraSansRegularotf' Name='FiraSans-Regular.otf' DiskId='1' Source='./../../../bin/app/data/fonts/FiraSans-Regular.otf' KeyPath='no' />
<File Id='FiraSansSemiBoldotf' Name='FiraSans-SemiBold.otf' DiskId='1' Source='./../../../bin/app/data/fonts/FiraSans-SemiBold.otf' KeyPath='no' />
<File Id='RobotoLicensetxt' Name='Roboto_License.txt' DiskId='1' Source='./../../../bin/app/data/fonts/Roboto_License.txt' KeyPath='no' />
<File Id='RobotoBoldttf' Name='Roboto-Bold.ttf' DiskId='1' Source='./../../../bin/app/data/fonts/Roboto-Bold.ttf' KeyPath='no' />
<File Id='RobotoRegularttf' Name='Roboto-Regular.ttf' DiskId='1' Source='./../../../bin/app/data/fonts/Roboto-Regular.ttf' KeyPath='no' />
<File Id='SourceCodeProLicensetxt' Name='SourceCodePro_License.txt' DiskId='1' Source='./../../../bin/app/data/fonts/SourceCodePro_License.txt' KeyPath='no' />
<File Id='SourceCodeProBoldotf' Name='SourceCodePro-Bold.otf' DiskId='1' Source='./../../../bin/app/data/fonts/SourceCodePro-Bold.otf' KeyPath='no' />
<File Id='SourceCodeProMediumotf' Name='SourceCodePro-Medium.otf' DiskId='1' Source='./../../../bin/app/data/fonts/SourceCodePro-Medium.otf' KeyPath='no' />
<File Id='SourceCodeProRegularotf' Name='SourceCodePro-Regular.otf' DiskId='1' Source='./../../../bin/app/data/fonts/SourceCodePro-Regular.otf' KeyPath='no' />
</Component>
</Directory>
<Directory Id='DataColorSchemes' Name='color_schemes'>
<Component Id='ColorSchemes' Guid='D6F2E227-6442-4415-B2F6-050E2A142D09'>
<File Id='badRainbowXml' Name='bad_rainbow.xml' DiskId='1' Source='./../../../bin/app/data/color_schemes/bad_rainbow.xml' KeyPath='yes' />
<File Id='brightXml' Name='bright.xml' DiskId='1' Source='./../../../bin/app/data/color_schemes/bright.xml' KeyPath='no' />
<File Id='darkXml' Name='dark.xml' DiskId='1' Source='./../../../bin/app/data/color_schemes/dark.xml' KeyPath='no' />
</Component>
</Directory>
<Directory Id='DataGui' Name='gui'>
<Component Id='MainCss' Guid='70C63F6F-C13B-4EDA-94D4-7884A8BEFA55'>
<File Id='Main' Name='main.css' DiskId='1' Source='./../../../bin/app/data/gui/main.css' KeyPath='yes' />
</Component>
<Component Id='SplashBluePng' Guid='914A5336-8D25-4748-8874-AF78A7A2669E'>
<File Id='SplashBlue' Name='splash_blue.png' DiskId='1' Source='./../../../bin/app/data/gui/splash_blue.png' KeyPath='yes' />
</Component>
<Component Id='SplashWhitePng' Guid='0567B438-1770-4201-B040-E63480544315'>
<File Id='SplashWhite' Name='splash_white.png' DiskId='1' Source='./../../../bin/app/data/gui/splash_white.png' KeyPath='yes' />
</Component>
<Directory Id='DataAbout' Name='about'>
<Component Id='AboutCss' Guid='137816FE-E17E-47FF-8826-FBD74E4E5BB7'>
<File Id='About' Name='splash_white.png' DiskId='1' Source='./../../../bin/app/data/gui/about/about.css' KeyPath='yes' />
</Component>
<Component Id='IconClosePng' Guid='42FE1C4F-B78E-49C5-91F2-FBCA584B802E'>
<File Id='IconClose' Name='icon_close.png' DiskId='1' Source='./../../../bin/app/data/gui/about/icon_close.png' KeyPath='yes' />
</Component>
<Component Id='LogoAwsPng' Guid='B20C4EB0-1782-4575-A653-F48DE9D9C4B8'>
<File Id='LogoAws' Name='logo_aws.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_aws.png' KeyPath='yes' />
</Component>
<Component Id='LogoCoatiPng' Guid='3ACD90D9-6099-4E95-AD99-AF7CD695BEB9'>
<File Id='LogoCoati' Name='logo_coati.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_coati.png' KeyPath='yes' />
</Component>
<Component Id='LogoFhsPng' Guid='1CEBF789-6E41-4E33-A04B-5B809343C665'>
<File Id='LogoFhs' Name='logo_fhs.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_fhs.png' KeyPath='yes' />
</Component>
</Directory>
<Directory Id='DataCodeView' Name='code_view'>
<Component Id='CodeViewCss' Guid='D880FDCE-037E-4401-95D5-38D4472C9A47'>
<File Id='CodeView' Name='code_view.css' DiskId='1' Source='./../../../bin/app/data/gui/code_view/code_view.css' KeyPath='yes' />
</Component>
<Directory Id='DataCodeViewImages' Name='images'>
<Component Id='EditPng' Guid='09F23361-CE52-4D04-8E3D-34821EBF57B3'>
<File Id='Edit' Name='edit.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/edit.png' KeyPath='yes' />
</Component>
<Component Id='MaximizeActivePng' Guid='9B88537F-5FB8-4066-AD68-BE7DA72B935D'>
<File Id='MaximizeActive' Name='maximize_active.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/maximize_active.png' KeyPath='yes' />
</Component>
<Component Id='MaximizeInactivePng' Guid='77B2BF1E-3692-458E-8320-05865EE810F7'>
<File Id='MaximizeInactive' Name='maximize_inactive.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/maximize_inactive.png' KeyPath='yes' />
</Component>
<Component Id='MinimizeActivePng' Guid='572C5209-BF5C-470B-9586-35895D273B71'>
<File Id='MinimizeActive' Name='minimize_active.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/minimize_active.png' KeyPath='yes' />
</Component>
<Component Id='MinimizeInactivePng' Guid='0C8E74E5-7BF3-4AC7-BE87-EBD3C43491ED'>
<File Id='MinimizeInactive' Name='minimize_inactive.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/minimize_inactive.png' KeyPath='yes' />
</Component>
<Component Id='PatternPng' Guid='400BD0CD-3309-497E-9135-7E34C45B4A8E'>
<File Id='Pattern' Name='pattern.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/pattern.png' KeyPath='yes' />
</Component>
<Component Id='SnippetActivePng' Guid='59121177-A2D9-4A9E-BF92-EFA3CA0955D2'>
<File Id='SnippetActive' Name='snippet_active.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/snippet_active.png' KeyPath='yes' />
</Component>
<Component Id='SnippetInactivePng' Guid='EA3522FC-EF33-4732-8F93-586985EB0549'>
<File Id='SnippetInactive' Name='snippet_inactive.png' DiskId='1' Source='./../../../bin/app/data/gui/code_view/images/snippet_inactive.png' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id='DataGraphView' Name='graph_view'>
<Component Id='GraphViewCss' Guid='BC8CDF1A-5831-4686-927C-C9E26ED85A3B'>
<File Id='GraphView' Name='graph_view.css' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/graph_view.css' KeyPath='yes' />
</Component>
<Directory Id='DataGraphViewImages' Name='images'>
<Component Id='ArrowPng' Guid='EEC8C2CE-A647-4640-81DB-8297C46355E8'>
<File Id='Arrow' Name='arrow.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/arrow.png' KeyPath='yes' />
</Component>
<Component Id='BundlePng' Guid='67CA6A53-7DEA-48F1-9BD3-2CFA65AB554E'>
<File Id='Bundle' Name='bundle.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/bundle.png' KeyPath='yes' />
</Component>
<Component Id='Enum_1Png' Guid='E7F21BA5-8C3A-4373-B636-7BDA0475C96F'>
<File Id='Enum_1' Name='enum_1.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/enum_1.png' KeyPath='yes' />
</Component>
<Component Id='Enum_2Png' Guid='E9AC8702-7D24-4F8B-A3E3-03DF584017F6'>
<File Id='Enum_2' Name='enum_2.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/enum_2.png' KeyPath='yes' />
</Component>
<Component Id='FilePng' Guid='72DA9267-AFB9-46B3-996E-67116FB6852E'>
<File Id='File' Name='file.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/file.png' KeyPath='yes' />
</Component>
<Component Id='Macro_1Png' Guid='FC845B09-C5E6-40D0-9F21-6C5F901B5A00'>
<File Id='Macro_1' Name='macro_1.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/macro_1.png' KeyPath='yes' />
</Component>
<Component Id='Macro_2Png' Guid='3E769590-29C4-4245-99EE-559C9AFD59AE'>
<File Id='Macro_2' Name='macro_2.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/macro_2.png' KeyPath='yes' />
</Component>
<Component Id='Macro_3Png' Guid='7164912E-53B8-472E-B756-1315A187CFE2'>
<File Id='Macro_3' Name='macro_3.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/macro_3.png' KeyPath='yes' />
</Component>
<Component Id='GraphPatternPng' Guid='80B2562B-3DB0-42DA-B68A-B43120646EBA'>
<File Id='GraphPattern' Name='pattern.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/pattern.png' KeyPath='yes' />
</Component>
<Component Id='PrivatePng' Guid='E7FC3AAE-634F-4012-9AE4-41598C303183'>
<File Id='Private' Name='private.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/private.png' KeyPath='yes' />
</Component>
<Component Id='ProtectedPng' Guid='D7EE1C80-C68E-42BB-B16F-F114DA635BB9'>
<File Id='Protected' Name='protected.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/protected.png' KeyPath='yes' />
</Component>
<Component Id='PublicPng' Guid='66E2CB4C-A9D8-4450-B630-393009D021A1'>
<File Id='Public' Name='public.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/public.png' KeyPath='yes' />
</Component>
<Component Id='TemplatePng' Guid='0CEF2BCE-C9C8-417A-89E9-8CB6478C4E89'>
<File Id='Template' Name='template.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/template.png' KeyPath='yes' />
</Component>
<Component Id='Typedef_1Png' Guid='47CC3CCE-9912-4039-B9DF-4BCC9F891700'>
<File Id='Typedef_1' Name='typedef_1.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/typedef_1.png' KeyPath='yes' />
</Component>
<Component Id='Typedef_2Png' Guid='6C65CE19-EBE1-4611-9E21-45A91B0C1B77'>
<File Id='Typedef_2' Name='typedef_2.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/typedef_2.png' KeyPath='yes' />
</Component>
<Component Id='Typedef_3Png' Guid='CDEF6B3F-AA7C-4BB0-B327-5448D84AF42C'>
<File Id='Typedef_3' Name='typedef_3.png' DiskId='1' Source='./../../../bin/app/data/gui/graph_view/images/typedef_3.png' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id='DataIcon' Name='icon'>
<Component Id='CoatiIco' Guid='9D65B057-EA87-4251-8898-9FAD23AD3371'>
<File Id='Coati' Name='coati.ico' DiskId='1' Source='./../../../bin/app/data/gui/icon/coati.ico' KeyPath='yes' />
</Component>
<Component Id='Logo_1024_1024_Png' Guid='4A25272C-380F-4414-BFBA-06C92D19B116'>
<File Id='Logo_1024_1024' Name='logo_1024_1024.png' DiskId='1' Source='./../../../bin/app/data/gui/icon/logo_1024_1024.png' KeyPath='yes' />
</Component>
<Component Id='ProjectIco' Guid='CDAC3217-C104-4D88-98F9-C138825721D4'>
<File Id='Project' Name='project.ico' DiskId='1' Source='./../../../bin/app/data/gui/icon/project.ico' KeyPath='yes' />
</Component>
<Component Id='Project_256_256_Png' Guid='AD536928-0DE5-49BC-B33C-D1A9E9DDB74D'>
<File Id='Project_256_256' Name='project_256_256.png' DiskId='1' Source='./../../../bin/app/data/gui/icon/project_256_256.png' KeyPath='yes' />
</Component>
<Component Id='Project_cdb_256_256_Png' Guid='72B4E345-88E0-4BE9-AC94-94947EE2E9B5'>
<File Id='Project_cdb_256_256' Name='project_cdb_256_256.png' DiskId='1' Source='./../../../bin/app/data/gui/icon/project_cdb_256_256.png' KeyPath='yes' />
</Component>
<Component Id='Project_vs_256_256_Png' Guid='DA7698DC-8E10-4168-9E45-4B8ED48CC49F'>
<File Id='Project_vs_256_256' Name='project_vs_256_256.png' DiskId='1' Source='./../../../bin/app/data/gui/icon/project_vs_256_256.png' KeyPath='yes' />
</Component>
</Directory>
<Directory Id='DataLicense' Name='license'>
<Component Id='LicenseCss' Guid='3A9B9310-10B0-477E-A1D8-027666F22476'>
<File Id='License' Name='license.css' DiskId='1' Source='./../../../bin/app/data/gui/license/license.css' KeyPath='yes' />
</Component>
</Directory>
<Directory Id='DataRefreshView' Name='refresh_view'>
<Component Id='RefreshViewCss' Guid='8AF888D9-BC4B-4AC3-8E2C-20B74F82A888'>
<File Id='RefreshView' Name='refresh_view.css' DiskId='1' Source='./../../../bin/app/data/gui/refresh_view/refresh_view.css' KeyPath='yes' />
</Component>
<Directory Id='DataRefreshViewImages' Name='images'>
<Component Id='AutoRefreshPng' Guid='BA036858-6511-4260-9F58-E2BF30DACF25'>
<File Id='AutoRefresh' Name='auto_refresh.png' DiskId='1' Source='./../../../bin/app/data/gui/refresh_view/images/auto_refresh.png' KeyPath='yes' />
</Component>
<Component Id='RefreshPng' Guid='AD5F7B6B-0373-4207-B053-16293FC4C631'>
<File Id='Refresh' Name='refresh.png' DiskId='1' Source='./../../../bin/app/data/gui/refresh_view/images/refresh.png' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id='DataSearchView' Name='search_view'>
<Component Id='SearchViewCss' Guid='77634E10-B955-48E1-BA12-12C1FA131C00'>
<File Id='SearchView' Name='search_view.css' DiskId='1' Source='./../../../bin/app/data/gui/search_view/search_view.css' KeyPath='yes' />
</Component>
<Directory Id='DataSearchViewImages' Name='images'>
<Component Id='HomePng' Guid='1D00476F-52C2-47F9-8A27-B583D9499311'>
<File Id='Home' Name='home.png' DiskId='1' Source='./../../../bin/app/data/gui/search_view/images/home.png' KeyPath='yes' />
</Component>
<Component Id='SearchPng' Guid='A7B6B305-1B68-4085-9ED9-EF0DCD810116'>
<File Id='Search' Name='search.png' DiskId='1' Source='./../../../bin/app/data/gui/search_view/images/search.png' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id='DataStartScreen' Name='startscreen'>
<Component Id='StartscreenCss' Guid='9D3496D5-735A-4686-ADE9-DEB19DF69045'>
<File Id='Startscreen' Name='startscreen.css' DiskId='1' Source='./../../../bin/app/data/gui/startscreen/startscreen.css' KeyPath='yes' />
</Component>
</Directory>
<Directory Id='DataStatusbarView' Name='statusbar_view'>
<Component Id='DotPng' Guid='7F7173DC-E888-4F03-82CC-3DD86BF402C4'>
<File Id='Dot' Name='dot.png' DiskId='1' Source='./../../../bin/app/data/gui/statusbar_view/dot.png' KeyPath='yes' />
</Component>
<Component Id='LoaderGif' Guid='E0F92524-DDE8-442E-9AD6-A1B2123A979F'>
<File Id='Loader' Name='loader.gif' DiskId='1' Source='./../../../bin/app/data/gui/statusbar_view/loader.gif' KeyPath='yes' />
</Component>
</Directory>
<Directory Id='DataUndoRedoView' Name='undoredo_view'>
<Component Id='UndoRedoViewCss' Guid='4B2A3FB0-C8F4-4FFE-AE49-93204C35506C'>
<File Id='UndoRedoView' Name='undoredo_view.css' DiskId='1' Source='./../../../bin/app/data/gui/undoredo_view/undoredo_view.css' KeyPath='yes' />
</Component>
<Directory Id='DataUndoRedoViewImages' Name='images'>
<Component Id='ArrowLeftPng' Guid='71CD283C-88A6-4E3A-B3BD-D9F94B835875'>
<File Id='ArrowLeft' Name='arrow_left.png' DiskId='1' Source='./../../../bin/app/data/gui/undoredo_view/images/arrow_left.png' KeyPath='yes' />
</Component>
<Component Id='ArrowRightPng' Guid='95C3B2B2-4411-4086-A75B-2E03B7A3119F'>
<File Id='ArrowRight' Name='arrow_right.png' DiskId='1' Source='./../../../bin/app/data/gui/undoredo_view/images/arrow_right.png' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id='DataWindow' Name='window'>
<Component Id='WindowDotsPng' Guid='CA2C89C9-91E3-4755-B7BB-DA2253807784'>
<File Id='WindowDots' Name='dots.png' DiskId='1' Source='./../../../bin/app/data/gui/window/dots.png' KeyPath='yes' />
</Component>
<Component Id='WindowDotsHoverPng' Guid='794B67FC-4E6D-4C26-B823-90981BA377BC'>
<File Id='WindowDotsHover' Name='dots_hover.png' DiskId='1' Source='./../../../bin/app/data/gui/window/dots_hover.png' KeyPath='yes' />
</Component>
<Component Id='HelpPng' Guid='0C8176BC-3976-4DF4-815E-B8D149856DD5'>
<File Id='Help' Name='help.png' DiskId='1' Source='./../../../bin/app/data/gui/window/help.png' KeyPath='yes' />
</Component>
<Component Id='HelpHoverPng' Guid='9DB32AA5-AE80-43AC-B2AE-6043BF5E41BB'>
<File Id='HelpHover' Name='help_hover.png' DiskId='1' Source='./../../../bin/app/data/gui/window/help_hover.png' KeyPath='yes' />
</Component>
<Component Id='ListboxCss' Guid='ABA6E005-3E7D-4C08-8008-2F08F92C6196'>
<File Id='Listbox' Name='listbox.css' DiskId='1' Source='./../../../bin/app/data/gui/window/listbox.css' KeyPath='yes' />
</Component>
<Component Id='LogoPng' Guid='F136A7ED-FC0D-40AB-8BC0-B95CA9C3C0F1'>
<File Id='Logo' Name='logo.png' DiskId='1' Source='./../../../bin/app/data/gui/window/logo.png' KeyPath='yes' />
</Component>
<Component Id='MinusPng' Guid='4D8D904E-60C2-499F-865F-56B1A88AE13C'>
<File Id='Minus' Name='minus.png' DiskId='1' Source='./../../../bin/app/data/gui/window/minus.png' KeyPath='yes' />
</Component>
<Component Id='MinusHoverPng' Guid='DC6A016A-4FB3-48A3-ABB1-33534D2188D0'>
<File Id='MinusHover' Name='minus_hover.png' DiskId='1' Source='./../../../bin/app/data/gui/window/minus_hover.png' KeyPath='yes' />
</Component>
<Component Id='PlusPng' Guid='4A6C90C5-929B-4759-BCF1-7EA36F588BA3'>
<File Id='Plus' Name='plus.png' DiskId='1' Source='./../../../bin/app/data/gui/window/plus.png' KeyPath='yes' />
</Component>
<Component Id='PlusHoverPng' Guid='BF773D9C-1C21-4949-8D9C-0A35F7ADBAC3'>
<File Id='PlusHover' Name='plus_hover.png' DiskId='1' Source='./../../../bin/app/data/gui/window/plus_hover.png' KeyPath='yes' />
</Component>
<Component Id='WindowRefreshPng' Guid='B562009C-EDFA-4CD9-AD70-906A3CE60FC0'>
<File Id='WindowRefresh' Name='refresh.png' DiskId='1' Source='./../../../bin/app/data/gui/window/refresh.png' KeyPath='yes' />
</Component>
<Component Id='RefreshHoverPng' Guid='5F2FFEC8-149F-4AA4-8935-6EED3093DE23'>
<File Id='RefreshHover' Name='refresh_hover.png' DiskId='1' Source='./../../../bin/app/data/gui/window/refresh_hover.png' KeyPath='yes' />
</Component>
<Component Id='SizeGripPng' Guid='0AD61462-31E3-40EE-B6BB-7509C48C6816'>
<File Id='SizeGrip' Name='size_grip.png' DiskId='1' Source='./../../../bin/app/data/gui/window/size_grip.png' KeyPath='yes' />
</Component>
<Component Id='WindowCss' Guid='C9BDB09F-7278-41BA-BF3B-AD335B7FB129'>
<File Id='Window' Name='window.css' DiskId='1' Source='./../../../bin/app/data/gui/window/window.css' KeyPath='yes' />
</Component>
</Directory>
</Directory>
</Directory>
<Component Id='UninstallBat' Guid='75D67FBD-06C8-4D3C-AE1D-4802456F4466'>
<File Id='Uninstall' Name='uninstall.bat' DiskId='1' Source='./../../../bin/app/data/install/uninstall_wix.bat' KeyPath='yes' />
</Component>
</DirectoryRef>
</Fragment>
</Wix>
@@ -0,0 +1 @@
msiexec /i coati.msi REINSTALL=ALL REINSTALLMODE=vomus /l*v installLog.txt
+91
View File
@@ -0,0 +1,91 @@
-------------------
Build the installer
-------------------
-Prerequisites
-Install the WiX toolset...
- http://wixtoolset.org/releases/
-I used stable version 3.10.3 for development
-make sure the WiX directory is in you OS path variable ('..\WiX Toolset v3.10\bin')
-Coati has to be built with the 'deploy' flag
-installer would still build if the deploy flag wasnt set, but the Coati wont run properly on a user machine
-Execute build.bat
-This will build coati.msi file, all needed custom action dlls and the setup.exe file
-setup.exe and coati.msi are needed to install
-setup.exe checks whether coati is installed and will either start the initial installation or the upgrade installation
---------------------
Update Version Number
---------------------
-See below (Create new Version)
---------------------------------------------------
Add new components (e.g. files) to the installation
---------------------------------------------------
[description]
-xml elements are described as follows:
-To do X use tag <tag>
-attribute: attribute description
-...
Generel
-to add a file create a <Component> element
-mind the <Directory> tags, they define where the component will be installed. Add new directories if necessary
-Id: the directory will be refered to within the wix project using this id
-Name: the name of the folder that will be created on the user machine
-Id: is used to refer to the component within the wix project
-Guid: GUIDs are unique id's used by windows to identify and refer to installed files, applications and so on. You need to create a new GUID for every new component
Visual Studio can create GUIDs (Tools->Create GUID), or just google for a tool
It's reasonably safe to assume that every newly created GUID is unique
-Add a file to component using the <File> tag
-Id: guess what...
-Name: the name that the file will have on the user machine, may be different from the file name on the source machine
-Source: the path and name to the file on the source machine, relative to the current .wxs file
-KeyPath: depends on where you want to install the file, see below
-usually there is one component for each single file. Multiple files can be added to a component, this might make sense if the files are considered 100% unseperable. The recommended way however is one file per component
Add new file to the installation directory (installDir.wxs)
-static files that must not be changed go here
-just like above, with KeyPath='yes'
-if there are more files in a component, only one file has the KeyPath attribute
Add new file to the user folder (appDataDir.wxs)
-files that will be changed by coati or the user should be put here
-needs a RegistryKey element within the component element to provide the KeyPath
- <RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\>yourKeyNameHere<" Root="HKCU" >
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
</RegistryKey>
Not quite done yet! (coati.wxs)
-components need to be added to a feature (a feature is part of a software, consisting of components, that may or may not be installed during setup)
-right now we only have the Complete/Program feature, so no part of coati is optional right now
-to add a component to a feature use the <ComponentRef> tag
-Id: id of the component you want to refere to
------------------
Create new version
------------------
Minor upgrage (coati.wxs)
-for when only a few files are to be updated
-update the Version attribute of the <Product> tag (root element of the installation)
-update the Minimum and Maximum attributes under the <Upgrade> tag to the current version number
-do NOT change the product GUID
-the package GUID has to change, that happens automatically though so don't worry 'bout it
Major upgrade (coati.wxs)
-for big changes, like a new major version
-update the Version attribute of the <Product> tag (root element of the installation)
-update the Minimum and Maximum attributes under the <Upgrade> tag to the current version number
-DO change the product GUID
-package GUID changes too, but thats again done automatically
+4
View File
@@ -107,6 +107,10 @@ echo -e "$INFO building the installer (trail)"
"D:/programme/Microsoft Visual Studio14/Common7/IDE/devenv.com" deployment/windows/CoatiTrialSetup/CoatiTrialSetup.sln //build Release //project deployment/windows/CoatiTrialSetup/CoatiSetup/CoatiSetup.vdproj
# BUILDING WIX INSTALLERS
call deployment/windows/wixSetup/build.bat
# EDIT THE INSTALLERS
"C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin/MsiTran.Exe" -a "deployment/windows/transform.mst" "deployment/windows/CoatiAppSetup/CoatiSetup/Release/Coati.msi"
"C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin/MsiTran.Exe" -a "deployment/windows/transform.mst" "deployment/windows/CoatiTrialSetup/CoatiSetup/Release/CoatiTrial.msi"