Detect the DirectX's version installed: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (SF: Joelito -> Joel.)
Line 24: Line 24:
Thanks KichiK for the "StrCpy" idea :p
Thanks KichiK for the "StrCpy" idea :p


Page author: [[User:Joelito|Joelito]]
Page author: [[User:Joel|Joel]]

Revision as of 17:41, 27 April 2005

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

Page author: Joel