<?xml version="1.0" encoding="utf-8"?>
<SapSetup Context="Init">
	<Product Name="$VC8RT" Guid="{7077BB7C-6C85-42e4-9D36-72D2FCA1484A}" WkstaDb="SapVc8RtWksta.xml" ProdVersion="9" CmdLine="$VC8RT" Visible="FALSE"/>
	<Component Guid="{8EF39596-2C13-4cfe-AA02-C4697BB55D80}" Name="$VC8RT" Min_Compliant_Version="1" Version="7" SysSize="7100">
		<!-- Keep older versions of "vcredist_x86.msi" on update! -->
		<Action Type="Script" RunAt="Install">
			<Src>
				<![CDATA[
					NwEngine.Context.Log.Write "Script-action: Checking if the VC8 Runtime is already installed in version '8.0.50727.762'."
					NwEngine.Variables.InsertVariable "VC8Redist_Exists", "FALSE"
					NWEngine.Variables.Persistent( "VC8Redist_Exists" ) = vbFalse
					strUninstallKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8E770F99-CF23-4BF9-BF4E-E3A2924FEB27}"
					If NwEngine.Shell.RegKeyExist( strUninstallKey ) Then
						NWEngine.Variables.AppendDefaultValue "VC8Redist_Exists", "TRUE"
						NwEngine.Context.Log.Write "Script-action: VC8 Runtime is already installed in this version '8.0.50727.762'."
					End If
				]]>
			</Src>
		</Action>
		<Action Type="Execute" RunAt="Install" Condition="%VC8Redist_Exists%=FALSE">
			<Src DisplayText="StrRunVcRedistMsi" Parameters=" /i &quot;%SapSrcDir%\System\vcredist_x86.msi&quot; /qn /norestart /l*v &quot;%SAPSetupDir%\Logs\NwSapSetup_VcRedist_x86.log&quot; ALLUSERS=2">%WinSysDir%\MsiExec.exe</Src>
		</Action>
	    <Action Type="File" RunAt="Install" Condition="1=0" Dst="%SapSetupDir%\system">
	      <Src>%SAPSrcDir%\system\vcredist_x86.msi</Src>
	    </Action>
	</Component>
</SapSetup>
