Detect the DirectX's version installed: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (SF: Joelito -> Joel.) |
m (Updated author links.) |
||
Line 1: | Line 1: | ||
{|align=right | |||
|<small>Author: [[{{ns:2}}:Joel|Joel]] ([[{{ns:3}}:Joel|talk]], [[{{ns:-1}}:Contributions/Joel|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
== Description == | == Description == | ||
This Will detect the current installed version of the DirectX. | This Will detect the current installed version of the DirectX. | ||
Line 23: | Line 27: | ||
</highlight-nsis> | </highlight-nsis> | ||
Thanks KichiK for the "StrCpy" idea :p | Thanks KichiK for the "StrCpy" idea :p | ||
Revision as of 23:28, 29 April 2005
Author: Joel (talk, contrib) |
Description
This Will detect the current installed version of the DirectX. Hope that will work with v7 and lower. Bugs? PM
The Script
OutFile "DirectX.exe" Name "Detect DirectX version" Caption "Detect DirectX version" XPStyle "on" Function .onInit ReadRegStr $0 HKLM "SOFTWARE\Microsoft\DirectX" "Version" StrCpy $1 $0 4 3 MessageBox MB_OK $1 Quit FunctionEnd Section "-boo" ; SectionEnd
Thanks KichiK for the "StrCpy" idea :p