<?xml version="1.0" encoding="UTF-8"?>
<SapSetup Context="Init">
  <Product Guid="{F0700532-26EA-4396-A4AC-6462E457AE56}" Name="BW Add-On" CmdLine="BW_SHARED" WkstaDb="SapBwWksta.xml" ProdVersion="187" Visible="FALSE"/>
  <Component Guid="{9E0C163D-06F1-4d98-A2F8-847DD3B09011}" Name="$BW Files" Version="214" Min_Compliant_Version="25" Size="28432" SysSize="1200">
    <Action Type="File" Dst="%CommonProgramFiles%\SAP Shared\BW">
      <Src>%SAPsrcDir%\Bw\sapbexc350710.xla</Src>
    </Action>
    <Action Type="Script" RunAt="Install">
      <Src>
		<![CDATA[
			szSrcXLA = NWEngine.Variables.ResolveString("%SAPsrcDir%\Bw\sapbexc350710.xla")
			szDestXLA = NWEngine.Variables.ResolveString("%CommonProgramFiles%\SAP Shared\BW\sapbexc350710.xla")
			NwEngine.Context.Log.Write "Script action: Forcing copy step of " & szSrcXLA
			If NwEngine.Shell.FileExist( szSrcXLA ) Then
				If Not NwEngine.Shell.CopyFileEx (szSrcXLA, szDestXLA, vbTrue) Then
					NwEngine.Context.Log.WriteWarning "Script Action: Forcing copy step failed!"
				End If
				NwEngine.Context.Log.Write "Script Action: Trying to set Read-Only attribute for " & szDestXLA
				Set fso = CreateObject("Scripting.FileSystemObject")
				If Not fso Is Nothing Then
					Set fsoXLA = fso.GetFile( szDestXLA )
					If Not fsoXLA Is Nothing Then
						fsoXLA.attributes = fsoXLA.attributes + 1
						NwEngine.Context.Log.Write "Script Action: Read-Only Flag is set."
					Else
						NwEngine.Context.Log.WriteWarning "Script Action: fso.GetFile() failed."
					End If
				Else
					NwEngine.Context.Log.WriteWarning "Script Action: Scripting.FileSystemObject cannot be created."
				End If
			End If
		]]>
      </Src>
    </Action>
    <Action Type="File" Dst="%WinSysDir%">
      <Src>%SAPSrcDir%\Bw\wdba.dll</Src>
    </Action>
    <Action Type="Registry" Dst="HKCR\.bex">
      <RegValue>bex_file</RegValue>
    </Action>
    <Action Type="Registry" Dst="HKCR\bex_file">
      <RegValue>SAP BEx Shortcut</RegValue>
    </Action>
    <Action Type="Registry" Dst="HKCR\bex_file\DefaultIcon">
      <RegValue>&quot;%SapFrontEndDir%\BW\wbklnch.exe&quot;</RegValue>
    </Action>
    <Action Type="Registry" Dst="HKCR\bex_file\shell\open\command">
      <RegValue>&quot;%SapFrontEndDir%\BW\wbklnch.exe&quot; %%1</RegValue>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\SapGui">
      <Src>%SAPSrcDir%\SapGui\wdbwwiz.dll</Src>
      <Src>%SAPSrcDir%\SapGui\wdbex.ocx</Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\Bw">
      <Src>%SAPSrcDir%\Bw\wdbwpub.exe</Src>
      <Src>%SAPSrcDir%\Bw\wdbpwpub.exe</Src>
    </Action>
    <Action Type="File" Dst="%CommonProgramFiles%\ESRI">
      <Src>%SapSrcDir%\Bw\MapObjects\af20.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\dforrt.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\efileio.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\elib.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\ergxlib.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\ethrlib.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\iso8211.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\libtiff.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\mo20.lic</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\mobase.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\mofeat.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\mogridio.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\mtch.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\pe.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\sg.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\aiimage20.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\mo20.ocx</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\shape20.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\memfile.dll</Src>
      <Src>%SapSrcDir%\Bw\MapObjects\memtable20.dll</Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\SapGui">
      <Src>%SAPSrcDir%\SapGui\formx.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\otxrt.dll</Src>
      <Src>%SAPSrcDir%\SapGui\otxrtvb6.dll</Src>
      <Src>%SAPSrcDir%\SapGui\otxshortcutbar.dll</Src>
      <Src>%SAPSrcDir%\SapGui\otxmenu.dll</Src>
      <Src>%SAPSrcDir%\SapGui\otxpersist.dll</Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\SapGui">
      <Src>%SAPSrcDir%\SapGui\vsocx32.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\vsocx6.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\vsflex7l.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\sizerone.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\awkone.ocx</Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\SapGui">
      <Src>%SAPSrcDir%\SapGui\wdbz.ocx</Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\Bw">
      <Src>%SapSrcDir%\Bw\wdbbctrl.ocx</Src>
      <Src>%SapSrcDir%\Bw\wdbbapp.exe</Src>
      <Src>%SapSrcDir%\Bw\wdbbwait.ani</Src>
      <Src>%SapSrcDir%\Bw\wdbrlog.exe</Src>
      <Src>%SapSrcDir%\Bw\wdbtask.exe</Src>
      <Src>%SapSrcDir%\Bw\wbklnch.exe</Src>
    </Action>
    <Action Type="Registry" Dst="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Compatibility32">
      <RegValue Name="wdbbapp">0x40000000</RegValue>
      <RegValue Name="wdbpwpub">0x40000000</RegValue>
      <RegValue Name="wdbrlog">0x40000000</RegValue>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\SapGui">
      <Src>%SAPSrcDir%\SapGui\wdbmbm2.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\wdbcbexc.dll</Src>
      <Src>%SAPSrcDir%\SapGui\wdbrtre2.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\wdbrlog.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\wdbrprn.ocx</Src>
      <Src>%SAPSrcDir%\SapGui\wdbspres.dll</Src>
      <Src>%SAPSrcDir%\SapGui\wdboobjb.dll</Src>
      <Src>%SAPSrcDir%\SapGui\wdbfodlg.dll</Src>
      <Src>%SAPSrcDir%\SapGui\wdbvved.dll</Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\SapGui">
      <Src>%SAPSrcDir%\SapGui\wdbranim.exe</Src>
    </Action>
    <Action Type="Script" RunAt="Install">
      <Src>
		<![CDATA[
			NwEngine.Shell.DeleteFile "%TEMP%\Excel8.0\wdbmbm2.exd"
		]]>
      </Src>
    </Action>
    <Action Type="File" Dst="%SapFrontEndDir%\Bw">
      <Src>%SAPSrcDir%\Bw\bwcrw32.exe</Src>
    </Action>
    <Action Description="Business Explorer Analyzer (Version SAP BW 3.x) - Release Independent" Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Analyzer (SAP BW 3.x)">
      <Src>&quot;%CommonProgramFiles%\SAP Shared\BW\sapbex.xla&quot;</Src>
    </Action>
    <Action Description="Business Explorer Browser (Version SAP BW 3.x) - Release Independent" Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Browser (SAP BW 3.x)">
      <Src>&quot;%SapFrontEndDir%\Bw\wdbbapp.exe&quot;</Src>
    </Action>
    <Action Description="Business Explorer Query Designer (Version SAP BW 3.x) - Release Independent" Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Query Designer (SAP BW 3.x)">
      <Src>&quot;%SapFrontEndDir%\Bw\wdbrlog.exe&quot;</Src>
    </Action>
    <Action Description="Business Explorer Web Application Designer (Version SAP BW 3.x) - Release Independent" Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Web Application Designer (SAP BW 3.x)">
      <Src>&quot;%SapFrontEndDir%\Bw\wdbpwpub.exe&quot;</Src>
    </Action>
    <Action Description="Business Explorer Formatted Reporting (Version SAP BW 3.x) - Release Independent" Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Formatted Reporting (SAP BW 3.x)">
      <Src>&quot;%SapFrontEndDir%\Bw\bwcrw32.exe&quot;</Src>
    </Action>
    <Action Description="Business Explorer Download Scheduler (Version SAP BW 3.x) - Release Independent" Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Download Scheduler (SAP BW 3.x)">
      <Src>&quot;%SapFrontEndDir%\Bw\wdbtask.exe&quot;</Src>
    </Action>
  </Component>
  <Component Guid="{46EC8C78-DADC-4424-9350-5A2E4BD2C7C1}" Name="$MAP" Version="11" Size="1800">
    <Action Type="File" Dst="%SapFrontEndDir%\BW\Planning\MAP">
      <Src>%SapSrcDir%\BW\Planning\MAP\MAPDataLayer.xla</Src>
      <Src>%SapSrcDir%\BW\Planning\MAP\MAPDialogLayer.xla</Src>
      <Src>%SapSrcDir%\BW\Planning\MAP\MAPTextElements.txt</Src>
    </Action>
    <Action Type="Registry" Dst="HKCR\SAP.MAP.Frontend\path">
      <RegValue>%SapFrontEndDir%\BW\Planning\MAP</RegValue>
    </Action>
    <Action Type="Shortcut" Dst="ProgramFiles\Business Explorer\Business Explorer (SAP BW 3.x)\Planning Applications\Merchandise and Assortment Planning">
      <Src>&quot;%SapFrontEndDir%\BW\Planning\MAP\MAPDialogLayer.xla&quot;</Src>
    </Action>
  </Component>
</SapSetup>
