build: windows deploy
* implemented a new deploy script for windows * created a new setup project for the Coati Trail
This commit is contained in:
+24
-20
@@ -31,27 +31,8 @@
|
||||
/ide_plugins/vs/vs2012/CoatiPlugin/CoatiPlugin/bin
|
||||
/ide_plugins/vs/vs2012/CoatiPlugin/CoatiPlugin/obj
|
||||
|
||||
.clang_complete
|
||||
|
||||
*.coatidb
|
||||
|
||||
/deployment/windows/CoatiSetup/CoatiSetup/Debug
|
||||
/deployment/windows/CoatiSetup/CoatiSetup/Release
|
||||
|
||||
/deployment/windows/CoatiSetup/CoatiSetup.v12.suo
|
||||
|
||||
/deployment/windows/CoatiSetup/SetupApplicationSettingsLib/bin/
|
||||
/deployment/windows/CoatiSetup/SetupApplicationSettingsLib/obj/
|
||||
|
||||
/deployment/windows/CoatiSetup/SetupCreateDesktopShortcutLib/bin/
|
||||
/deployment/windows/CoatiSetup/SetupCreateDesktopShortcutLib/obj/
|
||||
|
||||
/deployment/windows/CoatiSetup/SetupCreateStartMenuShortcutLib/bin/
|
||||
/deployment/windows/CoatiSetup/SetupCreateStartMenuShortcutLib/obj/
|
||||
|
||||
/deployment/windows/CoatiSetup/SetupRemoveCacheFiles/bin/
|
||||
/deployment/windows/CoatiSetup/SetupRemoveCacheFiles/obj/
|
||||
|
||||
*.suo
|
||||
*.sqlite
|
||||
*.pch
|
||||
*.swp
|
||||
@@ -60,3 +41,26 @@
|
||||
.ycm_extra_conf.py
|
||||
.ycm_extra_conf.pyc
|
||||
compile_commands.json
|
||||
|
||||
/deployment/windows/CoatiAppSetup/CoatiSetup/Debug
|
||||
/deployment/windows/CoatiAppSetup/CoatiSetup/Release
|
||||
/deployment/windows/CoatiAppSetup/SetupApplicationSettingsLib/bin/
|
||||
/deployment/windows/CoatiAppSetup/SetupApplicationSettingsLib/obj/
|
||||
/deployment/windows/CoatiAppSetup/SetupCreateDesktopShortcutLib/bin/
|
||||
/deployment/windows/CoatiAppSetup/SetupCreateDesktopShortcutLib/obj/
|
||||
/deployment/windows/CoatiAppSetup/SetupCreateStartMenuShortcutLib/bin/
|
||||
/deployment/windows/CoatiAppSetup/SetupCreateStartMenuShortcutLib/obj/
|
||||
/deployment/windows/CoatiAppSetup/SetupRemoveCacheFiles/bin/
|
||||
/deployment/windows/CoatiAppSetup/SetupRemoveCacheFiles/obj/
|
||||
|
||||
/deployment/windows/CoatiTrialSetup/CoatiSetup/Debug
|
||||
/deployment/windows/CoatiTrialSetup/CoatiSetup/Release
|
||||
/deployment/windows/CoatiTrialSetup/SetupApplicationSettingsLib/bin/
|
||||
/deployment/windows/CoatiTrialSetup/SetupApplicationSettingsLib/obj/
|
||||
/deployment/windows/CoatiTrialSetup/SetupCreateDesktopShortcutLib/bin/
|
||||
/deployment/windows/CoatiTrialSetup/SetupCreateDesktopShortcutLib/obj/
|
||||
/deployment/windows/CoatiTrialSetup/SetupCreateStartMenuShortcutLib/bin/
|
||||
/deployment/windows/CoatiTrialSetup/SetupCreateStartMenuShortcutLib/obj/
|
||||
/deployment/windows/CoatiTrialSetup/SetupRemoveCacheFiles/bin/
|
||||
/deployment/windows/CoatiTrialSetup/SetupRemoveCacheFiles/obj/
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
%windir%\system32\msiexec.exe /I{5DF07CC0-F774-4C4F-9397-0A749A22AB03}
|
||||
@@ -0,0 +1,8 @@
|
||||
[General]
|
||||
DOCK_LOCATIONS=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\x2\0\0\a\x80\0\0\x3\xcf\xfc\x1\0\0\0\x2\xfc\0\0\0\0\0\0\x3\xb0\0\0\x1$\0\xff\xff\xff\xfc\x2\0\0\0\x2\xfb\0\0\0\x14\0\x44\0o\0\x63\0k\0S\0\x65\0\x61\0r\0\x63\0h\x1\0\0\0\x14\0\0\0X\0\0\0\x44\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0G\0r\0\x61\0p\0h\x1\0\0\0p\0\0\x3s\0\0\0]\0\xff\xff\xff\xfb\0\0\0\x10\0\x44\0o\0\x63\0k\0\x43\0o\0\x64\0\x65\x1\0\0\x3\xb4\0\0\x3\xcc\0\0\0P\0\xff\xff\xff\0\0\a\x80\0\0\0\0\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
|
||||
|
||||
[MainWindow]
|
||||
maximized=true
|
||||
size=@Size(1287 811)
|
||||
position=@Point(259 117)
|
||||
showTitleBars=true
|
||||
+1132
-822
File diff suppressed because it is too large
Load Diff
+74
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{91EE9087-7809-4289-AEC8-4DFB20679A74}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SetupCreateDesktopShortcutLib</RootNamespace>
|
||||
<AssemblyName>SetupCreateDesktopShortcutLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CreateDesktopShortcut.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CreateDesktopShortcut.Designer.cs">
|
||||
<DependentUpon>CreateDesktopShortcut.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="IWshRuntimeLibrary">
|
||||
<Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="ClassDiagram1.cd" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,46 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CoatiSetup", "CoatiSetup\CoatiSetup.vdproj", "{6C8E6C92-1F24-4DDA-A7A6-F9141DE3A34F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetupCreateDesktopShortcutLib", "SetupCreateDesktopShortcutLib\SetupCreateDesktopShortcutLib.csproj", "{91EE9087-7809-4289-AEC8-4DFB20679A74}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetupApplicationSettingsLib", "SetupApplicationSettingsLib\SetupApplicationSettingsLib.csproj", "{DF25B11F-6190-4605-9D32-BA7F545D624B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetupCreateStartMenuShortcutLib", "SetupCreateStartMenuShortcutLib\SetupCreateStartMenuShortcutLib.csproj", "{962F7DA5-AEA1-4D03-89FD-F9AC42C24E46}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetupRemoveCacheFiles", "SetupRemoveCacheFiles\SetupRemoveCacheFiles.csproj", "{CEA97AC9-7B4C-42D4-9CD3-E05C0A0473F5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6C8E6C92-1F24-4DDA-A7A6-F9141DE3A34F}.Debug|Any CPU.ActiveCfg = Debug
|
||||
{6C8E6C92-1F24-4DDA-A7A6-F9141DE3A34F}.Debug|Any CPU.Build.0 = Debug
|
||||
{6C8E6C92-1F24-4DDA-A7A6-F9141DE3A34F}.Release|Any CPU.ActiveCfg = Release
|
||||
{6C8E6C92-1F24-4DDA-A7A6-F9141DE3A34F}.Release|Any CPU.Build.0 = Release
|
||||
{91EE9087-7809-4289-AEC8-4DFB20679A74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{91EE9087-7809-4289-AEC8-4DFB20679A74}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{91EE9087-7809-4289-AEC8-4DFB20679A74}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{91EE9087-7809-4289-AEC8-4DFB20679A74}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DF25B11F-6190-4605-9D32-BA7F545D624B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DF25B11F-6190-4605-9D32-BA7F545D624B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DF25B11F-6190-4605-9D32-BA7F545D624B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DF25B11F-6190-4605-9D32-BA7F545D624B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{962F7DA5-AEA1-4D03-89FD-F9AC42C24E46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{962F7DA5-AEA1-4D03-89FD-F9AC42C24E46}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{962F7DA5-AEA1-4D03-89FD-F9AC42C24E46}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{962F7DA5-AEA1-4D03-89FD-F9AC42C24E46}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CEA97AC9-7B4C-42D4-9CD3-E05C0A0473F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CEA97AC9-7B4C-42D4-9CD3-E05C0A0473F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CEA97AC9-7B4C-42D4-9CD3-E05C0A0473F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CEA97AC9-7B4C-42D4-9CD3-E05C0A0473F5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
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("SetupApplicationSettingsLib")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SetupApplicationSettingsLib")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[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("1107afd5-33a9-478d-a0b9-9f203ef30c94")]
|
||||
|
||||
// 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")]
|
||||
Generated
+36
@@ -0,0 +1,36 @@
|
||||
namespace SetupApplicationSettingsLib
|
||||
{
|
||||
partial class SetupApplicationSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration.Install;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
|
||||
namespace SetupApplicationSettingsLib
|
||||
{
|
||||
[RunInstaller(true)]
|
||||
public partial class SetupApplicationSettings : System.Configuration.Install.Installer
|
||||
{
|
||||
public SetupApplicationSettings()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public override void Commit(IDictionary savedState)
|
||||
{
|
||||
base.Commit(savedState);
|
||||
|
||||
string appDataCoatiPath = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati Trial\\";
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{DF25B11F-6190-4605-9D32-BA7F545D624B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SetupApplicationSettingsLib</RootNamespace>
|
||||
<AssemblyName>SetupApplicationSettingsLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SetupApplicationSettings.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SetupApplicationSettings.Designer.cs">
|
||||
<DependentUpon>SetupApplicationSettings.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
Generated
+36
@@ -0,0 +1,36 @@
|
||||
namespace SetupCreateDesktopShortcutLib
|
||||
{
|
||||
partial class CreateDesktopShortcut
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
using IWshRuntimeLibrary;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration.Install;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SetupCreateDesktopShortcutLib
|
||||
{
|
||||
[RunInstaller(true)]
|
||||
public partial class CreateDesktopShortcut : System.Configuration.Install.Installer
|
||||
{
|
||||
public CreateDesktopShortcut()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public override void Commit(IDictionary savedState)
|
||||
{
|
||||
base.Commit(savedState);
|
||||
|
||||
string app = System.Reflection.Assembly.GetExecutingAssembly().Location;
|
||||
|
||||
string name = "install\\" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
|
||||
int nameIdx = app.LastIndexOf(name);
|
||||
string appDirectory = app.Substring(0, nameIdx);
|
||||
|
||||
app = appDirectory + "Coati Trial.exe";
|
||||
|
||||
object shDesktop = (object)"Desktop";
|
||||
WshShell shell = new WshShell();
|
||||
string shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + @"\Coati Trial.lnk";
|
||||
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress);
|
||||
shortcut.Description = "Fast source code reading and navigation";
|
||||
shortcut.TargetPath = app;
|
||||
shortcut.WorkingDirectory = appDirectory;
|
||||
shortcut.Save();
|
||||
}
|
||||
|
||||
protected override void OnAfterRollback(IDictionary savedState)
|
||||
{
|
||||
base.OnAfterRollback(savedState);
|
||||
|
||||
DeleteDesktopShortcut();
|
||||
}
|
||||
|
||||
protected override void OnAfterUninstall(IDictionary savedState)
|
||||
{
|
||||
base.OnAfterUninstall(savedState);
|
||||
|
||||
DeleteDesktopShortcut();
|
||||
}
|
||||
|
||||
private void DeleteDesktopShortcut()
|
||||
{
|
||||
object shDesktop = (object)"Desktop";
|
||||
WshShell shell = new WshShell();
|
||||
string shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + @"\Coati Trial.lnk";
|
||||
|
||||
if (System.IO.File.Exists(shortcutAddress))
|
||||
{
|
||||
System.IO.File.Delete(shortcutAddress);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
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("SetupCreateDesktopShortcutLib")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SetupCreateDesktopShortcutLib")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[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("27b58167-bcfc-4b0d-8ca8-42bac62416d1")]
|
||||
|
||||
// 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")]
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
namespace SetupCreateStartMenuShortcutLib
|
||||
{
|
||||
partial class CreateStartMenuShortcut
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
using IWshRuntimeLibrary;
|
||||
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 SetupCreateStartMenuShortcutLib
|
||||
{
|
||||
[RunInstaller(true)]
|
||||
public partial class CreateStartMenuShortcut : System.Configuration.Install.Installer
|
||||
{
|
||||
private static string _appShortcutName = "Coati Trail.lnk";
|
||||
private static string _uninstallShortcutName = "Uninstall Coati Trail.lnk";
|
||||
|
||||
public CreateStartMenuShortcut()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public override void Commit(IDictionary savedState)
|
||||
{
|
||||
base.Commit(savedState);
|
||||
|
||||
string app = System.Reflection.Assembly.GetExecutingAssembly().Location;
|
||||
|
||||
string name = "install\\" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
|
||||
int nameIdx = app.LastIndexOf(name);
|
||||
string appDirectory = app.Substring(0, nameIdx);
|
||||
|
||||
app = appDirectory + "Coati Trial.exe";
|
||||
|
||||
WshShell shell = new WshShell();
|
||||
string shortcutAddress = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu) + "\\Coati Trial\\"; // "\\Coati.lnk";
|
||||
|
||||
if(!Directory.Exists(shortcutAddress))
|
||||
{
|
||||
Directory.CreateDirectory(shortcutAddress);
|
||||
}
|
||||
|
||||
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress + _appShortcutName);
|
||||
shortcut.Description = "Fast source code navigation and visualization";
|
||||
shortcut.TargetPath = app;
|
||||
shortcut.WorkingDirectory = appDirectory;
|
||||
shortcut.IconLocation = appDirectory + "data\\gui\\icon\\coati.ico";
|
||||
shortcut.Save();
|
||||
|
||||
IWshShortcut uninstallShortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress + _uninstallShortcutName);
|
||||
uninstallShortcut.Description = "Uninstall Coati Trial";
|
||||
uninstallShortcut.TargetPath = appDirectory + "\\install\\uninstall.bat";
|
||||
uninstallShortcut.WorkingDirectory = appDirectory + "\\install";
|
||||
uninstallShortcut.Save();
|
||||
}
|
||||
|
||||
protected override void OnAfterRollback(IDictionary savedState)
|
||||
{
|
||||
base.OnAfterRollback(savedState);
|
||||
|
||||
DeleteShortcuts();
|
||||
}
|
||||
|
||||
protected override void OnAfterUninstall(IDictionary savedState)
|
||||
{
|
||||
base.OnAfterUninstall(savedState);
|
||||
|
||||
DeleteShortcuts();
|
||||
}
|
||||
|
||||
private void DeleteShortcuts()
|
||||
{
|
||||
WshShell shell = new WshShell();
|
||||
string shortcutAddress = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu) + "\\Coati Trial\\";
|
||||
|
||||
if (System.IO.File.Exists(shortcutAddress + _appShortcutName))
|
||||
{
|
||||
System.IO.File.Delete(shortcutAddress + _appShortcutName);
|
||||
}
|
||||
|
||||
if (System.IO.File.Exists(shortcutAddress + _uninstallShortcutName))
|
||||
{
|
||||
System.IO.File.Delete(shortcutAddress + _uninstallShortcutName);
|
||||
}
|
||||
|
||||
if(Directory.Exists(shortcutAddress))
|
||||
{
|
||||
Directory.Delete(shortcutAddress);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
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("SetupCreateStartMenuShortcutLib")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SetupCreateStartMenuShortcutLib")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[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("d2e0e462-d5da-4270-ba51-02548abbed44")]
|
||||
|
||||
// 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")]
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{962F7DA5-AEA1-4D03-89FD-F9AC42C24E46}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SetupCreateStartMenuShortcutLib</RootNamespace>
|
||||
<AssemblyName>SetupCreateStartMenuShortcutLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CreateStartMenuShortcut.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CreateStartMenuShortcut.Designer.cs">
|
||||
<DependentUpon>CreateStartMenuShortcut.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="IWshRuntimeLibrary">
|
||||
<Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,36 @@
|
||||
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("SetupRemoveCacheFiles")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SetupRemoveCacheFiles")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[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("226fe6d3-3c0f-417e-94f3-a2c0c3260b0a")]
|
||||
|
||||
// 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")]
|
||||
Generated
+36
@@ -0,0 +1,36 @@
|
||||
namespace SetupRemoveCacheFiles
|
||||
{
|
||||
partial class SetupRemoveCacheFiles
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -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 Trial"; // \\Coati\\";
|
||||
|
||||
Directory.Delete(appDataCoatiPath, true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
// well damn
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{CEA97AC9-7B4C-42D4-9CD3-E05C0A0473F5}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SetupRemoveCacheFiles</RootNamespace>
|
||||
<AssemblyName>SetupRemoveCacheFiles</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SetupRemoveCacheFiles.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SetupRemoveCacheFiles.Designer.cs">
|
||||
<DependentUpon>SetupRemoveCacheFiles.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,187 @@
|
||||
# FLAGS
|
||||
REBUILD=false
|
||||
OBFUSCATE=false
|
||||
|
||||
|
||||
# USEFUL VARIABLES
|
||||
ABORT="\033[31mAbort:\033[00m"
|
||||
SUCCESS="\033[32mSuccess:\033[00m"
|
||||
INFO="\033[33mInfo:\033[00m"
|
||||
|
||||
ORIGINAL_PATH_TO_SCRIPT="${0}"
|
||||
CLEANED_PATH_TO_SCRIPT="${ORIGINAL_PATH_TO_SCRIPT//\\//}"
|
||||
BASE_DIR=`dirname "$CLEANED_PATH_TO_SCRIPT"`
|
||||
|
||||
|
||||
cd $BASE_DIR/..
|
||||
|
||||
echo -e "$INFO Did you set the correct version number for the installers?"
|
||||
read -p "Press [Enter] key to continue"
|
||||
|
||||
echo -e "$INFO Did you set the correct version number for the Visual Studio plugins?"
|
||||
read -p "Press [Enter] key to continue"
|
||||
|
||||
echo -e "$INFO Are the Visual Studio plugins up to date?"
|
||||
read -p "Press [Enter] key to continue"
|
||||
|
||||
# SETTING THE DEPLOY FLAG
|
||||
rm -rf src/lib_gui/platform_includes/deploy.h
|
||||
echo "#define DEPLOY" >src/lib_gui/platform_includes/deploy.h
|
||||
|
||||
|
||||
# CLEANING THE PROJECT
|
||||
if [ $REBUILD = true ]; then
|
||||
echo -e "$INFO cleaning the project"
|
||||
"D:/programme/Microsoft Visual Studio14/Common7/IDE/devenv.com" build/Coati.sln //clean Release
|
||||
fi
|
||||
|
||||
|
||||
# BUILDING THE EXECUTABLES
|
||||
echo -e "$INFO building the executable (app)"
|
||||
"D:/programme/Microsoft Visual Studio14/Common7/IDE/devenv.com" build/Coati.sln //build Release //project build/Coati.vcxproj
|
||||
|
||||
echo -e "$INFO building the executable (trail)"
|
||||
"D:/programme/Microsoft Visual Studio14/Common7/IDE/devenv.com" build/Coati.sln //build Release //project build/Coati_trial.vcxproj
|
||||
|
||||
|
||||
# CREATING TRAIL DATABASES´
|
||||
echo -e "$INFO creating databases for trail"
|
||||
|
||||
rm bin/app/data/projects/tictactoe/tictactoe.coatidb
|
||||
rm bin/app/data/projects/tutorial/tutorial.coatidb
|
||||
rm -rf temp
|
||||
mkdir -p temp
|
||||
cd temp
|
||||
../bin/app/Release/Coati.exe -p ../bin/app/data/projects/tictactoe/tictactoe.coatiproject
|
||||
echo -e "$INFO Please wait until Coati created the database for tictactoe."
|
||||
read -p "Press [Enter] key to continue"
|
||||
|
||||
../bin/app/Release/Coati.exe -p ../bin/app/data/projects/tutorial/tutorial.coatiproject
|
||||
echo -e "$INFO Please wait until Coati created the database for tutorial."
|
||||
read -p "Press [Enter] key to continue"
|
||||
|
||||
cd ..
|
||||
rm -rf temp
|
||||
|
||||
|
||||
# OBFUSCATING THE EXECUTABLES
|
||||
if [ $OBFUSCATE = true ]; then
|
||||
echo -e "$INFO obfuscating the executables"
|
||||
rm bin/app/Release/Coati_obfuscated.exe
|
||||
rm bin/app/Release/Coati_trial_obfuscated.exe
|
||||
upx --brute -o bin/app/Release/Coati_obfuscated.exe bin/app/Release/Coati.exe
|
||||
upx --brute -o bin/app/Release/Coati_trial_obfuscated.exe bin/app/Release/Coati_trial.exe
|
||||
else
|
||||
cp bin/app/Release/Coati.exe bin/app/Release/Coati_obfuscated.exe
|
||||
cp bin/app/Release/Coati_trial.exe bin/app/Release/Coati_trial_obfuscated.exe
|
||||
fi
|
||||
|
||||
|
||||
# BUILDING THE INSTALLERS
|
||||
echo -e "$INFO building the installer (app)"
|
||||
"D:/programme/Microsoft Visual Studio 12/Common7/IDE/devenv.com" deployment/windows/CoatiAppSetup/CoatiAppSetup.sln //build Release //project deployment/windows/CoatiAppSetup/CoatiSetup/CoatiSetup.vdproj
|
||||
|
||||
echo -e "$INFO building the installer (trail)"
|
||||
"D:/programme/Microsoft Visual Studio 12/Common7/IDE/devenv.com" deployment/windows/CoatiTrialSetup/CoatiTrialSetup.sln //build Release //project deployment/windows/CoatiTrialSetup/CoatiSetup/CoatiSetup.vdproj
|
||||
|
||||
|
||||
# EDIT THE INSTALLERS
|
||||
echo -e "$INFO Please edit the msi files of the installers"
|
||||
read -p "Press [Enter] key to continue"
|
||||
|
||||
|
||||
# CREATING PACKAGE FOLDERS (APP)
|
||||
VERSION_STRING=$(git describe)
|
||||
VERSION_STRING="${VERSION_STRING//-/_}"
|
||||
VERSION_STRING="${VERSION_STRING//./_}"
|
||||
VERSION_STRING="${VERSION_STRING%_*}"
|
||||
|
||||
APP_PACKAGE_NAME=Coati_${VERSION_STRING}
|
||||
|
||||
APP_PACKAGE_DIR=release/$APP_PACKAGE_NAME
|
||||
|
||||
echo -e "$INFO creating package folders for app"
|
||||
rm -rf $APP_PACKAGE_DIR
|
||||
mkdir -p $APP_PACKAGE_DIR
|
||||
|
||||
cp -u -r deployment/windows/CoatiAppSetup/CoatiSetup/Release/Coati.msi $APP_PACKAGE_DIR/
|
||||
cp -u -r deployment/windows/CoatiAppSetup/CoatiSetup/Release/setup.exe $APP_PACKAGE_DIR/
|
||||
|
||||
mkdir -p $APP_PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2012.vsix $APP_PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2013.vsix $APP_PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2015.vsix $APP_PACKAGE_DIR/plugins/visual_studio/
|
||||
mkdir -p $APP_PACKAGE_DIR/plugins/sublime_text/
|
||||
cp -u -r ide_plugins/sublime_text/* $APP_PACKAGE_DIR/plugins/sublime_text/
|
||||
|
||||
|
||||
# PACKAGING COATI (APP)
|
||||
echo -e "$INFO packaging coati app"
|
||||
cd ./release/
|
||||
winrar a -afzip ${APP_PACKAGE_NAME}_Windows.zip $APP_PACKAGE_NAME
|
||||
cd ../
|
||||
|
||||
|
||||
# CLEANING UP (APP)
|
||||
echo -e "$INFO Cleaning up app"
|
||||
rm -rf $APP_PACKAGE_DIR
|
||||
|
||||
|
||||
# CREATING PACKAGE FOLDERS (TRIAL)
|
||||
TRIAL_PACKAGE_NAME=Coati_Trail_${VERSION_STRING}
|
||||
|
||||
TRIAL_PACKAGE_DIR=release/$TRIAL_PACKAGE_NAME
|
||||
|
||||
echo -e "$INFO creating package folders for trail"
|
||||
rm -rf $TRIAL_PACKAGE_DIR
|
||||
mkdir -p $TRIAL_PACKAGE_DIR
|
||||
|
||||
cp -u -r deployment/windows/CoatiTrialSetup/CoatiSetup/Release/CoatiTrial.msi $TRIAL_PACKAGE_DIR/
|
||||
cp -u -r deployment/windows/CoatiTrialSetup/CoatiSetup/Release/setup.exe $TRIAL_PACKAGE_DIR/
|
||||
|
||||
mkdir -p $TRIAL_PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2012.vsix $TRIAL_PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2013.vsix $TRIAL_PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2015.vsix $TRIAL_PACKAGE_DIR/plugins/visual_studio/
|
||||
mkdir -p $TRIAL_PACKAGE_DIR/plugins/sublime_text/
|
||||
cp -u -r ide_plugins/sublime_text/* $TRIAL_PACKAGE_DIR/plugins/sublime_text/
|
||||
|
||||
|
||||
# PACKAGING COATI (TRIAL)
|
||||
echo -e "$INFO packaging coati trail"
|
||||
cd ./release/
|
||||
winrar a -afzip ${TRIAL_PACKAGE_NAME}_Windows.zip $TRIAL_PACKAGE_NAME
|
||||
cd ../
|
||||
|
||||
|
||||
# CLEANING UP (TRIAL)
|
||||
echo -e "$INFO Cleaning up trail"
|
||||
rm -rf $TRIAL_PACKAGE_DIR
|
||||
|
||||
|
||||
# UNSETTING THE DEPLOY FLAG
|
||||
rm -rf src/lib_gui/platform_includes/deploy.h
|
||||
echo "// #define DEPLOY" >src/lib_gui/platform_includes/deploy.h
|
||||
|
||||
|
||||
echo -e "$SUCCESS packaging complete!"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ABORT="\033[31mAbort:\033[00m"
|
||||
SUCCESS="\033[32mSuccess:\033[00m"
|
||||
INFO="\033[33mInfo:\033[00m"
|
||||
|
||||
read -r -p "Is your current release build up to date? [y/N] " response
|
||||
case $response in
|
||||
[yY][eE][sS]|[yY])
|
||||
;;
|
||||
*)
|
||||
echo -e $ABORT "Aborting the creation of a release package."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
read -r -p "Did you update the manual pdf? [y/N] " response
|
||||
case $response in
|
||||
[yY][eE][sS]|[yY])
|
||||
;;
|
||||
*)
|
||||
echo -e $ABORT "Aborting the creation of a release package."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
ORIGINAL_PATH_TO_SCRIPT="${0}"
|
||||
CLEANED_PATH_TO_SCRIPT="${ORIGINAL_PATH_TO_SCRIPT//\\//}"
|
||||
BASE_DIR=`dirname "$CLEANED_PATH_TO_SCRIPT"`
|
||||
|
||||
cd $BASE_DIR/..
|
||||
|
||||
VERSION_STRING=$(git describe)
|
||||
VERSION_STRING="${VERSION_STRING//-/_}"
|
||||
VERSION_STRING="${VERSION_STRING//./_}"
|
||||
VERSION_STRING="${VERSION_STRING%_*}"
|
||||
|
||||
PACKAGE_NAME=Coati_${VERSION_STRING}
|
||||
|
||||
echo -e $INFO Creating Package with Name: $PACKAGE_NAME
|
||||
|
||||
PACKAGE_DIR=release/$PACKAGE_NAME
|
||||
|
||||
|
||||
echo -e $INFO Creating Folders
|
||||
rm -rf $PACKAGE_DIR
|
||||
mkdir -p $PACKAGE_DIR
|
||||
|
||||
mkdir -p $PACKAGE_DIR/data/color_schemes/
|
||||
cp -u -r bin/app/data/color_schemes/* $PACKAGE_DIR/data/color_schemes/
|
||||
mkdir -p $PACKAGE_DIR/data/fonts/
|
||||
cp -u -r bin/app/data/fonts/* $PACKAGE_DIR/data/fonts/
|
||||
mkdir -p $PACKAGE_DIR/data/gui/
|
||||
cp -u -r bin/app/data/gui/* $PACKAGE_DIR/data/gui/
|
||||
mkdir -p $PACKAGE_DIR/data/log/
|
||||
mkdir -p $PACKAGE_DIR/data/projects/tutorial/src/
|
||||
cp -u -r bin/app/data/projects/tutorial/src/* $PACKAGE_DIR/data/projects/tutorial/src/
|
||||
cp -u -r bin/app/data/projects/tutorial/tutorial.xml $PACKAGE_DIR/data/projects/tutorial/
|
||||
mkdir -p $PACKAGE_DIR/data/projects/tictactoe/src/
|
||||
cp -u -r bin/app/data/projects/tictactoe/src/* $PACKAGE_DIR/data/projects/tictactoe/src/
|
||||
cp -u -r bin/app/data/projects/tictactoe/tictactoe.xml $PACKAGE_DIR/data/projects/tictactoe/
|
||||
|
||||
cp -u -r bin/app/data/ApplicationSettings_for_package.xml $PACKAGE_DIR/data/ApplicationSettings.xml
|
||||
cp -u -r bin/app/data/window_settings.ini $PACKAGE_DIR/data/
|
||||
|
||||
mkdir -p $PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2012.vsix $PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2013.vsix $PACKAGE_DIR/plugins/visual_studio/
|
||||
cp -u -r ide_plugins/vs/coati_plugin_vs_2015.vsix $PACKAGE_DIR/plugins/visual_studio/
|
||||
mkdir -p $PACKAGE_DIR/plugins/sublime_text/
|
||||
cp -u -r ide_plugins/sublime_text/* $PACKAGE_DIR/plugins/sublime_text/
|
||||
|
||||
cp -u -r web/coati_manual.pdf $PACKAGE_DIR/
|
||||
cp -u -r bin/app/Release/Coati.exe $PACKAGE_DIR/
|
||||
cp -u -r setup/dynamic_libraries/windows/app/Release/* $PACKAGE_DIR/
|
||||
|
||||
|
||||
read -r -p "Do you want to obfuscate the executable? [y/N] " response
|
||||
case $response in
|
||||
[yY][eE][sS]|[yY])
|
||||
echo -e $INFO Obfuscating Executable
|
||||
upx --brute $PACKAGE_DIR/Coati.exe
|
||||
;;
|
||||
*)
|
||||
echo -e $INFO Skipping Obfuscation
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
echo -e $INFO Packaging Coati
|
||||
cd ./release/
|
||||
winrar a -afzip ${PACKAGE_NAME}_Windows.zip $PACKAGE_NAME
|
||||
cd ../
|
||||
|
||||
|
||||
echo -e $INFO Cleaning up
|
||||
rm -rf $PACKAGE_DIR
|
||||
|
||||
echo -e $SUCCESS Packaging Complete!
|
||||
@@ -1,6 +1,7 @@
|
||||
add_files(
|
||||
LIB_GUI_FILES
|
||||
|
||||
platform_includes/deploy.h
|
||||
platform_includes/includesDefault.h
|
||||
platform_includes/includesMac.h
|
||||
platform_includes/includesWindows.h
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
// #define DEPLOY
|
||||
@@ -6,14 +6,22 @@
|
||||
#include "vld.h"
|
||||
|
||||
#include "utility/UserPaths.h"
|
||||
#include "isTrial.h"
|
||||
|
||||
// #define DEPLOY
|
||||
#include "platform_includes/deploy.h"
|
||||
|
||||
void setup(int argc, char *argv[])
|
||||
{
|
||||
#ifdef DEPLOY
|
||||
std::string path = std::getenv("APPDATA");
|
||||
path += "/../local/Coati Software/Coati/";
|
||||
if (isTrial())
|
||||
{
|
||||
path += "/../local/Coati Software/Coati Trial/";
|
||||
}
|
||||
else
|
||||
{
|
||||
path += "/../local/Coati Software/Coati/";
|
||||
}
|
||||
UserPaths::setUserDataPath(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user