diff options
author | Rob Mensching <rob@firegiant.com> | 2022-07-14 15:19:53 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-07-14 16:02:24 -0700 |
commit | 229242cf7c328b89b5aa65ed7a04e33c8b93b393 (patch) | |
tree | de0a9547e73e46490b0946d6850228d5b30258b8 /src/tools/WixToolset.Templates | |
parent | f46ca6a9dce91607ffc9855270dd6998216e1a8b (diff) | |
download | wix-229242cf7c328b89b5aa65ed7a04e33c8b93b393.tar.gz wix-229242cf7c328b89b5aa65ed7a04e33c8b93b393.tar.bz2 wix-229242cf7c328b89b5aa65ed7a04e33c8b93b393.zip |
Rename "samples" segment to "tools"
This segment is a bit of a "miscellaneous section" in the WiX repo.
As such it has been difficult to name. I originally eschewed the
name "tools" because what is in the "wix" segment was once called
"tools". However, now that wix.exe is firmly established as the
entry point for WiX operations, I've become comfortable with its
segment being named "wix". That meant "tools" was again available
and "tools" better describes the content of this section.
Diffstat (limited to 'src/tools/WixToolset.Templates')
12 files changed, 152 insertions, 0 deletions
diff --git a/src/tools/WixToolset.Templates/WixToolset.Templates.csproj b/src/tools/WixToolset.Templates/WixToolset.Templates.csproj new file mode 100644 index 00000000..00b6c6d3 --- /dev/null +++ b/src/tools/WixToolset.Templates/WixToolset.Templates.csproj | |||
@@ -0,0 +1,20 @@ | |||
1 | <Project Sdk="Microsoft.NET.Sdk"> | ||
2 | <PropertyGroup> | ||
3 | <PackageType>Template</PackageType> | ||
4 | <Title>WixToolset Templates</Title> | ||
5 | <Description>Project and item template for the WiX Toolset.</Description> | ||
6 | |||
7 | <TargetFramework>netstandard2.0</TargetFramework> | ||
8 | <IncludeBuildOutput>false</IncludeBuildOutput> | ||
9 | <NoWarn>$(NoWarn);NU5128</NoWarn> | ||
10 | |||
11 | <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
12 | <IncludeContentInPack>true</IncludeContentInPack> | ||
13 | <ContentTargetFolders>content</ContentTargetFolders> | ||
14 | </PropertyGroup> | ||
15 | |||
16 | <ItemGroup> | ||
17 | <Compile Remove="**" /> | ||
18 | <Content Include="templates\**" /> | ||
19 | </ItemGroup> | ||
20 | </Project> | ||
diff --git a/src/tools/WixToolset.Templates/templates/FragmentItem/.template.config/template.json b/src/tools/WixToolset.Templates/templates/FragmentItem/.template.config/template.json new file mode 100644 index 00000000..2bd67b11 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/FragmentItem/.template.config/template.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "$schema": "http://json.schemastore.org/template", | ||
3 | "identity": "WixToolset.Templates.FragmentItem", | ||
4 | "name": "WiX Toolset Fragment", | ||
5 | "shortName": "fragment", | ||
6 | "author": "WiX Toolset Team", | ||
7 | "classifications": ["WixToolset", "Code"], | ||
8 | "tags": { | ||
9 | "language": "WiX", | ||
10 | "type": "item" | ||
11 | }, | ||
12 | "sourceName": "$safeprojectname$", | ||
13 | "defaultName": "Fragment" | ||
14 | } | ||
diff --git a/src/tools/WixToolset.Templates/templates/FragmentItem/Fragment.wxs b/src/tools/WixToolset.Templates/templates/FragmentItem/Fragment.wxs new file mode 100644 index 00000000..12e1bfc3 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/FragmentItem/Fragment.wxs | |||
@@ -0,0 +1,4 @@ | |||
1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
2 | <Fragment> | ||
3 | </Fragment> | ||
4 | </Wix> | ||
diff --git a/src/tools/WixToolset.Templates/templates/LibraryProject/$safeprojectname$.wixproj b/src/tools/WixToolset.Templates/templates/LibraryProject/$safeprojectname$.wixproj new file mode 100644 index 00000000..c3536151 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/LibraryProject/$safeprojectname$.wixproj | |||
@@ -0,0 +1,5 @@ | |||
1 | <Project Sdk="WixToolset.Sdk/4.0.0"> | ||
2 | <PropertyGroup> | ||
3 | <OutputType>Library</OutputType> | ||
4 | </PropertyGroup> | ||
5 | </Project> | ||
diff --git a/src/tools/WixToolset.Templates/templates/LibraryProject/.template.config/template.json b/src/tools/WixToolset.Templates/templates/LibraryProject/.template.config/template.json new file mode 100644 index 00000000..ddfa82e9 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/LibraryProject/.template.config/template.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "$schema": "http://json.schemastore.org/template", | ||
3 | "identity": "WixToolset.Templates.LibraryProject", | ||
4 | "name": "WiX Toolset Library", | ||
5 | "shortName": "wixlib", | ||
6 | "author": "WiX Toolset Team", | ||
7 | "classifications": ["WixToolset", "Library"], | ||
8 | "tags": { | ||
9 | "language": "WiX", | ||
10 | "type": "project" | ||
11 | }, | ||
12 | "sourceName": "$safeprojectname$", | ||
13 | "defaultName": "Library" | ||
14 | } | ||
diff --git a/src/tools/WixToolset.Templates/templates/LibraryProject/Fragment.wxs b/src/tools/WixToolset.Templates/templates/LibraryProject/Fragment.wxs new file mode 100644 index 00000000..12e1bfc3 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/LibraryProject/Fragment.wxs | |||
@@ -0,0 +1,4 @@ | |||
1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
2 | <Fragment> | ||
3 | </Fragment> | ||
4 | </Wix> | ||
diff --git a/src/tools/WixToolset.Templates/templates/ModuleProject/$safeprojectname$.wixproj b/src/tools/WixToolset.Templates/templates/ModuleProject/$safeprojectname$.wixproj new file mode 100644 index 00000000..cc813aab --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/ModuleProject/$safeprojectname$.wixproj | |||
@@ -0,0 +1,5 @@ | |||
1 | <Project Sdk="WixToolset.Sdk/4.0.0"> | ||
2 | <PropertyGroup> | ||
3 | <OutputType>Module</OutputType> | ||
4 | </PropertyGroup> | ||
5 | </Project> | ||
diff --git a/src/tools/WixToolset.Templates/templates/ModuleProject/.template.config/template.json b/src/tools/WixToolset.Templates/templates/ModuleProject/.template.config/template.json new file mode 100644 index 00000000..2be72f83 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/ModuleProject/.template.config/template.json | |||
@@ -0,0 +1,26 @@ | |||
1 | { | ||
2 | "$schema": "http://json.schemastore.org/template", | ||
3 | "identity": "WixToolset.Templates.ModuleProject", | ||
4 | "name": "WiX Toolset Module", | ||
5 | "shortName": "msm", | ||
6 | "author": "WiX Toolset Team", | ||
7 | "classifications": ["WixToolset", "Module"], | ||
8 | "tags": { | ||
9 | "language": "WiX", | ||
10 | "type": "project" | ||
11 | }, | ||
12 | "symbols": { | ||
13 | "company": { | ||
14 | "type": "parameter", | ||
15 | "defaultValue": "Your Company Name", | ||
16 | "replaces": "$company$" | ||
17 | }, | ||
18 | "version": { | ||
19 | "type": "parameter", | ||
20 | "defaultValue": "0.0.1", | ||
21 | "replaces": "$version$" | ||
22 | } | ||
23 | }, | ||
24 | "sourceName": "$safeprojectname$", | ||
25 | "defaultName": "Module" | ||
26 | } | ||
diff --git a/src/tools/WixToolset.Templates/templates/ModuleProject/Module.wxs b/src/tools/WixToolset.Templates/templates/ModuleProject/Module.wxs new file mode 100644 index 00000000..592c844d --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/ModuleProject/Module.wxs | |||
@@ -0,0 +1,8 @@ | |||
1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
2 | <Module Id="$safeprojectname$" Guid="PUT-GUID-HERE" Manufacturer="$company$" Language="0" Version="$version$"> | ||
3 | <Component Guid='PUT-GUID-HERE' Directory='TARGETDIR'> | ||
4 | <!-- TODO: Install something more useful than this source code file itself --> | ||
5 | <File Source="Module.wxs" /> | ||
6 | </Component> | ||
7 | </Module> | ||
8 | </Wix> | ||
diff --git a/src/tools/WixToolset.Templates/templates/PackageProject/$safeprojectname$.wixproj b/src/tools/WixToolset.Templates/templates/PackageProject/$safeprojectname$.wixproj new file mode 100644 index 00000000..17640703 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/PackageProject/$safeprojectname$.wixproj | |||
@@ -0,0 +1,2 @@ | |||
1 | <Project Sdk="WixToolset.Sdk/4.0.0"> | ||
2 | </Project> | ||
diff --git a/src/tools/WixToolset.Templates/templates/PackageProject/.template.config/template.json b/src/tools/WixToolset.Templates/templates/PackageProject/.template.config/template.json new file mode 100644 index 00000000..d12f3109 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/PackageProject/.template.config/template.json | |||
@@ -0,0 +1,26 @@ | |||
1 | { | ||
2 | "$schema": "http://json.schemastore.org/template", | ||
3 | "identity": "WixToolset.Templates.PackageProject", | ||
4 | "name": "WiX Toolset Package", | ||
5 | "shortName": "msi", | ||
6 | "author": "WiX Toolset Team", | ||
7 | "classifications": ["WixToolset", "Package"], | ||
8 | "tags": { | ||
9 | "language": "WiX", | ||
10 | "type": "project" | ||
11 | }, | ||
12 | "symbols": { | ||
13 | "company": { | ||
14 | "type": "parameter", | ||
15 | "defaultValue": "Your Company Name", | ||
16 | "replaces": "$company$" | ||
17 | }, | ||
18 | "version": { | ||
19 | "type": "parameter", | ||
20 | "defaultValue": "0.0.1", | ||
21 | "replaces": "$version$" | ||
22 | } | ||
23 | }, | ||
24 | "sourceName": "$safeprojectname$", | ||
25 | "defaultName": "Package" | ||
26 | } | ||
diff --git a/src/tools/WixToolset.Templates/templates/PackageProject/Package.wxs b/src/tools/WixToolset.Templates/templates/PackageProject/Package.wxs new file mode 100644 index 00000000..ac69e549 --- /dev/null +++ b/src/tools/WixToolset.Templates/templates/PackageProject/Package.wxs | |||
@@ -0,0 +1,24 @@ | |||
1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
2 | <Package Name="$safeprojectname$" Manufacturer="$company$" Version="$version$" UpgradeCode="PUT-GUID-HERE"> | ||
3 | <MajorUpgrade DowngradeError="A newer version of [ProductName] is already installed" /> | ||
4 | |||
5 | <Feature Id="Main"> | ||
6 | <ComponentGroupRef Id="Components" /> | ||
7 | </Feature> | ||
8 | </Package> | ||
9 | |||
10 | <Fragment> | ||
11 | <ComponentGroup Id="Components" Directory="INSTALLFOLDER"> | ||
12 | <Component> | ||
13 | <!-- TODO: Install something more useful than this source code file itself --> | ||
14 | <File Source="Package.wxs" /> | ||
15 | </Component> | ||
16 | </ComponentGroup> | ||
17 | </Fragment> | ||
18 | |||
19 | <Fragment> | ||
20 | <StandardDirectory Id="ProgramFiles6432Folder"> | ||
21 | <Directory Id="INSTALLFOLDER" Name="!(Property.Manufacturer) !(Property.ProductName)" /> | ||
22 | </StandardDirectory> | ||
23 | </Fragment> | ||
24 | </Wix> | ||