Skip to content

Instantly share code, notes, and snippets.

@Ang3lFir3
Created July 12, 2010 14:43
Show Gist options
  • Save Ang3lFir3/472545 to your computer and use it in GitHub Desktop.
Save Ang3lFir3/472545 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WixSharp;
namespace Installer.Wixsharp
{
class Program
{
static void Main(string[] args)
{
Project project =
new Project("My Product",
new Dir(@"%ProgramFiles%\SampleWebApp",
new Dir(@"SampleSite",
new File(@"src\SampleSite\Web.config",
new IISVirtualDir
{
Name = "SampleWebApp",
AppName = "TestSampleWebApp",
WebSite = new WebSite("DefaultWebSite", "*:80", "Default Web Site"),
WebAppPool = new WebAppPool { Name = "SampleAppPool", Attributes = GetAppPoolAttributes() },
}),
new File(@"src\SampleSite\Global.asax")
)))
{
MajorUpgradeStrategy = MajorUpgradeStrategy.Default,
Version = new Version(1,0,2,0)
};
project.GUID = new Guid("0DA9A7BD-9BB3-4d46-A1D8-B3D99E41C553");
project.UI = WUI.WixUI_ProgressOnly;
project.OutFileName = "setup_sampleSite";
Compiler.WixLocation = @"D:\Source\Experimental\WixSharp_testWebApp\tools\WixSharp\Wix_bin\bin";
Compiler.BuildMsiCmd(project);
}
static WixEntity[] GetSiteFiles()
{
var base_dir = @"src\SampleSite\bin";
return new WixEntity[]{new File(base_dir + "Web.config")};
}
static Dictionary<string,string> GetAppPoolAttributes()
{
return new Dictionary<string, string>
{
};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment