Skip to content
⌘ NSIS Forum Archive

check .Net

3 posts

didava#

check .Net

sorry not working


Section "Test" SEC

SetOutPath "$INSTDIR"
SetOverwrite ifnewer

ReadRegDWORD $0 HKLM 'Software\Microsoft\NET Framework Setup\NDP\v2.0.50727' Install
!if !$0
File "vcredist_x86.exe"
;install .NET Framework
ExecWait "vcredist_x86.exe"
;Delete dotnetx.exe
Delete "vcredist_x86.exe"
!EndIf

SectionEnd