<?xml version="1.0" encoding="utf-8"?>
<nvi name="NvContainer.NvapiMonitor" title="${{title}}" version="${{version}}" versionText="${{version}}" timestamp="${{timestamp}}" disposition="demand" hidden="true" installerMin="2.1002.234.2014">
	<strings>
		<string name="title" value="NVIDIA NVAPI Monitor plugin for NvContainer"/>
		<string name="version" value="1.37"/>
		<string name="timestamp" value="2022-03-01T06:37:35"/>
		<string name="InstallFolderName" value="${{NvidiaProgramFiles}}\NvContainer"/>
		<string name="PluginFolderName" value="${{InstallFolderName}}\plugins\LocalSystem"/>
		<string name="LogFilePath" value="${{NvidiaCommonAppData}}\NvPluginNvapiMonitor.log"/>
		<string name="NvapiMonitorPluginBinaryName" value="NvPluginNvapiMonitor.dll"/>
		<string name="NvapiMonitorRegistryKey" value="${{NvidiaSoftwareKey}}\NvContainer\NvapiMonitor"/>
	</strings>
	<filter name="32bit" platform="x86"/>
	<filter name="64bit" platform="amd64"/>
	<dependencies>
		<package type="requires" package="NvContainer.LocalSystem"/>
	</dependencies>
	<properties>
		<string name="FailureLogLocation" value="${{LogFilePath}}"/>
		<bool name="CollectLogsOnFailure" value="true"/>
		<bool name="MandatoryFeature" value="false"/>
	</properties>
	<manifest>
		<file name="NvPluginNvapiMonitor.nvi"/>
		<file name="x86\${{NvapiMonitorPluginBinaryName}}"/>
		<file name="x86_64\${{NvapiMonitorPluginBinaryName}}"/>
	</manifest>
	<phases>
		<standard phase="createRegkey">
			<addRegistry keyName="${{NvapiMonitorRegistryKey}}"/>
			<addRegistry keyName="${{NvapiMonitorRegistryKey}}" valueName="LogFile" value="${{LogFilePath}}" type="REG_SZ"/>
		</standard>
		<standard phase="deleteRegKey" when="uninstall" onError="ignore">
			<deleteRegistryKeyTree keyName="${{NvapiMonitorRegistryKey}}"/>
		</standard>
		<standard phase="createLogFolder" onError="ignore" when="install">
			<createDirectory target="${{NvidiaCommonAppData}}"/>
		</standard>
		<standard phase="deleteAppData" onError="ignore" when="uninstall">
			<deleteFile target="${{LogFilePath}}*"/>
		</standard>
		<standard phase="deleteOldPlugins" onError="ignore">
			<deleteFile target="${{PluginFolderName}}\${{NvapiMonitorPluginBinaryName}}"/>
			<deleteFile target="${{PluginFolderName}}\_${{NvapiMonitorPluginBinaryName}}"/>
		</standard>
		<if filter="32bit">
			<standard phase="copyFilesX86" condition="MandatoryFeature">
				<copyFile target="${{PluginFolderName}}\${{NvapiMonitorPluginBinaryName}}" source="x86\${{NvapiMonitorPluginBinaryName}}"/>
			</standard>
			<standard phase="copyFilesX86" condition="!MandatoryFeature">
				<copyFile target="${{PluginFolderName}}\_${{NvapiMonitorPluginBinaryName}}" source="x86\${{NvapiMonitorPluginBinaryName}}"/>
			</standard>
		</if>
		<if filter="64bit">
			<standard phase="copyFilesAMD64" condition="MandatoryFeature">
				<copyFile target="${{PluginFolderName}}\${{NvapiMonitorPluginBinaryName}}" source="x86_64\${{NvapiMonitorPluginBinaryName}}"/>
			</standard>
			<standard phase="copyFilesAMD64" condition="!MandatoryFeature">
				<copyFile target="${{PluginFolderName}}\_${{NvapiMonitorPluginBinaryName}}" source="x86_64\${{NvapiMonitorPluginBinaryName}}"/>
			</standard>
		</if>
	</phases>
</nvi>
