<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Get_Macromedia_Flash_version_2</id>
	<title>Get Macromedia Flash version 2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Get_Macromedia_Flash_version_2"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Get_Macromedia_Flash_version_2&amp;action=history"/>
	<updated>2026-08-21T11:13:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Get_Macromedia_Flash_version_2&amp;diff=12814&amp;oldid=prev</id>
		<title>RrsIPOV at 14:57, 26 July 2007</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Get_Macromedia_Flash_version_2&amp;diff=12814&amp;oldid=prev"/>
		<updated>2007-07-26T14:57:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Use ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
    Call GetFlashVER&lt;br /&gt;
    Pop $R0&lt;br /&gt;
    #Messagebox MB_OK &amp;quot;Returned value of FlashVer is [$R0]&amp;quot;&lt;br /&gt;
    IntCmp 9 $R0 Flash_Ok Flash_Ok Flash_NotOk&lt;br /&gt;
&lt;br /&gt;
#Set a flag to install flash    &lt;br /&gt;
Flash_NotOk: &lt;br /&gt;
    IntOp $0 ${SF_SELECTED} | ${SF_RO}&lt;br /&gt;
    SectionSetFlags ${InstallFlash} $0&lt;br /&gt;
        &lt;br /&gt;
Flash_Ok:&lt;br /&gt;
    # don&amp;#039;t need to to anything here.&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Script ==&lt;br /&gt;
Note that I&amp;#039;m using the [[Get_extention_of_file|GetFileExt]] function to find the version # which is at the end of the CurVer string.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
Function GetFlashVER&lt;br /&gt;
    Push $R0&lt;br /&gt;
    ClearErrors&lt;br /&gt;
    ReadRegStr $R0 HKLM &amp;quot;SOFTWARE\Classes\ShockwaveFlash.ShockwaveFlash\CurVer&amp;quot; &amp;quot;&amp;quot;&lt;br /&gt;
    #Messagebox MB_OK &amp;quot;CurVer of Flash [$R0]&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    IfErrors LBL_NOFLASH&lt;br /&gt;
    &lt;br /&gt;
    # Use &amp;#039;GetFileExt&amp;#039; to find the version number (and hope Adobe keeps increamenting it lineraly as a number)&lt;br /&gt;
    Push $R0&lt;br /&gt;
    Call GetFileExt&lt;br /&gt;
    Pop $R0&lt;br /&gt;
    Goto LBL_END&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
LBL_NOFLASH:&lt;br /&gt;
    StrCpy $R0 &amp;quot;0&amp;quot;        # Set the value to zero&lt;br /&gt;
    &lt;br /&gt;
LBL_END:&lt;br /&gt;
    Exch $R0&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Other Products Version Detection Functions]]&lt;/div&gt;</summary>
		<author><name>RrsIPOV</name></author>
	</entry>
</feed>