Get Flash Player version
Edit:
What happened here lol
My reply went to the top...
-Stu
14 posts
Name "Output"
OutFile "Output.exe"
!include "WordFunc.nsh"
!insertmacro WordFind
!include "FileFunc.nsh"
!insertmacro GetFileVersion
Section
ReadRegStr $0 HKCR "ShockwaveFlash.ShockwaveFlash\shell\open\command" ""
IfErrors notinst
${WordFind} '$0' '"' '+1' $0
${GetFileVersion} '$0' $1
IfErrors notinst
MessageBox MB_OK '$$0={$0}$\n$$1={$1}' IDOK end
notinst:
MessageBox MB_OK 'Macromedia Flash Player is not found'
end:
SectionEnd
Name "Output"
OutFile "Output.exe"
!include "WordFunc.nsh"
!insertmacro WordFind
!include "FileFunc.nsh"
!insertmacro GetFileVersion
Section
ReadRegStr $0 HKEY_CLASSES_ROOT "ShockwaveFlash.ShockwaveFlash\shell\open\command" ""
IfErrors notinst
${WordFind} '$0' ' %1' '-1{' $0
${WordFind} '$0' '"' '+1' $0
${GetFileVersion} '$0' $1
IfErrors notinst
MessageBox MB_OK '$$0={$0}$\n$$1={$1}' IDOK end
notinst:
MessageBox MB_OK 'Macromedia Flash Player is not installed'
end:
SectionEnd
Name "Output"
OutFile "Output.exe"
!include "FileFunc.nsh"
!insertmacro GetFileVersion
Section
ReadRegStr $0 HKCR "CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" ""
IfErrors notinst
${GetFileVersion} '$0' $1
IfErrors notinst
MessageBox MB_OK '$$0={$0}$\n$$1={$1}' IDOK end
notinst:
MessageBox MB_OK 'Macromedia Flash Player component for IE is not found'
end:
SectionEnd
Originally posted by Afrow UKThis doesn't work for flash version 8 as it installs ocx with another name (flash8.ocx).
http://nsis.sourceforge.net/wiki/Get..._Flash_version
Edit:
What happened here lol
My reply went to the top...
-Stu