Browse Source

Adding WiX project templates for the WiX UI library: Mondo, InstallDir, FeatureTree and Minimal.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2575 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 18 years ago
parent
commit
8f3ca00a17
  1. 84
      src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIFeatureTreeProject.xpt
  2. 83
      src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIInstallDirProject.xpt
  3. 84
      src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIMinimalProject.xpt
  4. 94
      src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIMondoProject.xpt
  5. 12
      src/AddIns/BackendBindings/WixBinding/Project/WixBinding.csproj

84
src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIFeatureTreeProject.xpt

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
<?xml version="1.0"?>
<Template originators="Matt Ward">
<TemplateConfiguration>
<Name>${res:Templates.Project.SetupProject.Name} - WixUI Feature Tree</Name>
<Category>${res:Templates.File.Categories.Setup}</Category>
<Icon>Icons.32x32.EmptyProjectIcon</Icon>
<Description>${res:Templates.Project.SetupProject.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename="Setup.wxs"/>
</Actions>
<!-- Template Content -->
<Project language="Wix">
<PropertyGroup escapeValue="false">
<LocalizedStringFile>$(WixToolPath)\WixUI_en-us.wxl</LocalizedStringFile>
</PropertyGroup>
<ProjectItems>
<WixLibrary Include="$(WixToolPath)\wixui.wixlib"/>
</ProjectItems>
<Files>
<File name="Setup.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="${GUID}"
Name="Your Application"
Language="1033"
Version="1.0.0.0"
UpgradeCode="${GUID}"
Manufacturer="Your Company">
<Package Id="${GUID}"
Description="#Description"
Comments="Comments"
InstallerVersion="200"
Compressed="yes"/>
<!--
Source media for the installation.
Specifies a single cab file to be embedded in the installer's .msi.
-->
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
<!-- Installation directory and files are defined in Files.wxs -->
<Directory Id="TARGETDIR" Name="SourceDir"/>
<Feature Id="Complete"
Title="Your Application"
Description="Your description"
Level="1"
ConfigurableDirectory="INSTALLDIR">
<ComponentRef Id="MyComponent"/>
</Feature>
<!--
Using the Wix UI library
With the the WixUI_FeatureTree dialog set the user goes
directly from the license agreement dialog to the feature
customization dialog. This dialog set is useful
when your product installs all features by default.
-->
<UIRef Id="WixUI_FeatureTree"/>
</Product>
</Wix>
]]></File>
<File name="Files.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="INSTALLDIR" Name="YourApp" LongName="Your Application">
<Component Id="MyComponent" Guid="${GUID}" DiskId="1">
<File Id="LicenseFile" Name="license.rtf" Source="license.rtf"/>
</Component>
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
</Wix>
]]></File>
<File name="license.rtf" src="DefaultLicense.rtf" buildAction="None" />
</Files>
</Project>
</Template>

83
src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIInstallDirProject.xpt

@ -0,0 +1,83 @@ @@ -0,0 +1,83 @@
<?xml version="1.0"?>
<Template originators="Matt Ward">
<TemplateConfiguration>
<Name>${res:Templates.Project.SetupProject.Name} - WixUI Install Dir</Name>
<Category>${res:Templates.File.Categories.Setup}</Category>
<Icon>Icons.32x32.EmptyProjectIcon</Icon>
<Description>${res:Templates.Project.SetupProject.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename="Setup.wxs"/>
</Actions>
<!-- Template Content -->
<Project language="Wix">
<PropertyGroup escapeValue="false">
<LocalizedStringFile>$(WixToolPath)\WixUI_en-us.wxl</LocalizedStringFile>
</PropertyGroup>
<ProjectItems>
<WixLibrary Include="$(WixToolPath)\wixui.wixlib"/>
</ProjectItems>
<Files>
<File name="Setup.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="${GUID}"
Name="Your Application"
Language="1033"
Version="1.0.0.0"
UpgradeCode="${GUID}"
Manufacturer="Your Company">
<Package Id="${GUID}"
Description="#Description"
Comments="Comments"
InstallerVersion="200"
Compressed="yes"/>
<!--
Source media for the installation.
Specifies a single cab file to be embedded in the installer's .msi.
-->
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
<!-- Installation directory and files are defined in Files.wxs -->
<Directory Id="TARGETDIR" Name="SourceDir"/>
<Feature Id="Complete"
Title="Your Application"
Description="Your description"
Level="1">
<ComponentRef Id="MyComponent"/>
</Feature>
<!--
Using the Wix UI library
WixUI_InstallDir does not allow the user to choose
features but adds a dialog to let the user choose a
directory where the product will be installed
-->
<Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property>
<UIRef Id="WixUI_InstallDir"/>
</Product>
</Wix>
]]></File>
<File name="Files.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="INSTALLDIR" Name="YourApp" LongName="Your Application">
<Component Id="MyComponent" Guid="${GUID}" DiskId="1">
<File Id="LicenseFile" Name="license.rtf" Source="license.rtf"/>
</Component>
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
</Wix>
]]></File>
<File name="license.rtf" src="DefaultLicense.rtf" buildAction="None" />
</Files>
</Project>
</Template>

84
src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIMinimalProject.xpt

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
<?xml version="1.0"?>
<Template originators="Matt Ward">
<TemplateConfiguration>
<Name>${res:Templates.Project.SetupProject.Name} - WixUI Minimal</Name>
<Category>${res:Templates.File.Categories.Setup}</Category>
<Icon>Icons.32x32.EmptyProjectIcon</Icon>
<Description>${res:Templates.Project.SetupProject.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename="Setup.wxs"/>
</Actions>
<!-- Template Content -->
<Project language="Wix">
<PropertyGroup escapeValue="false">
<LocalizedStringFile>$(WixToolPath)\WixUI_en-us.wxl</LocalizedStringFile>
</PropertyGroup>
<ProjectItems>
<WixLibrary Include="$(WixToolPath)\wixui.wixlib"/>
</ProjectItems>
<Files>
<File name="Setup.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="${GUID}"
Name="Your Application"
Language="1033"
Version="1.0.0.0"
UpgradeCode="${GUID}"
Manufacturer="Your Company">
<Package Id="${GUID}"
Description="#Description"
Comments="Comments"
InstallerVersion="200"
Compressed="yes"/>
<!--
Source media for the installation.
Specifies a single cab file to be embedded in the installer's .msi.
-->
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
<!-- Installation directory and files are defined in Files.wxs -->
<Directory Id="TARGETDIR" Name="SourceDir"/>
<Feature Id="Complete"
Title="Your Application"
Description="Your description"
Level="1">
<ComponentRef Id="MyComponent"/>
</Feature>
<!--
Using the Wix UI library.
WixUI_Minimal is the most basic of the WixUI stock dialog sets.
Its sole dialog combines the welcome and license-agreement
dialogs and omits the feature customization dialog.
WixUI_Minimal is appropriate when your product has no optional
features.
-->
<UIRef Id="WixUI_Minimal"/>
</Product>
</Wix>
]]></File>
<File name="Files.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="INSTALLDIR" Name="YourApp" LongName="Your Application">
<Component Id="MyComponent" Guid="${GUID}" DiskId="1">
<File Id="LicenseFile" Name="license.rtf" Source="license.rtf"/>
</Component>
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
</Wix>
]]></File>
<File name="license.rtf" src="DefaultLicense.rtf" buildAction="None" />
</Files>
</Project>
</Template>

94
src/AddIns/BackendBindings/WixBinding/Project/Templates/WixUIMondoProject.xpt

@ -0,0 +1,94 @@ @@ -0,0 +1,94 @@
<?xml version="1.0"?>
<Template originators="Matt Ward">
<TemplateConfiguration>
<Name>${res:Templates.Project.SetupProject.Name} - WixUI Mondo</Name>
<Category>${res:Templates.File.Categories.Setup}</Category>
<Icon>Icons.32x32.EmptyProjectIcon</Icon>
<Description>${res:Templates.Project.SetupProject.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename="Setup.wxs"/>
</Actions>
<!-- Template Content -->
<Project language="Wix">
<PropertyGroup escapeValue="false">
<LocalizedStringFile>$(WixToolPath)\WixUI_en-us.wxl</LocalizedStringFile>
</PropertyGroup>
<ProjectItems>
<WixLibrary Include="$(WixToolPath)\wixui.wixlib"/>
</ProjectItems>
<Files>
<File name="Setup.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="${GUID}"
Name="Your Application"
Language="1033"
Version="1.0.0.0"
UpgradeCode="${GUID}"
Manufacturer="Your Company">
<Package Id="${GUID}"
Description="#Description"
Comments="Comments"
InstallerVersion="200"
Compressed="yes"/>
<!--
Source media for the installation.
Specifies a single cab file to be embedded in the installer's .msi.
-->
<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
<!-- Installation directory and files are defined in Files.wxs -->
<Directory Id="TARGETDIR" Name="SourceDir"/>
<Feature Id="Complete"
Title="Your Application"
Description="Your description"
Level="1"
ConfigurableDirectory="INSTALLDIR">
<ComponentRef Id="MyComponent"/>
</Feature>
<!--
Using the Wix UI library
WixUI_Mondo includes the full set of dialogs:
welcome
license agreement
setup type (typical, custom, and complete)
feature customization
directory browse
disk cost.
Maintenance-mode dialogs are also included.
Use WixUI_Mondo when you have some of your product's features
are not installed by default and there is a meaningful
difference between typical and complete installs
-->
<UIRef Id="WixUI_Mondo"/>
</Product>
</Wix>
]]></File>
<File name="Files.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="INSTALLDIR" Name="YourApp" LongName="Your Application">
<Component Id="MyComponent" Guid="${GUID}" DiskId="1">
<File Id="LicenseFile" Name="license.rtf" Source="license.rtf"/>
</Component>
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
</Wix>
]]></File>
<File name="license.rtf" src="DefaultLicense.rtf" buildAction="None" />
</Files>
</Project>
</Template>

12
src/AddIns/BackendBindings/WixBinding/Project/WixBinding.csproj

@ -192,6 +192,18 @@ @@ -192,6 +192,18 @@
<Content Include="Templates\DefaultLicense.rtf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="Templates\WixUIFeatureTreeProject.xpt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Templates\WixUIInstallDirProject.xpt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Templates\WixUIMinimalProject.xpt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Templates\WixUIMondoProject.xpt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="WixBinding.addin">

Loading…
Cancel
Save