${SegmentFile}

${SegmentPre}
	; setup alternating (32bit/64bit) ocenaudio app dir. env. variable
	${SetEnvironmentVariablesPath} PAL:CUSTOM_OCENAUDIR '$AppDirectory\ocenaudio$Bits'
	
	; Win XP/Vista can only use the 32 bit version
	${If} $Bits = 64
		${If} ${IsWinXP}
		${OrIf} ${IsWinVista}
			${ReadLauncherConfig} $ProgramExecutable Launch ProgramExecutable
			${SetEnvironmentVariablesPath} PAL:CUSTOM_OCENAUDIR '$AppDirectory\ocenaudio32'
		${EndIf}
	${EndIf}
!macroend
