aboutsummaryrefslogtreecommitdiff
path: root/src/ext/PowerShell/wixlib/PSExtension.wxs
blob: a1f16ee61e8d4e4fa526273639f2b992c830e2fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<!-- 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. -->


<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
    <!-- Gets the version of PowerShell installed. v1 and v2 share this key. -->
    <Fragment>
        <Property Id="POWERSHELLVERSION" Secure="yes">
            <RegistrySearch Id="PowerShellVersionSearch" Root="HKLM" Key="SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine" Name="PowerShellVersion" Type="raw" />
        </Property>
    </Fragment>
</Wix>