Subversion Repositories Code-Repo

Compare Revisions

No changes between revisions

Ignore whitespace Rev 9 → Rev 10

/SWAT USB App/trunk/SWAT USB App/DebugText.cs
0,0 → 1,56
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;
 
namespace SWAT_USB_App
{
class DebugText
{
private static string debugLocation = Initialization.pathToSWATDrive + "Debug.txt";
public static void appendText(string text)
{
// Appends passed string into Debug.txt
try
{
using (StreamWriter sw = File.AppendText(debugLocation))
{
sw.Write("[" + DateTime.Now.ToLongDateString() + " ; " + DateTime.Now.ToLongTimeString() + "] -- ");
sw.Write(text + "\r\n");
sw.Flush();
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
public static void createNewDebugTxt()
{
// Deletes old Debug.txt and creates a new one
if (File.Exists(debugLocation))
{
File.Delete(debugLocation);
File.Create(debugLocation);
}
}
public static void startNewSession()
{
try
{
using (StreamWriter sw = File.AppendText(debugLocation))
{
sw.Write("-- New Debug Session --\r\n");
sw.Flush();
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
 
}
}
/SWAT USB App/trunk/SWAT USB App/Initialization.cs
0,0 → 1,70
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;
using System.Diagnostics;
 
namespace SWAT_USB_App
{
public static class Initialization
{
public static string pathToSWATDrive { get; set; }
public static void Initialize()
{
try
{
// Pulls information from all drives on the running computer
DriveInfo[] allDrives = DriveInfo.GetDrives();
// Looks for a drive with the correct label, updates pathToSWATDrive with the drive letter
foreach (DriveInfo drive in allDrives)
{
if (drive.IsReady == true)
// Drive label for the USB drives is set here.
if (
((drive.VolumeLabel.ToUpper() == "SWAT DRIVE X32")
|| (drive.VolumeLabel.ToUpper() == "SWAT DRIVE X64")
) && drive.DriveType == DriveType.Removable)
{
pathToSWATDrive = drive.Name;
break;
}
}
// Prompts for drive to be inserted if none found
if (pathToSWATDrive == null)
{
DialogResult result;
result = MessageBox.Show("Unable to locate the SWAT USB drive.", "Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Exclamation);
if (result == DialogResult.Retry)
Initialize();
else if (result == DialogResult.Cancel)
{
if (System.IO.Directory.GetCurrentDirectory() == System.Environment.SystemDirectory)
{
// If user chooses to remove the program from startup, initializes code to delete the exe after program exits
result = MessageBox.Show("Would you like to remove this menu from startup?", "Remove from startup?", MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
// Calls up a hidden command prompt with a timeout of 3 seconds, automatically chooses yes to delete
ProcessStartInfo Info = new ProcessStartInfo();
Info.Arguments = "/C choice /C Y /N /D Y /T 3 & Del \"" + Application.ExecutablePath + "\"";
Info.WindowStyle = ProcessWindowStyle.Hidden;
Info.CreateNoWindow = true;
Info.FileName = "cmd.exe";
Process.Start(Info);
Environment.Exit(1);
}
else
Environment.Exit(1);
}
}
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
}
}
/SWAT USB App/trunk/SWAT USB App/Program.cs
0,0 → 1,21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
 
namespace SWAT_USB_App
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
// [STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new form_Main_Menu());
}
}
}
/SWAT USB App/trunk/SWAT USB App/Properties/AssemblyInfo.cs
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("SWAT USB App")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SWAT USB App")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
[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("68f754ea-f19b-4dd6-ae50-877ac0f30844")]
 
// 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")]
/SWAT USB App/trunk/SWAT USB App/Properties/Resources.Designer.cs
0,0 → 1,63
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace SWAT_USB_App.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SWAT_USB_App.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
/SWAT USB App/trunk/SWAT USB App/Properties/Resources.resx
0,0 → 1,117
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
 
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
/SWAT USB App/trunk/SWAT USB App/Properties/Settings.Designer.cs
0,0 → 1,26
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace SWAT_USB_App.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
/SWAT USB App/trunk/SWAT USB App/Properties/Settings.settings
0,0 → 1,7
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
/SWAT USB App/trunk/SWAT USB App/SWAT USB App.csproj
0,0 → 1,152
<?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>{A7AC32A6-2294-431E-BFA4-B9DB99F9ED47}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SWAT_USB_App</RootNamespace>
<AssemblyName>SWAT USB App</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<IsWebBootstrapper>false</IsWebBootstrapper>
<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>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</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|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>SpaceInvader.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DebugText.cs" />
<Compile Include="form_Drivers.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="form_Drivers.Designer.cs">
<DependentUpon>form_Drivers.cs</DependentUpon>
</Compile>
<Compile Include="form_Main_Menu.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="form_Main_Menu.Designer.cs">
<DependentUpon>form_Main_Menu.cs</DependentUpon>
</Compile>
<Compile Include="form_Software.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="form_Software.Designer.cs">
<DependentUpon>form_Software.cs</DependentUpon>
</Compile>
<Compile Include="Initialization.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SettingsParser.cs" />
<EmbeddedResource Include="form_Drivers.resx">
<DependentUpon>form_Drivers.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="form_Main_Menu.resx">
<DependentUpon>form_Main_Menu.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="form_Software.resx">
<DependentUpon>form_Software.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="SpaceInvader.ico" />
</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>
/SWAT USB App/trunk/SWAT USB App/SWAT USB App.csproj.user
0,0 → 1,13
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory />
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>
/SWAT USB App/trunk/SWAT USB App/SettingsParser.cs
0,0 → 1,122
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Linq;
using System.Windows.Forms;
 
namespace SWAT_USB_App
{
class SettingsParser
{
private static string settingsFileLocation = Initialization.pathToSWATDrive + "USBSettings.xml";
private static XElement Settings;
 
public static bool settingsFileExist()
{
if (File.Exists(Initialization.pathToSWATDrive + "USBSettings.xml"))
return true;
else
return false;
}
public static void readSettingsFile()
{
try
{
DebugText.appendText("Parsing USBSettings.xml");
// Clears the lists for software and drivers
form_Software.softwareList.Clear();
form_Drivers.driverList.Clear();
 
Settings = XElement.Load(settingsFileLocation);
 
// Reads the list of applications from the USBSettings.xml file into form_Software.softwareList
DebugText.appendText("Parsing list of applications into List softwareList");
IEnumerable<XElement> app =
from el in Settings.Elements("Applications").Elements("Application")
select el;
foreach (XElement el in app)
{
DebugText.appendText("Adding application " + el.Element("Name").Value + " into softwareList");
form_Software.softwareList.Add(el.Element("Name").Value);
}
 
// Reads the list of drivers from the USBSettings.xml file into form_Drivers.driverList
DebugText.appendText("Parsing list of drivers into List driverList");
IEnumerable<XElement> driv =
from el in Settings.Elements("Drivers").Elements("Driver")
select el;
foreach (XElement el in driv)
{
DebugText.appendText("Adding driver " + el.Element("Name").Value + " into driverList");
form_Drivers.driverList.Add(el.Element("Name").Value);
}
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
public static bool isDefaultCheck(string applicationName)
{
try
{
// Checks if passed application name is marked as default
bool isDefault = false;
 
IEnumerable<XElement> def =
from el in Settings.Elements("Applications").Elements("Application")
where (string)el.Element("Name") == applicationName
select el;
if ((string)def.First().Element("Default").Value.ToLower() == "yes")
isDefault = true;
return isDefault;
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
return false;
}
}
public static string[] getSetupLocation(string fileName)
{
try
{
// Pulls the location and arguments for the specified application/driver from USBSettings.xml
DebugText.appendText("Getting setup locations for application " + fileName);
IEnumerable<XElement> loc =
from el in Settings.Elements("Applications").Elements("Application")
where (string)el.Element("Name") == fileName
select el;
if (loc.Count() == 0)
{
loc =
from el in Settings.Elements("Drivers").Elements("Driver")
where (string)el.Element("Name") == fileName
select el;
}
// Creates a string array holding alternating lines of setup locations and arguments for that setup file
string[] appSetupFile = new string[loc.Elements("Setup").Elements("Location").Count() * 2];
int counter = 0;
foreach (XElement elem in loc.Elements("Setup").Elements("Location"))
{
DebugText.appendText("Setup location for " + fileName + " is at " + (string)elem.Value + " with arguments " + (string)elem.Attribute("Args"));
appSetupFile[counter] = (string)elem.Value;
appSetupFile[counter + 1] = (string)elem.Attribute("Args");
counter += 2;
}
 
return appSetupFile;
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
return null;
}
}
}
}
/SWAT USB App/trunk/SWAT USB App/SpaceInvader.ico
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/SpaceInvader.ico
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/USBSettings.xml
0,0 → 1,113
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<Applications>
<Application>
<Name>Adobe Reader</Name>
<Default>Yes</Default>
<Setup>
<Location Args="">\Installer Files\Adobe\Setup.exe</Location>
</Setup>
</Application>
<Application>
<Name>Google Chrome</Name>
<Default>No</Default>
<Setup>
<Location Args="">\Installer Files\Chrome\Setup.exe</Location>
</Setup>
</Application>
<Application>
<Name>DyKnow x32</Name>
<Default>No</Default>
<Setup>
<Location Args="">\Installer Files\DyKnow 32-bit Installation\DyKnowInstall53_x86.msi</Location>
</Setup>
</Application>
<Application>
<Name>Mozilla Firefox</Name>
<Default>Yes</Default>
<Setup>
<Location Args="">\Installer Files\Firefox 3.6.8\Setup.exe</Location>
</Setup>
</Application>
<Application>
<Name>LabView</Name>
<Default>No</Default>
<Setup>
<Location Args="">\Installer Files\LabView R2009s\Setup.exe</Location>
</Setup>
</Application>
<Application>
<Name>MalwareBytes</Name>
<Default>Yes</Default>
<Setup>
<Location Args="">\Installer Files\MalwareBytes\mbam-setup-1.46.exe</Location>
</Setup>
</Application>
<Application>
<Name>MatLab x32</Name>
<Default>No</Default>
<Setup>
<Location Args="">\Installer Files\Matlab\R2010a-32bit\setup.exe</Location>
</Setup>
</Application>
<Application>
<Name>Microsoft Office 2010</Name>
<Default>Yes</Default>
<Setup>
<Location Args="">\Installer Files\Microsoft\Office 2010\Setup.exe</Location>
</Setup>
</Application>
<Application>
<Name>Microsoft Security Essentials</Name>
<Default>No</Default>
<Setup>
<Location Args="">\Installer Files\Microsoft\Security Essentials\Setup x32.exe</Location>
</Setup>
</Application>
<Application>
<Name>Symantec Antivirus</Name>
<Default>Yes</Default>
<Setup>
<Location Args="">\Installer Files\Symantec Antivirus\vtsep1106000.exe</Location>
</Setup>
</Application>
</Applications>
<Drivers>
<Driver>
<Name>Fujitsu T4220</Name>
<Setup>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\System Extension\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\Audio\Setup.exe</Location>
<Location Args='/s /v\"/qb\"'>\Installer Files\Drivers\Fujitsu\T4220\Bluetooth\Setup.exe</Location>
<Location Args="/s /se">\Installer Files\Drivers\Fujitsu\T4220\Button Driver\DPInst.exe</Location>
<Location Args="-s">\Installer Files\Drivers\Fujitsu\T4220\Display\Setup.exe</Location>
<Location Args='/s /v\"/qb\"'>\Installer Files\Drivers\Fujitsu\T4220\Fingerprint\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\Hotkey Utility\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\Media Slot O2Micro\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\Pen\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\SmartCard O2Micro\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\Touchpad\Setup.exe</Location>
<Location Args="/s /sms">\Installer Files\Drivers\Fujitsu\T4220\Wireless\Setup.exe</Location>
<Location Args='/s /v\"/qb\"'>\Installer Files\Drivers\Fujitsu\T4220\Button Utilities\Setup.exe</Location>
</Setup>
</Driver>
<Driver>
<Name>Fujitsu T5010</Name>
<Setup>
<Location Args="">\Installer Files\Drivers\Fujitsu\T5010\Setup.exe</Location>
</Setup>
</Driver>
<Driver>
<Name>Toshiba M700</Name>
<Setup>
<Location Args="">\Installer Files\Drivers\Toshiba\tsi4win7.exe</Location>
</Setup>
</Driver>
<Driver>
<Name>Toshiba M750</Name>
<Setup>
<Location Args="">\Installer Files\Drivers\Toshiba\tsi4win7.exe</Location>
</Setup>
</Driver>
</Drivers>
</Settings>
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.exe
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.pdb
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.vshost.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.vshost.exe
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/bin/Debug/SWAT USB App.vshost.exe.manifest
0,0 → 1,11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.exe
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.pdb
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.vshost.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/bin/Release/SWAT USB App.vshost.exe
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/form_Drivers.Designer.cs
0,0 → 1,102
namespace SWAT_USB_App
{
partial class form_Drivers
{
/// <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 Windows Form 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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(form_Drivers));
this.btn_Cancel = new System.Windows.Forms.Button();
this.btn_Ok = new System.Windows.Forms.Button();
this.groupBox_DriverList = new System.Windows.Forms.GroupBox();
this.SuspendLayout();
//
// btn_Cancel
//
this.btn_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btn_Cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btn_Cancel.Location = new System.Drawing.Point(100, 61);
this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new System.Drawing.Size(82, 24);
this.btn_Cancel.TabIndex = 3;
this.btn_Cancel.Text = "Cancel";
this.btn_Cancel.UseVisualStyleBackColor = true;
this.btn_Cancel.Click += new System.EventHandler(this.btn_Driver_Cancel_Click);
//
// btn_Ok
//
this.btn_Ok.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btn_Ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btn_Ok.Location = new System.Drawing.Point(12, 61);
this.btn_Ok.Name = "btn_Ok";
this.btn_Ok.Size = new System.Drawing.Size(82, 24);
this.btn_Ok.TabIndex = 2;
this.btn_Ok.Text = "Ok";
this.btn_Ok.UseVisualStyleBackColor = true;
this.btn_Ok.Click += new System.EventHandler(this.btn_Driver_Ok_Click);
//
// groupBox_DriverList
//
this.groupBox_DriverList.Location = new System.Drawing.Point(12, 12);
this.groupBox_DriverList.Name = "groupBox_DriverList";
this.groupBox_DriverList.Size = new System.Drawing.Size(170, 43);
this.groupBox_DriverList.TabIndex = 1;
this.groupBox_DriverList.TabStop = false;
this.groupBox_DriverList.Text = "Choose Your Tablet Model";
//
// form_Drivers
//
this.AcceptButton = this.btn_Ok;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btn_Cancel;
this.ClientSize = new System.Drawing.Size(194, 97);
this.Controls.Add(this.btn_Ok);
this.Controls.Add(this.groupBox_DriverList);
this.Controls.Add(this.btn_Cancel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "form_Drivers";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Drivers";
this.ResumeLayout(false);
 
}
 
#endregion
 
private System.Windows.Forms.Button btn_Cancel;
private System.Windows.Forms.Button btn_Ok;
private System.Windows.Forms.GroupBox groupBox_DriverList;
 
 
}
}
/SWAT USB App/trunk/SWAT USB App/form_Drivers.cs
0,0 → 1,145
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;
 
namespace SWAT_USB_App
{
public partial class form_Drivers : Form
{
public static List<string> driverList = new List<string>();
private static List<Process> toInstall = new List<Process>();
private static List<RadioButton> formRadioButton = new List<RadioButton>();
private static form_Drivers _driver_Form = null;
public static form_Drivers driver_Form_Instance
{
set
{
_driver_Form = value;
}
get
{
if (_driver_Form == null)
_driver_Form = new form_Drivers();
return _driver_Form;
}
}
public form_Drivers()
{
try
{
DebugText.appendText("Driver form initializing");
// Draws the form with a radiobutton for each driver specified in the text file
InitializeComponent();
// Location placeholder
int nextXLocation = 6, nextYLocation = 19;
// Updates the groupbox size to hold all the radiobuttons
this.groupBox_DriverList.Size = new Size(149, 40 + (driverList.Count - 1) * 23);
// Updates the window size to hold all the radiobuttons + buttons
this.Size = new Size(180, 121 + (driverList.Count - 1) * 23);
formRadioButton.Clear();
// Adds a radiobutton for each software item, adds rdoBtn to list formRadioButton
foreach (string str in driverList)
{
RadioButton rdoBtn = new RadioButton();
rdoBtn.Name = "rdo_" + str;
rdoBtn.AutoSize = true;
// Removes the brackets from the name
rdoBtn.Text = str;
rdoBtn.Location = new Point(nextXLocation, nextYLocation);
// Increments the location placeholder for the next radiobutton
nextYLocation += 23;
this.groupBox_DriverList.Controls.Add(rdoBtn);
formRadioButton.Add(rdoBtn);
}
if (driverList.Count > 0)
formRadioButton[0].Checked = true;
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
private void updateToInstallList()
{
try
{
DebugText.appendText("Updating list of processes to run from list of drivers checked");
toInstall.Clear();
// Updates list toInstall with processes for each software checked
for (int i = 0; i < driverList.Count; i++)
{
if (formRadioButton[i].Checked)
{
string[] temp;
temp = SettingsParser.getSetupLocation(formRadioButton[i].Text);
for (int j = 0; j < temp.Count(); j += 2)
{
Process proc = new Process();
proc.StartInfo.FileName = Initialization.pathToSWATDrive + temp[j];
proc.StartInfo.Arguments = temp[j + 1];
toInstall.Add(proc);
}
}
}
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
private void startDriverInstallation(List<Process> toInstall, int ID)
{
DebugText.appendText("Starting to install drivers from list of processes");
try
{
// Goes through list toInstall and runs each process after the previous one ends
int tempID = ID;
if (tempID < toInstall.Count)
{
DebugText.appendText("Running setup " + toInstall[ID].StartInfo.FileName + " with arguments " + toInstall[ID].StartInfo.Arguments);
toInstall[ID].Start();
while (!toInstall[ID].HasExited)
{
// Waits for installer to finish before starting the next one
Thread.Sleep(3000);
}
if (toInstall[ID].HasExited)
{
DebugText.appendText("Setup is detected as finished, running next setup");
tempID++;
startDriverInstallation(toInstall, tempID);
}
}
}
//catch (Win32Exception e)
//{
 
//}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
private void btn_Driver_Ok_Click(object sender, EventArgs e)
{
updateToInstallList();
startDriverInstallation(toInstall, 0);
this.Close();
}
private void btn_Driver_Cancel_Click(object sender, EventArgs e)
{
DebugText.appendText("Closing driver form");
driver_Form_Instance.Close();
}
}
}
/SWAT USB App/trunk/SWAT USB App/form_Drivers.resx
0,0 → 1,226
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
 
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAMDAAAAEACACoDgAAJgAAACAgAAABAAgAqAgAAM4OAAAoAAAAMAAAAGAAAAABAAgAAAAAAAAJ
AAAAAAAAAAAAAAABAAAAAQAAAAAAAAYGBgAKCgoADw8PABQUFAAaGhoAHx8fACQkJAApKSkALi4uADAw
MAA0NDQAPj4+AEhISABOTk4AYmJiAGdnZwBtbW0AfHx8AIKCggCPj48AkZGRAJycnAChoaEAsLCwALW1
tQDAwMAAy8vLANDQ0ADV1dUA2traAN/f3wDk5OQA6urqAO/v7wD09PQA/v7+AAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAA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QkJCQkJCQkJCQkJCQkJCQkJCQAAAAkJCQk
JCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJAAAACQkJCQkJCQkAAAAJCQkJCQkJAAAACQkJCQkJCQkAAAA
JCQkJCQkJCQAAAAkJCQkJCQkAAAAJCQkJCQkJCQAAAAkJAAAAAAkJAAAACQkJCQkJCQAAAAkJAAAAAAk
JAAAACQkAAAAACQkJCQkJCQkJCQkJCQkJCQkAAAAACQkAAAAJCQAAAAAJCQkJCQkJCQkJCQkJCQkJCQA
AAAAJCQAAAAkJAAAAAAAACQkJAAAAAAAAAAkJCQAAAAAAAAkJAAAACQkAAAAAAAAJCQkAAAAAAAAACQk
JAAAAAAAACQkAAAAJCQAAAAAAAAkJCQAAAAAAAAAJCQkAAAAAAAAJCQAAAAAAAAAAAAkJAAAAAAAAAAA
AAAAAAAkJAAAAAAAAAAAAAAAAAAAACQkAAAAAAAAAAAAAAAAACQkAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//
/////////////+H//h/gf/4P4D/4D/Af+A/4H/gP+B/4P+AAAA/gAAAH4AAABwAAAAcAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAABAAAIAYAACAEA8BghAPAMIQD4DD8H/g//h/8P///////////////////
////////
</value>
</data>
</root>
/SWAT USB App/trunk/SWAT USB App/form_Main_Menu.Designer.cs
0,0 → 1,138
namespace SWAT_USB_App
{
partial class form_Main_Menu
{
/// <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 Windows Form 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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(form_Main_Menu));
this.grp_Main_Menu = new System.Windows.Forms.GroupBox();
this.lbl_Version = new System.Windows.Forms.Label();
this.btn_Exit = new System.Windows.Forms.Button();
this.btn_Drivers = new System.Windows.Forms.Button();
this.btn_Software = new System.Windows.Forms.Button();
this.lbl_Main_Menu = new System.Windows.Forms.Label();
this.grp_Main_Menu.SuspendLayout();
this.SuspendLayout();
//
// grp_Main_Menu
//
this.grp_Main_Menu.Controls.Add(this.lbl_Version);
this.grp_Main_Menu.Controls.Add(this.btn_Exit);
this.grp_Main_Menu.Controls.Add(this.btn_Drivers);
this.grp_Main_Menu.Controls.Add(this.btn_Software);
this.grp_Main_Menu.Controls.Add(this.lbl_Main_Menu);
this.grp_Main_Menu.Location = new System.Drawing.Point(12, 12);
this.grp_Main_Menu.Name = "grp_Main_Menu";
this.grp_Main_Menu.Size = new System.Drawing.Size(275, 107);
this.grp_Main_Menu.TabIndex = 2;
this.grp_Main_Menu.TabStop = false;
this.grp_Main_Menu.Text = "Main Menu";
//
// lbl_Version
//
this.lbl_Version.AutoSize = true;
this.lbl_Version.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_Version.Location = new System.Drawing.Point(245, 0);
this.lbl_Version.Name = "lbl_Version";
this.lbl_Version.Size = new System.Drawing.Size(24, 12);
this.lbl_Version.TabIndex = 6;
this.lbl_Version.Text = "v2.0";
//
// btn_Exit
//
this.btn_Exit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btn_Exit.Location = new System.Drawing.Point(185, 17);
this.btn_Exit.Name = "btn_Exit";
this.btn_Exit.Size = new System.Drawing.Size(75, 23);
this.btn_Exit.TabIndex = 5;
this.btn_Exit.Text = "Exit [Esc]";
this.btn_Exit.UseVisualStyleBackColor = true;
this.btn_Exit.Click += new System.EventHandler(this.btn_Main_Exit_Click);
//
// btn_Drivers
//
this.btn_Drivers.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btn_Drivers.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_Drivers.Location = new System.Drawing.Point(14, 47);
this.btn_Drivers.Name = "btn_Drivers";
this.btn_Drivers.Size = new System.Drawing.Size(120, 45);
this.btn_Drivers.TabIndex = 3;
this.btn_Drivers.Text = "Install &Drivers\r\n";
this.btn_Drivers.UseVisualStyleBackColor = true;
this.btn_Drivers.Click += new System.EventHandler(this.btn_Main_Drivers_Click);
//
// btn_Software
//
this.btn_Software.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btn_Software.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_Software.Location = new System.Drawing.Point(140, 47);
this.btn_Software.Name = "btn_Software";
this.btn_Software.Size = new System.Drawing.Size(120, 45);
this.btn_Software.TabIndex = 4;
this.btn_Software.Text = "Install &Software\r\n";
this.btn_Software.UseVisualStyleBackColor = true;
this.btn_Software.Click += new System.EventHandler(this.btn_Main_Software_Click);
//
// lbl_Main_Menu
//
this.lbl_Main_Menu.AutoSize = true;
this.lbl_Main_Menu.Location = new System.Drawing.Point(6, 22);
this.lbl_Main_Menu.Name = "lbl_Main_Menu";
this.lbl_Main_Menu.Size = new System.Drawing.Size(164, 13);
this.lbl_Main_Menu.TabIndex = 0;
this.lbl_Main_Menu.Text = "To begin, please select an option";
//
// form_Main_Menu
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btn_Exit;
this.ClientSize = new System.Drawing.Size(298, 131);
this.Controls.Add(this.grp_Main_Menu);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "form_Main_Menu";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "SWAT USB Installer";
this.grp_Main_Menu.ResumeLayout(false);
this.grp_Main_Menu.PerformLayout();
this.ResumeLayout(false);
 
}
 
#endregion
 
private System.Windows.Forms.GroupBox grp_Main_Menu;
private System.Windows.Forms.Button btn_Drivers;
private System.Windows.Forms.Button btn_Software;
private System.Windows.Forms.Label lbl_Main_Menu;
private System.Windows.Forms.Button btn_Exit;
private System.Windows.Forms.Label lbl_Version;
}
}
 
/SWAT USB App/trunk/SWAT USB App/form_Main_Menu.cs
0,0 → 1,93
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
 
namespace SWAT_USB_App
{
public partial class form_Main_Menu : Form
{
public form_Main_Menu()
{
Initialization.Initialize();
DebugText.startNewSession();
DebugText.appendText("Main menu form initializing");
DebugText.appendText("SWAT Drive detected as drive " + Initialization.pathToSWATDrive);
// Debug: Shows the drive letter of the USB drive detected at startup
//DEBUG: MessageBox.Show(Initialization.pathToSWATDrive, "Drive Letter", MessageBoxButtons.OK);
InitializeComponent();
this.KeyPreview = true;
this.KeyPress += new KeyPressEventHandler(this.form_Main_Menu_KeyPress);
this.FormClosing += new FormClosingEventHandler(form_Main_Menu_FormClosing);
if (!SettingsParser.settingsFileExist())
{
DebugText.appendText("USBSettings.xml cannot be found");
MessageBox.Show("USBSettings.xml cannot be found.", "Error");
}
else
SettingsParser.readSettingsFile();
}
private void btn_Main_Drivers_Click(object sender, EventArgs e)
{
form_Drivers.driver_Form_Instance.ShowDialog();
}
private void btn_Main_Software_Click(object sender, EventArgs e)
{
form_Software.software_Form_Instance.ShowDialog();
}
private void btn_Main_Exit_Click(object sender, EventArgs e)
{
if (System.IO.File.Exists("Debug.txt"))
DebugText.appendText("Closing main menu form");
this.Close();
}
private void form_Main_Menu_KeyPress(object sender, KeyPressEventArgs e)
// Enables keyboard control for button navigation
{
switch (e.KeyChar)
{
case 'd':
case 'D':
form_Drivers.driver_Form_Instance.ShowDialog();
break;
case 's':
case 'S':
form_Software.software_Form_Instance.ShowDialog();
break;
}
}
void form_Main_Menu_FormClosing(object sender, FormClosingEventArgs e)
{
try
{
// If the application is located in the startup folder, prompt for removal on exit
if (System.IO.Directory.GetCurrentDirectory() == System.Environment.SystemDirectory)
{
// If user chooses to remove the program from startup, initializes code to delete the exe after program exits
DialogResult result;
result = MessageBox.Show("Would you like to remove this menu from startup?", "Remove from startup?", MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
ProcessStartInfo Info = new ProcessStartInfo();
// Calls up a hidden command prompt with a timeout of 3 seconds, automatically chooses yes to delete
Info.Arguments = "/C choice /C Y /N /D Y /T 3 & Del \"" + Application.ExecutablePath + "\"";
Info.WindowStyle = ProcessWindowStyle.Hidden;
Info.CreateNoWindow = true;
Info.FileName = "cmd.exe";
Process.Start(Info);
}
}
}
catch (Exception ex)
{
DebugText.appendText("Exception Thrown: " + ex.ToString());
MessageBox.Show(ex.ToString());
}
}
}
}
/SWAT USB App/trunk/SWAT USB App/form_Main_Menu.resx
0,0 → 1,226
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
 
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAMDAAAAEACACoDgAAJgAAACAgAAABAAgAqAgAAM4OAAAoAAAAMAAAAGAAAAABA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ACQkJCQkJCQkJCQkJCQkJCQkAAAAACQkAAAAJCQAAAAAJCQkJCQkJCQkJCQkJCQkJCQA
AAAAJCQAAAAkJAAAAAAAACQkJAAAAAAAAAAkJCQAAAAAAAAkJAAAACQkAAAAAAAAJCQkAAAAAAAAACQk
JAAAAAAAACQkAAAAJCQAAAAAAAAkJCQAAAAAAAAAJCQkAAAAAAAAJCQAAAAAAAAAAAAkJAAAAAAAAAAA
AAAAAAAkJAAAAAAAAAAAAAAAAAAAACQkAAAAAAAAAAAAAAAAACQkAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//
/////////////+H//h/gf/4P4D/4D/Af+A/4H/gP+B/4P+AAAA/gAAAH4AAABwAAAAcAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAABAAAIAYAACAEA8BghAPAMIQD4DD8H/g//h/8P///////////////////
////////
</value>
</data>
</root>
/SWAT USB App/trunk/SWAT USB App/form_Software.Designer.cs
0,0 → 1,100
namespace SWAT_USB_App
{
partial class form_Software
{
/// <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 Windows Form 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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(form_Software));
this.btn_Cancel = new System.Windows.Forms.Button();
this.btn_Ok = new System.Windows.Forms.Button();
this.groupBox_SoftwareList = new System.Windows.Forms.GroupBox();
this.SuspendLayout();
//
// btn_Cancel
//
this.btn_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btn_Cancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btn_Cancel.Location = new System.Drawing.Point(100, 61);
this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new System.Drawing.Size(82, 24);
this.btn_Cancel.TabIndex = 3;
this.btn_Cancel.Text = "Cancel";
this.btn_Cancel.UseVisualStyleBackColor = true;
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click);
//
// btn_Ok
//
this.btn_Ok.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btn_Ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btn_Ok.Location = new System.Drawing.Point(12, 61);
this.btn_Ok.Name = "btn_Ok";
this.btn_Ok.Size = new System.Drawing.Size(82, 24);
this.btn_Ok.TabIndex = 2;
this.btn_Ok.Text = "Ok";
this.btn_Ok.UseVisualStyleBackColor = true;
this.btn_Ok.Click += new System.EventHandler(this.btn_Ok_Click);
//
// groupBox_SoftwareList
//
this.groupBox_SoftwareList.Location = new System.Drawing.Point(12, 12);
this.groupBox_SoftwareList.Name = "groupBox_SoftwareList";
this.groupBox_SoftwareList.Size = new System.Drawing.Size(170, 43);
this.groupBox_SoftwareList.TabIndex = 1;
this.groupBox_SoftwareList.TabStop = false;
this.groupBox_SoftwareList.Text = "Choose Software to Install";
//
// form_Software
//
this.AcceptButton = this.btn_Ok;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btn_Cancel;
this.ClientSize = new System.Drawing.Size(194, 97);
this.Controls.Add(this.btn_Ok);
this.Controls.Add(this.groupBox_SoftwareList);
this.Controls.Add(this.btn_Cancel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "form_Software";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Software";
this.ResumeLayout(false);
 
}
 
#endregion
 
private System.Windows.Forms.Button btn_Cancel;
private System.Windows.Forms.Button btn_Ok;
private System.Windows.Forms.GroupBox groupBox_SoftwareList;
}
}
/SWAT USB App/trunk/SWAT USB App/form_Software.cs
0,0 → 1,146
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;
 
namespace SWAT_USB_App
{
public partial class form_Software : Form
{
public static List<string> softwareList = new List<string>();
private static List<Process> toInstall = new List<Process>();
private static List<CheckBox> formCheckBoxes = new List<CheckBox>();
private static form_Software _software_Form = null;
public static form_Software software_Form_Instance
{
set
{
_software_Form = value;
}
get
{
if (_software_Form == null)
_software_Form = new form_Software();
return _software_Form;
}
}
public form_Software()
{
try
{
DebugText.appendText("Software form initializing");
// Draws the form with a checkbox for each software specified in the text file
InitializeComponent();
// Location placeholder
int nextXLocation = 6, nextYLocation = 19;
// Updates the groupbox size to hold all the checkboxes
this.groupBox_SoftwareList.Size = new Size(169, 40 + (softwareList.Count - 1) * 23);
// Updates the window size to hold all the checkboxes + buttons
this.Size = new Size(200, 121 + (softwareList.Count - 1) * 23);
formCheckBoxes.Clear();
// Adds a checkbox for each software item, adds checkbox to list formCheckBoxes
foreach (string str in softwareList)
{DebugText.appendText("Checking if applications in softwareList is marked as default");
CheckBox chkBox = new CheckBox();
chkBox.Name = "chk_" + str;
chkBox.AutoSize = true;
// Removes the brackets from the name
chkBox.Text = str;
// Checks the checkbox if default is set to yes
if (SettingsParser.isDefaultCheck(str))
chkBox.Checked = true;
chkBox.Location = new Point(nextXLocation, nextYLocation);
// Increments the location placeholder for the next checkbox
nextYLocation += 23;
this.groupBox_SoftwareList.Controls.Add(chkBox);
formCheckBoxes.Add(chkBox);
}
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
private void updateToInstallList()
{
try
{
DebugText.appendText("Updating list of processes to run from list of software checked");
toInstall.Clear();
// Updates list toInstall with processes for each software checked
for (int i = 0; i < softwareList.Count; i++)
{
if (formCheckBoxes[i].Checked)
{
string[] temp;
temp = SettingsParser.getSetupLocation(formCheckBoxes[i].Text);
for (int j = 0; j < temp.Count(); j += 2)
{
Process proc = new Process();
proc.StartInfo.FileName = Initialization.pathToSWATDrive + temp[j];
proc.StartInfo.Arguments = temp[j + 1];
toInstall.Add(proc);
}
}
}
}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
private void startSoftwareInstaller(List<Process> toInstall, int ID)
{
DebugText.appendText("Starting to install softwares from list of processes");
try
{
// Goes through list toInstall and runs each process after the previous one ends
int tempID = ID;
if (tempID < toInstall.Count)
{
DebugText.appendText("Running setup " + toInstall[ID].StartInfo.FileName + " with arguments " + toInstall[ID].StartInfo.Arguments);
toInstall[ID].Start();
while (!toInstall[ID].HasExited)
{
// Waits for installer to finish before starting the next one
Thread.Sleep(3000);
}
if (toInstall[ID].HasExited)
{
DebugText.appendText("Setup is detected as finished, running next setup");
tempID++;
startSoftwareInstaller(toInstall, tempID);
}
}
}
//catch (Win32Exception e)
//{
//}
catch (Exception e)
{
DebugText.appendText("Exception Thrown: " + e.ToString());
MessageBox.Show(e.ToString());
}
}
private void btn_Ok_Click(object sender, EventArgs e)
{
updateToInstallList();
startSoftwareInstaller(toInstall, 0);
this.Close();
}
private void btn_Cancel_Click(object sender, EventArgs e)
{
DebugText.appendText("Closing software form");
software_Form_Instance.Close();
}
}
}
/SWAT USB App/trunk/SWAT USB App/form_Software.resx
0,0 → 1,226
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
 
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAMDAAAAEACACoDgAAJgAAACAgAAABAAgAqAgAAM4OAAAoAAAAMAAAAGAAAAABAAgAAAAAAAAJ
AAAAAAAAAAAAAAABAAAAAQAAAAAAAAYGBgAKCgoADw8PABQUFAAaGhoAHx8fACQkJAApKSkALi4uADAw
MAA0NDQAPj4+AEhISABOTk4AYmJiAGdnZwBtbW0AfHx8AIKCggCPj48AkZGRAJycnAChoaEAsLCwALW1
tQDAwMAAy8vLANDQ0ADV1dUA2traAN/f3wDk5OQA6urqAO/v7wD09PQA/v7+AAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
A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AYAACAEA8BghAPAMIQD4DD8H/g//h/8P///////////////////
////////
</value>
</data>
</root>
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/ResGen.read.1.tlog
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/ResGen.read.1.tlog
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/ResGen.write.1.tlog
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/ResGen.write.1.tlog
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/ResolveAssemblyReference.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/ResolveAssemblyReference.cache
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT USB App.csproj.FileListAbsolute.txt
0,0 → 1,11
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\bin\Debug\SWAT USB App.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\bin\Debug\SWAT USB App.pdb
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\ResolveAssemblyReference.cache
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\SWAT_USB_App.form_Drivers.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\SWAT_USB_App.form_Main_Menu.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\SWAT_USB_App.form_Software.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\SWAT_USB_App.Properties.Resources.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\ResGen.read.1.tlog
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\ResGen.write.1.tlog
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\SWAT USB App.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Debug\SWAT USB App.pdb
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT USB App.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT USB App.exe
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT USB App.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT USB App.pdb
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.Properties.Resources.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.Properties.Resources.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.form_Drivers.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.form_Drivers.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.form_Main_Menu.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.form_Main_Menu.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.form_Software.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/SWAT_USB_App.form_Software.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/ResGen.read.1.tlog
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/ResGen.read.1.tlog
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/ResGen.write.1.tlog
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/ResGen.write.1.tlog
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT USB App.csproj.FileListAbsolute.txt
0,0 → 1,11
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\bin\Release\SWAT USB App.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\bin\Release\SWAT USB App.pdb
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\ResolveAssemblyReference.cache
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\SWAT_USB_App.form_Drivers.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\SWAT_USB_App.form_Main_Menu.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\SWAT_USB_App.form_Software.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\SWAT_USB_App.Properties.Resources.resources
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\ResGen.read.1.tlog
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\ResGen.write.1.tlog
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\SWAT USB App.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT USB App\SWAT USB App\obj\x86\Release\SWAT USB App.pdb
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT USB App.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT USB App.exe
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT USB App.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT USB App.pdb
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.Properties.Resources.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.Properties.Resources.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.form_Drivers.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.form_Drivers.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.form_Main_Menu.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.form_Main_Menu.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.form_Software.resources
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/SWAT_USB_App.form_Software.resources
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/TempPE/Properties.Resources.Designer.cs.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/SWAT USB App/trunk/SWAT USB App/obj/x86/Release/TempPE/Properties.Resources.Designer.cs.dll
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property