<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>

	<Product 
  		Name='OGRE XSI v5.x Exporter' 
		Id='6F7C886C-AC7C-481B-B244-236DF5D2D312'
		Language='1033' Codepage='1252' 
		Version='1.7.0' Manufacturer='OGRE Project'>
    	<Package Id='????????-????-????-????-????????????' Keywords='Installer'
      		Description="OGRE XSI v5.x Exporter Installer"
			Comments='Softimage XSI v5.x Exporter for OGRE' Manufacturer='OGRE Project'
      		InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />

		<Media Id='1' Cabinet='1.cab' EmbedCab='yes' DiskPrompt="CD 1" />
		<Property Id='DiskPrompt' Value="OGRE XSI v5.x Exporter Installer [1]" />
		<!-- Can't automatically determine XSI v5 location 
		This is because Softimage have made the path to the 'InstallRoot' property include a key with
		the name of the install folder in it!! RegistrySearch doesn't support wildcards.
		Therefore all we can do is validate what the user selects. Searching the entire system takes too long.
		-->

		<!-- Try to validate (doesn't work yet?) -->
		<Property Id="FILEEXISTS">
			<DirectorySearch Id="CheckFileDir" Path="[INSTALLDIR]\bin" Depth="0">
			  <FileSearch Id="CheckFile" Name="xsi.exe" />
		  </DirectorySearch>
		</Property>

		<Directory Id='TARGETDIR' Name='SourceDir'>
			<!-- VC runtimes -->
			<Merge Id='CRT' Language='0' src='C:\Program Files\Common Files\Merge Modules\microsoft_vc80_crt_x86.msm' DiskId='1' />
			<Merge Id='CRT Policy' Language='0' src='C:\Program Files\Common Files\Merge Modules\policy_8_0_Microsoft_VC80_CRT_x86.msm' DiskId='1' />
			<!-- Exporter files -->
			<Directory Id="SoftimageFolder" LongName="Softimage" Name="Softimg">
				<Directory Id='INSTALLDIR' Name='XSI_5.11'>
					<Directory Id='XSIAppDir' Name="App" LongName="Application">
						<Directory Id='XSIBinDir' Name="bin">
							<Component Id='OgreMainComp' Guid='B79A13E2-E64C-47F0-B412-F0D543639161'>
								<File Id='OgreMainDLL' Name='OgreMain.dll' DiskId='1'
									src='..\..\Common\bin\release\OgreMain.dll' Vital='yes' />
							</Component>
						</Directory>
						<Directory Id='XSIPluginDir' Name="Plugins">
							<Component Id='PluginDLLComp' Guid='0DD17F80-C75B-469D-BDE4-9B6841B645B3'>
								<File Id='OgreXSIPlugin' Name='OgreExp.dll' LongName='OgreXSIExporter.dll' DiskId='1'
									src='..\bin\release\OgreXSIExporter.dll' Vital='yes' />
							</Component>
						</Directory>
					</Directory>
				</Directory>
			</Directory>
			<!-- Docs -->
			<Directory Id="ProgramFilesFolder" Name="PFiles">
				<Directory Id="OGREFolder" Name="OGRE">
					<Directory Id="OGREXSIFOLDER" Name="XSI5Exp" LongName="XSI v5 Exporter">
						<Component Id="DocsComp" Guid="9F67071C-B3D9-4A2D-9F76-FBEDE59CFB4D">
							<File Id="ReadmeFile" Name="Readme.htm" DiskId="1"
								src="..\OGREXSI_Readme.html" Vital="no">
								<Shortcut Id="ReadmeShortcut" Directory="OGREXSI5ProgMenuDir" Name="Readme"/>
							</File>
							<File Id="ScreenshotPage1" Name="page1.gif" DiskId="1"
								src="..\page1.gif" Vital="no"/>
							<File Id="ScreenshotPage2" Name="page2.gif" DiskId="1"
								src="..\page2.gif" Vital="no"/>
							<File Id="ScreenshotPage3" Name="page3.gif" DiskId="1"
								src="..\page3.gif" Vital="no"/>
								
						</Component>
					</Directory>
				</Directory>
			</Directory>
			<!-- Start menu -->
			<Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs">
				<Directory Id="OGREProgramMenuDir" Name='OGRE'>
					<Directory Id="OGREXSI5ProgMenuDir" Name="XSI5" LongName="XSI v5 Exporter"/>
				</Directory>
			</Directory>
			

		</Directory>

		<Feature Id='ExporterFeature' Level='1' ConfigurableDirectory="INSTALLDIR" Title='Exporter' 
			Description='The main exporter files; THIS MUST BE INSTALLED IN YOUR XSI_5.x folder.' 
			Absent='disallow' AllowAdvertise='no'>
			<ComponentRef Id='PluginDLLComp' />
			<ComponentRef Id='OgreMainComp' />
			<MergeRef Id='CRT' />
			<MergeRef Id='CRT Policy' />
			<Condition Level="0">FILEEXISTS</Condition>
		</Feature>
		<Feature Id="DocsFeature" Level='1' ConfigurableDirectory="OGREXSIFOLDER" Title='Documentation'
			AllowAdvertise='no'>
			<ComponentRef Id="DocsComp" />
		</Feature>
		<!-- enable UI -->
		<UIRef Id="WixUI" />
	</Product>
</Wix>

	

