Skip to content

Commit

Permalink
Committing initial codebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbandi committed Oct 27, 2009
1 parent f51e7bc commit abf885d
Show file tree
Hide file tree
Showing 235 changed files with 23,650 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Installer/DevenvSetupCustomAction/DevenvSetup.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions Installer/DevenvSetupCustomAction/DevenvSetup.cs
@@ -0,0 +1,57 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;
using Microsoft.Win32;


namespace DevenvSetupCustomAction
{
[RunInstaller(true)]
public partial class DevenvSetup : Installer
{
public DevenvSetup()
{
InitializeComponent();
}

public override void Install(IDictionary stateSaver)
{
base.Install(stateSaver);

try
{

using (RegistryKey setupKey = Registry.LocalMachine.OpenSubKey(
@"SOFTWARE\Microsoft\VisualStudio\9.0\Setup\VS"))
{
if (setupKey != null)
{
string devenv = setupKey.GetValue("EnvironmentPath").ToString();
if (!string.IsNullOrEmpty(devenv))
{
Process process = new Process();
process.StartInfo.FileName = Environment.ExpandEnvironmentVariables(devenv);
//process.StartInfo.Arguments = "/setup";
process.StartInfo.Arguments = "/installvstemplates";
process.Start();

process.WaitForExit();
}
}
}
}
catch (Exception ex)
{
MessageBox.Show("Unable to execute 'devenv /setup'. Please perform this action manually." +
Environment.NewLine + ex.Message, "Installer Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning);
}

}
}
}
71 changes: 71 additions & 0 deletions Installer/DevenvSetupCustomAction/DevenvSetupCustomAction.csproj
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{02F3B86D-0421-4D45-A701-44F3C94CF07D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DevenvSetupCustomAction</RootNamespace>
<AssemblyName>DevenvSetupCustomAction</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Management" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DevenvSetup.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DevenvSetup.Designer.cs">
<DependentUpon>DevenvSetup.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
36 changes: 36 additions & 0 deletions Installer/DevenvSetupCustomAction/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("DevenvSetupCustomAction")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DevenvSetupCustomAction")]
[assembly: AssemblyCopyright("Copyright © 2009")]
[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("46be5ea5-e3f1-400f-b6c0-eaf5b7b4d9c4")]

// 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")]
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
C:\Users\jba\Code\Research\TechTalk.SpecFlow\Installer\DevenvSetupCustomAction\bin\Debug\DevenvSetupCustomAction.dll
C:\Users\jba\Code\Research\TechTalk.SpecFlow\Installer\DevenvSetupCustomAction\bin\Debug\DevenvSetupCustomAction.pdb
C:\Users\jba\Code\Research\TechTalk.SpecFlow\Installer\DevenvSetupCustomAction\obj\Debug\ResolveAssemblyReference.cache
C:\Users\jba\Code\Research\TechTalk.SpecFlow\Installer\DevenvSetupCustomAction\obj\Debug\DevenvSetupCustomAction.dll
C:\Users\jba\Code\Research\TechTalk.SpecFlow\Installer\DevenvSetupCustomAction\obj\Debug\DevenvSetupCustomAction.pdb
Binary file not shown.
Binary file not shown.
Binary file added Installer/SpecFlowSetup/Debug/SpecFlowSetup.msi
Binary file not shown.
Binary file added Installer/SpecFlowSetup/Debug/setup.exe
Binary file not shown.

0 comments on commit abf885d

Please sign in to comment.