File: wix_env_installation.wxs

package info (click to toggle)
level-zero 1.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,468 kB
  • sloc: cpp: 130,327; ansic: 16,197; python: 9,824; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!--
 Copyright (C) 2025 Intel Corporation

 SPDX-License-Identifier: MIT
-->
<CPackWiXPatch>
	<CPackWiXFragment Id="#PRODUCT">
		<Feature Id="EnvSetupFeature" Display="expand" Title="Set LEVEL_ZERO_V1_SDK_PATH" Level="1">
			<Component Id="SetEnvVar" Guid="ec0c4b66-da81-4d6a-b45a-5cddf0eec9ce" Directory="TARGETDIR">
				<!-- Set the environment variable during installation -->
				<Condition><![CDATA[NOT REMOVE]]></Condition>
				<Environment Id="SetLevelZeroSDKPath" Name="LEVEL_ZERO_V1_SDK_PATH" Value="[INSTALL_ROOT]" Permanent="no" Part="all" Action="set" System="yes"/>
			</Component>
			<Component Id="RemoveEnvVar" Guid="8fffc6ee-422c-4d2e-a80d-080ce60853c0" Directory="TARGETDIR">
				<!-- Remove the environment variable during uninstallation -->
				<Condition><![CDATA[REMOVE="ALL"]]></Condition>
				<Environment Id="RemoveLevelZeroSDKPath" Name="LEVEL_ZERO_V1_SDK_PATH" Action="remove" System="yes" Value="[INSTALL_ROOT]"/>
			</Component>
		</Feature>
	</CPackWiXFragment>
</CPackWiXPatch>