<?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=BaseConvert_plug-in</id>
	<title>BaseConvert plug-in - 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=BaseConvert_plug-in"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=BaseConvert_plug-in&amp;action=history"/>
	<updated>2026-06-07T07:35:09Z</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=BaseConvert_plug-in&amp;diff=21114&amp;oldid=prev</id>
		<title>Zinthose: /* Download */ TODO File Name Typo</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=BaseConvert_plug-in&amp;diff=21114&amp;oldid=prev"/>
		<updated>2011-10-25T10:32:29Z</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; TODO File Name Typo&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 10:32, 25 October 2011&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-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&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;== Download ==&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;== Download ==&lt;/div&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;&amp;lt;attach&amp;gt;BaseConervt.zip&amp;lt;/attach&amp;gt;&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;&amp;lt;attach&amp;gt;BaseConervt.zip&amp;lt;/attach&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; &amp;lt;sup&amp;gt;&amp;#039;&amp;#039;TODO: Correct File Name Typo&amp;#039;&amp;#039;&amp;lt;/sup&lt;/ins&gt;&amp;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;== Example ==&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;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-21113:rev-21114 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zinthose</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=BaseConvert_plug-in&amp;diff=21113&amp;oldid=prev</id>
		<title>Zinthose: Initial Release</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=BaseConvert_plug-in&amp;diff=21113&amp;oldid=prev"/>
		<updated>2011-10-25T10:22:28Z</updated>

		<summary type="html">&lt;p&gt;Initial Release&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageAuthor|Zenpoy}}&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
This plug-in is based on the source code on [http://www.codeproject.com/KB/recipes/BaseConverter.aspx#xx2812840xx CodeProject].&lt;br /&gt;
&lt;br /&gt;
To quote the original article:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The algorithm can convert a positive integer number, potentially thousands of digits long between any bases in the range from 2 to 36, including but not limited to binary, octal, decimal, hexadecimal.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Questions, comments, and bugs can be posted on the [http://forums.winamp.com/showthread.php?t=336509 forum].&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
&amp;lt;attach&amp;gt;BaseConervt.zip&amp;lt;/attach&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;Name &amp;quot;testScript&amp;quot;&lt;br /&gt;
#More plugins&lt;br /&gt;
&lt;br /&gt;
!addplugindir &amp;quot;.\UNICODE\plugin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!include &amp;#039;LogicLib.nsh&amp;#039;&lt;br /&gt;
!include &amp;#039;FileFunc.nsh&amp;#039;&lt;br /&gt;
!include &amp;quot;WordFunc.nsh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# General Symbol Definitions&lt;br /&gt;
!define VERSION 1.0.0&lt;br /&gt;
!define APP_NAME testScript&lt;br /&gt;
!define COMPANY &amp;quot;&amp;quot;&lt;br /&gt;
!define URL &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Included files&lt;br /&gt;
!include Sections.nsh&lt;br /&gt;
&lt;br /&gt;
# Installer pages&lt;br /&gt;
Page instfiles&lt;br /&gt;
&lt;br /&gt;
# Installer attributes&lt;br /&gt;
OutFile ${APP_NAME}_w.exe&lt;br /&gt;
InstallDir $PLUGINSDIR&lt;br /&gt;
;InstallDir $DESKTOP&lt;br /&gt;
CRCCheck on&lt;br /&gt;
XPStyle on&lt;br /&gt;
Icon &amp;quot;${NSISDIR}\Contrib\Graphics\Icons\classic-install.ico&amp;quot;&lt;br /&gt;
SilentInstall normal&lt;br /&gt;
VIProductVersion 1.0.0.0&lt;br /&gt;
VIAddVersionKey ProductName &amp;quot;${APP_NAME}&amp;quot;&lt;br /&gt;
VIAddVersionKey ProductVersion &amp;quot;${VERSION}&amp;quot;&lt;br /&gt;
VIAddVersionKey CompanyName &amp;quot;${COMPANY}&amp;quot;&lt;br /&gt;
VIAddVersionKey FileVersion &amp;quot;${VERSION}&amp;quot;&lt;br /&gt;
VIAddVersionKey FileDescription &amp;quot;&amp;quot;&lt;br /&gt;
VIAddVersionKey LegalCopyright &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Installer sections&lt;br /&gt;
Section -Main SEC0000&lt;br /&gt;
push &amp;quot;a&amp;quot;&lt;br /&gt;
call Hex2Dec&lt;br /&gt;
pop $R0&lt;br /&gt;
&lt;br /&gt;
push &amp;quot;123&amp;quot;&lt;br /&gt;
call Hex2Dec&lt;br /&gt;
pop $R0&lt;br /&gt;
&lt;br /&gt;
push &amp;quot;513498571495&amp;quot;&lt;br /&gt;
call Hex2Dec&lt;br /&gt;
pop $R0&lt;br /&gt;
&lt;br /&gt;
push &amp;quot;fffffffffffffffffffffffffffff&amp;quot;&lt;br /&gt;
call Hex2Dec&lt;br /&gt;
pop $R0&lt;br /&gt;
&lt;br /&gt;
BaseConvert::Convert 36 2 &amp;quot;asfjewof4fdf0g0dsaxz&amp;quot;&lt;br /&gt;
pop $R1&lt;br /&gt;
DetailPrint &amp;quot;Convert asfjewof4fdf0g0dsaxz from base 36 to 2: $R1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
BaseConvert::Convert 2 36 &amp;quot;$R1&amp;quot;&lt;br /&gt;
pop $R2&lt;br /&gt;
DetailPrint &amp;quot;Convert $R1 from base 2 to 36: $R2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!define base_7 123435134&lt;br /&gt;
&lt;br /&gt;
BaseConvert::Convert 7 17 &amp;quot;${base_7}&amp;quot;&lt;br /&gt;
pop $R2&lt;br /&gt;
DetailPrint &amp;quot;Convert ${base_7} from base 7 to 17: $R2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
BaseConvert::Convert 17 10 &amp;quot;$R2&amp;quot;&lt;br /&gt;
pop $R1&lt;br /&gt;
DetailPrint &amp;quot;Convert $R2 from base 17 to 10: $R1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
BaseConvert::Convert 10 11 &amp;quot;$R1&amp;quot;&lt;br /&gt;
pop $R2&lt;br /&gt;
DetailPrint &amp;quot;Convert $R1 from base 10 to 11: $R2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
BaseConvert::Convert 11 7 &amp;quot;$R2&amp;quot;&lt;br /&gt;
pop $R1&lt;br /&gt;
DetailPrint &amp;quot;Convert $R2 from base 11 to 7: $R1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
DetailPrint &amp;quot;input: ${base_7}  output: $R1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SectionEnd&lt;br /&gt;
&lt;br /&gt;
# Installer functions&lt;br /&gt;
Function .onInit&lt;br /&gt;
    InitPluginsDir&lt;br /&gt;
    SetSilent normal&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&lt;br /&gt;
Function Hex2Dec&lt;br /&gt;
    exch $R0&lt;br /&gt;
	push $R1&lt;br /&gt;
	DetailPrint &amp;quot;Converting (Hex2Dec): $R0&amp;quot;&lt;br /&gt;
	BaseConvert::Convert 16 10 &amp;quot;$R0&amp;quot;&lt;br /&gt;
	pop $R1&lt;br /&gt;
	DetailPrint &amp;quot;To (dll): $R1&amp;quot;&lt;br /&gt;
    IntFmt $R0 &amp;quot;%ld&amp;quot; &amp;quot;0x$R0&amp;quot;&lt;br /&gt;
	DetailPrint &amp;quot;To (intfmt): $R0&amp;quot;&lt;br /&gt;
	pop $R1&lt;br /&gt;
    pop $R0&lt;br /&gt;
FunctionEnd&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Plugins]]&lt;/div&gt;</summary>
		<author><name>Zinthose</name></author>
	</entry>
</feed>