Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Finished first version of installer / updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciaran Fisher committed Oct 17, 2015
1 parent cca3648 commit cdd4245
Show file tree
Hide file tree
Showing 17 changed files with 6,157 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DCS-SimpleRadio.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{68EB
Scripts\DCS-SimpleRadio\SimpleRadioInit.lua = Scripts\DCS-SimpleRadio\SimpleRadioInit.lua
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Installer", "Installer\Installer.csproj", "{57B6F9D9-C410-4EB7-8003-60F894F358A4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -68,6 +70,18 @@ Global
{570F5657-1E40-4B2A-A8F6-54453C99C6F3}.Release|x64.Build.0 = Release|Any CPU
{570F5657-1E40-4B2A-A8F6-54453C99C6F3}.Release|x86.ActiveCfg = Release|Any CPU
{570F5657-1E40-4B2A-A8F6-54453C99C6F3}.Release|x86.Build.0 = Release|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Debug|x64.ActiveCfg = Debug|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Debug|x64.Build.0 = Debug|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Debug|x86.ActiveCfg = Debug|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Debug|x86.Build.0 = Debug|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Release|Any CPU.Build.0 = Release|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Release|x64.ActiveCfg = Release|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Release|x64.Build.0 = Release|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Release|x86.ActiveCfg = Release|Any CPU
{57B6F9D9-C410-4EB7-8003-60F894F358A4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 6 additions & 0 deletions Installer/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
17 changes: 17 additions & 0 deletions Installer/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Application x:Class="Installer.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Installer"
StartupUri="MainWindow.xaml">
<Application.Resources>


<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>

</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>


</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions Installer/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace Installer
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
164 changes: 164 additions & 0 deletions Installer/Installer.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.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>{57B6F9D9-C410-4EB7-8003-60F894F358A4}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Installer</RootNamespace>
<AssemblyName>Installer</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<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' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;/MANIFESTUAC:level=requireAdministrator</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>Installer.App</StartupObject>
</PropertyGroup>
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="Gat.Controls.OpenDialog, Version=1.1.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OpenDialog.1.1.1\lib\net45\Gat.Controls.OpenDialog.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MahApps.Metro, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4fb5a3c4d1e5b4f, processorArchitecture=MSIL">
<HintPath>..\packages\MahApps.Metro.1.0.0.0\lib\net45\MahApps.Metro.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\MahApps.Metro.1.0.0.0\lib\net45\System.Windows.Interactivity.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Page Include="Resources\Icons.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AppDesigner Include="Properties\" />
<Resource Include="Resources\Entypo.ttf" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\WindowsIcons-license.txt" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Entypo-license.txt" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</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>
33 changes: 33 additions & 0 deletions Installer/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<Window x:Class="Installer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

ResizeMode="NoResize"
xmlns:local="clr-namespace:Installer"
mc:Ignorable="d"
Title="DCS-SimpleRadio Installer" Height="345" Width="450">
<Grid Name="containerPanel">
<Label x:Name="intro" FontSize="20" Content="DCS-SimpleRadio Installer / Updater" HorizontalAlignment="Left" Margin="10,3,0,0" VerticalAlignment="Top" Width="422"/>

<Label x:Name="step1" FontSize="20" Content="Step 1: Locate TeamSpeak Client Folder" HorizontalAlignment="Left" Margin="10,40,0,0" VerticalAlignment="Top" Width="422"/>

<TextBox x:Name="teamspeakPath" HorizontalAlignment="Left" Height="23" Margin="10,82,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="290" Text="C:\Program Files\TeamSpeak 3 Client" />
<Button x:Name="tsPathButton" Content="Locate" HorizontalAlignment="Left" Margin="336,82,0,0" VerticalAlignment="Top" Width="75" Click="Locate_teamspeak_button"/>

<Label x:Name="step2" FontSize="20" Content="Step 2: Pick Install Location" HorizontalAlignment="Left" Margin="10,110,0,0" VerticalAlignment="Top" Width="422"/>

<TextBox x:Name="srPath" HorizontalAlignment="Left" Height="23" Margin="10,152,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="290" Text="C:\Program Files\DCS-SimpleRadio" />
<Button x:Name="srPathButton" Content="Locate" HorizontalAlignment="Left" Margin="336,152,0,0" VerticalAlignment="Top" Width="75" Click="Set_Install_Path"/>

<Label x:Name="step3" FontSize="20" Content="Step 3: Pick DCS Version" HorizontalAlignment="Left" Margin="10,180,0,0" VerticalAlignment="Top" Width="422"/>


<Button x:Name="button1" Content="Install / Update for DCS Release" HorizontalAlignment="Left" Margin="18,222,0,0" VerticalAlignment="Top" Width="185" Click="Install_Release"/>
<Button x:Name="button1_Copy" Content="Install / Update DCS Open Beta" HorizontalAlignment="Left" Margin="239,222,0,0" VerticalAlignment="Top" Width="185" Click="Install_Beta"/>
<GridSplitter x:Name="gridSplitter" HorizontalAlignment="Left" Height="40" Margin="221,217,0,0" VerticalAlignment="Top" Width="5"/>
<Button x:Name="button1_Copy2" Content="Remove DCS-SimpleRadio" HorizontalAlignment="Left" Margin="140,270,0,0" VerticalAlignment="Top" Width="170" Click="Remove_Plugin" />

</Grid>
</Window>
Loading

0 comments on commit cdd4245

Please sign in to comment.