<?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=NsVersionInfo_plugin</id>
	<title>NsVersionInfo plugin - 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=NsVersionInfo_plugin"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=NsVersionInfo_plugin&amp;action=history"/>
	<updated>2026-04-27T08:11:15Z</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=NsVersionInfo_plugin&amp;diff=22480&amp;oldid=prev</id>
		<title>Seki: /* Download */ clarified the need of libverinfo</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=NsVersionInfo_plugin&amp;diff=22480&amp;oldid=prev"/>
		<updated>2012-09-07T06:57:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Download: &lt;/span&gt; clarified the need of libverinfo&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:57, 7 September 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Exe setup contains the plug-in DLLs as well as documentation, source code and sample script.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Exe setup contains the plug-in DLLs as well as documentation, source code and sample script.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://sebastien.kirche.free.fr/powerbuilder/libverinfo.zip libVerInfo] the lib I used to make the plugin, it is not needed to build the plugin.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://sebastien.kirche.free.fr/powerbuilder/libverinfo.zip libVerInfo] the lib I used to make the plugin, it is not needed &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to rebuild it &lt;/ins&gt;to build the plugin &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(a binary .a is already provided in the plugin sources)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Thanks ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Thanks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-21781:rev-22480 --&gt;
&lt;/table&gt;</summary>
		<author><name>Seki</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=NsVersionInfo_plugin&amp;diff=21781&amp;oldid=prev</id>
		<title>Seki: Created page with &quot;{{PageAuthor|Seki}}  == Links == [http://sebastien.kirche.free.fr/powerbuilder/setup_nsisversioninfo_1.0.4.exe nsVersionInfo plugin setup] from my [http://sebastien.kirche.free.f...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=NsVersionInfo_plugin&amp;diff=21781&amp;oldid=prev"/>
		<updated>2012-02-28T12:35:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageAuthor|Seki}}  == Links == [http://sebastien.kirche.free.fr/powerbuilder/setup_nsisversioninfo_1.0.4.exe nsVersionInfo plugin setup] from my [http://sebastien.kirche.free.f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageAuthor|Seki}}&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
[http://sebastien.kirche.free.fr/powerbuilder/setup_nsisversioninfo_1.0.4.exe nsVersionInfo plugin setup] from my [http://sebastien.kirche.free.fr/powerbuilder/ Powerbuilder components] page&lt;br /&gt;
&lt;br /&gt;
== Presentation ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;nsVersionInfo&amp;#039;&amp;#039;&amp;#039; is a plugin that can manipulate the [http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx VersionInfo resource] inside the Windows PE executables (.exe and .dll files), that is, the informations that are displayed when you right-click in explore and look at the &amp;quot;Version&amp;quot; tab. It can get and set information and has the special feature to be able to modify Powerbuilder executables without corrupting them (PB exes contain PB bytecode in an overlay at the end of the exe that is destroyed when using regular Windows resource API to modify the VersionInfo).&lt;br /&gt;
&lt;br /&gt;
You can typically use it to:&lt;br /&gt;
* get the version of a file to check during installation&lt;br /&gt;
* change the version (or any other value from the VersionInfo) of an application while distributing a patch that only contains upgrade scripts (and you need to upgrade the exe version number for consistency)&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Theses are examples from the sample in the installed files :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
  var $testexe&lt;br /&gt;
&lt;br /&gt;
  strcpy $testexe &amp;quot;$WINDIR\notepad.exe&amp;quot;&lt;br /&gt;
  nsVersionInfo::getFixedProductVersion $testexe&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getFixedProductVersion = $0&amp;quot;&lt;br /&gt;
  nsVersionInfo::getFixedFileVersion $testexe&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getFixedFileVersion = $0&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  ;WARNING : do that test with caution !!!&lt;br /&gt;
  ;nsVersionInfo::setFixedFileVersion $testexe 10 20 30 40&lt;br /&gt;
  ;pop $0&lt;br /&gt;
  ;DetailPrint &amp;quot;nsVersionInfo::setFixedFileVersion = $0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  ;WARNING : do that test with caution !!!&lt;br /&gt;
  ;nsVersionInfo::setFixedProductVersion $testexe 11 22 33 44&lt;br /&gt;
  ;pop $0&lt;br /&gt;
  ;DetailPrint &amp;quot;nsVersionInfo::setFixedProductVersion = $0&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  nsVersionInfo::getStringFileInfo $testexe &amp;quot;FileDescription&amp;quot;&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getStringFileInfo (FileDescription) = $0&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  nsVersionInfo::getStringFileInfo $testexe &amp;quot;ProductName&amp;quot;&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getStringFileInfo (ProductName) = $0&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  nsVersionInfo::getStringFileInfo $testexe &amp;quot;LegalCopyright&amp;quot;&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getStringFileInfo (LegalCopyright) = $0&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  nsVersionInfo::getStringFileInfo $testexe &amp;quot;NonStandardString&amp;quot;&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getStringFileInfo (NonStandardString) = $0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  nsVersionInfo::getLibVersion&lt;br /&gt;
  pop $0&lt;br /&gt;
  DetailPrint &amp;quot;nsVersionInfo::getLibVersion = $0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  ;WARNING : do that test with caution !!!&lt;br /&gt;
  ;nsVersionInfo::setStringFileInfo $testexe &amp;quot;NonStandardStringUnTrucPasVu&amp;quot; &amp;quot;Une valeur a la con&amp;quot;&lt;br /&gt;
  ;pop $0&lt;br /&gt;
  ;DetailPrint &amp;quot;nsVersionInfo::setStringFileInfo (NonStandardStringUnTrucPasVu) = $0&amp;quot;&lt;br /&gt;
  ;nsVersionInfo::setStringFileInfo $testexe &amp;quot;FileVersion&amp;quot; &amp;quot;42.12&amp;quot;&lt;br /&gt;
  ;pop $0&lt;br /&gt;
  ;DetailPrint &amp;quot;nsVersionInfo::setStringFileInfo (NonStandardStringUnTrucPasVu) = $0&amp;quot;&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notes&lt;br /&gt;
-----&lt;br /&gt;
* the plugin dll is built with MinGW.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
[http://sebastien.kirche.free.fr/powerbuilder/setup_nsisversioninfo_1.0.4.exe nsVersionInfo plugin setup]&lt;br /&gt;
&lt;br /&gt;
Exe setup contains the plug-in DLLs as well as documentation, source code and sample script.&lt;br /&gt;
&lt;br /&gt;
[http://sebastien.kirche.free.fr/powerbuilder/libverinfo.zip libVerInfo] the lib I used to make the plugin, it is not needed to build the plugin.&lt;br /&gt;
&lt;br /&gt;
== Thanks ==&lt;br /&gt;
Fabien POTENCIER (aka [[User:fabpot]]) for his [[Perl_plugin]] that I reused as a basis for nsVersionInfo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Plugins]]&lt;/div&gt;</summary>
		<author><name>Seki</name></author>
	</entry>
</feed>