[win32] don't hide option to install DirectX if already installed.
authorMartijn Kaijser <mcm.kaijser@gmail.com>
Sat, 14 Jun 2014 13:09:32 +0000 (15:09 +0200)
committerMartijn Kaijser <mcm.kaijser@gmail.com>
Sat, 14 Jun 2014 13:09:32 +0000 (15:09 +0200)
project/Win32BuildSetup/XBMC for Windows.nsi

index b7dc66a..6c66860 100644 (file)
@@ -307,11 +307,10 @@ SectionEnd
 ;--------------------------------
 ;DirectX webinstaller Section
 
-!if "${xbmc_target}" == "dx"
 !define DXVERSIONDLL "$SYSDIR\D3DX9_43.dll"
 
 Section "DirectX Install" SEC_DIRECTX
+
   SectionIn 1 2 #section is in install type Full/Normal and when not installed
 
   DetailPrint "Running DirectX Setup..."
@@ -344,9 +343,4 @@ Function .onInit
     MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST|MB_SETFOREGROUND "Windows Vista or above required.$\nThis program can not be run on Windows XP"
     Quit
   ${EndIf}
-  # set section 'SEC_DIRECTX' as selected and read-only if required dx version not found
-  IfFileExists ${DXVERSIONDLL} +3 0
-  IntOp $0 ${SF_SELECTED} | ${SF_RO}
-  SectionSetFlags ${SEC_DIRECTX} $0
-FunctionEnd
-!endif
\ No newline at end of file
+FunctionEnd
\ No newline at end of file