aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixlib')
-rw-r--r--src/wixlib/PSExtension.wixproj19
-rw-r--r--src/wixlib/PSExtension.wxs12
2 files changed, 31 insertions, 0 deletions
diff --git a/src/wixlib/PSExtension.wixproj b/src/wixlib/PSExtension.wixproj
new file mode 100644
index 00000000..da2b6463
--- /dev/null
+++ b/src/wixlib/PSExtension.wixproj
@@ -0,0 +1,19 @@
1<?xml version="1.0" encoding="utf-8" ?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4
5<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
6 <PropertyGroup>
7 <ProjectGuid>{9d4ccdfc-840c-4d4e-a9b0-3d6015480645}</ProjectGuid>
8 <OutputName>ps</OutputName>
9 <OutputType>Library</OutputType>
10 <BindFiles>true</BindFiles>
11 <Pedantic>true</Pedantic>
12 </PropertyGroup>
13
14 <ItemGroup>
15 <Compile Include="PSExtension.wxs" />
16 </ItemGroup>
17
18 <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), wix.proj))\tools\WixBuild.targets" />
19</Project>
diff --git a/src/wixlib/PSExtension.wxs b/src/wixlib/PSExtension.wxs
new file mode 100644
index 00000000..a1f16ee6
--- /dev/null
+++ b/src/wixlib/PSExtension.wxs
@@ -0,0 +1,12 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4
5<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
6 <!-- Gets the version of PowerShell installed. v1 and v2 share this key. -->
7 <Fragment>
8 <Property Id="POWERSHELLVERSION" Secure="yes">
9 <RegistrySearch Id="PowerShellVersionSearch" Root="HKLM" Key="SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine" Name="PowerShellVersion" Type="raw" />
10 </Property>
11 </Fragment>
12</Wix>