Skip to content

Instantly share code, notes, and snippets.

View BartDM's full-sized avatar

Bart De Meyer BartDM

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="DemoDatabaseDlg" Width="370" Height="270" Title="Demo website database settings" NoMinimize="yes">
<Control Id="DemoServerNameLabel" Type="Text" X="45" Y="73" Width="220" Height="15" TabSkip="no" Text="Database server name or IP" />
<Control Id="DemoServerNameEdit" Type="Edit" X="45" Y="85" Width="220" Height="18" Property="DB_SERVER" Text="{80}" />
<Control Id="DemoDatabaseNameLabel" Type="Text" X="45" Y="105" Width="220" Height="15" TabSkip="no" Text="Database name" />
<Control Id="DemoDatabaseNameEdit" Type="Edit" X="45" Y="117" Width="220" Height="18" Property="DB_DATABASE" Text="{80}" />
<Control Id="DemoUserLabel" Type="Text" X="45" Y="137" Width="100" Height="15" TabSkip="no" Text="&amp;Login Demo database" />
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:sql="http://schemas.microsoft.com/wix/SqlExtension">
<Fragment>
<Binary Id="CreateTablesBin" SourceFile="Database/CreateTables.sql"></Binary>
<Binary Id="FillTablesBin" SourceFile="Database/FillTables.sql"></Binary>
<util:User Id="SQLUserSA" Name="[DB_USER]" Password="[DB_PASSWORD]"></util:User>
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:sql="http://schemas.microsoft.com/wix/SqlExtension">
<Fragment>
<Binary Id="CreateTablesBin" SourceFile="Database/CreateTables.sql"></Binary>
<Binary Id="FillTablesBin" SourceFile="Database/FillTables.sql"></Binary>
</Fragment>
@BartDM
BartDM / gist:7578230
Created November 21, 2013 09:05
Source of blog post on http://blog.bartdemeyer.be
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:sql="http://schemas.microsoft.com/wix/SqlExtension">
<Fragment>
<!-- TODO: Put your code here. -->
</Fragment>
</Wix>
<Target Name="WIX">
<!-- At last create an installer -->
<Exec
Command='"$(WixPath)candle" -ext WixIISExtension -dpublishDir=$(Publish) -dMyWebResourceDir=. @(WixCode, &apos; &apos;)'
ContinueOnError="false"
WorkingDirectory="." />
<Exec
Command='"$(WixPath)light" -ext WixIISExtension -ext WixUIExtension -out $(MsiOut) @(WixObject, &apos; &apos;)'
ContinueOnError="false"
WorkingDirectory="." />
@BartDM
BartDM / gist:6915895
Created October 10, 2013 09:56
Source of blog post on http://blog.bartdemeyer.be
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
@BartDM
BartDM / gist:6915722
Created October 10, 2013 09:41
Source of blog post on http://blog.bartdemeyer.be
<!-- The list of WIX input files -->
<ItemGroup>
<WixCode Include="Product.wxs" />
<WixCode Include="$(WebSiteContentCode)" />
<WixCode Include="DemoUI.wxs" />
<WixCode Include="UIDialogs.wxs" />
<WixCode Include="IISConfiguration.wxs" />
</ItemGroup>
<!-- The list of WIX after candle files -->
@BartDM
BartDM / gist:6915695
Created October 10, 2013 09:39
Source of blog post on http://blog.bartdemeyer.be
<Feature Id="ProductFeature" Title="DemoWebsite.Setup" Level="1">
<ComponentGroupRef Id="MyWebWebComponents" />
<ComponentGroupRef Id="DemoWebsiteIssConfiguration" />
</Feature>
@BartDM
BartDM / gist:6915664
Created October 10, 2013 09:36
Source of blog post on http://blog.bartdemeyer.be
<ComponentGroup Id="DemoWebsiteIssConfiguration">
<ComponentRef Id="InstallWebsite" />
<ComponentRef Id="DemoWebsiteAppPool" />
</ComponentGroup>
@BartDM
BartDM / gist:6915580
Created October 10, 2013 09:26
Source of blog post on http://blog.bartdemeyer.be
<Component Id="InstallWebsite" Guid="" KeyPath="yes">
<!-- Install to default web site -->
<iis:WebSite Id="DemoWebsiteWebsite" Description='Demo Website' Directory='INSTALLFOLDER' AutoStart='yes' StartOnInstall='yes'>
<iis:WebAddress Id="AllUnassigned" Port="80" />
<iis:WebApplication Id="DemoWebsiteApplication" Name="[DemoWebsiteWebsite][WEBSITE_ID]" WebAppPool="DemoWebsiteAppPool"></iis:WebApplication>
</iis:WebSite>
</Component>
</DirectoryRef>