Get the system decimal delimiter: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (SF: Joelito -> Joel.) |
m (Updated author links.) |
||
Line 1: | Line 1: | ||
{|align=right | |||
|<small>Author: [[{{ns:2}}:Joel|Joel]] ([[{{ns:3}}:Joel|talk]], [[{{ns:-1}}:Contributions/Joel|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
== The Script == | == The Script == | ||
<highlight-nsis> | <highlight-nsis> | ||
Line 21: | Line 25: | ||
SectionEnd | SectionEnd | ||
</highlight-nsis> | </highlight-nsis> | ||
Revision as of 02:58, 30 April 2005
Author: Joel (talk, contrib) |
The Script
OutFile "Tester.exe" Name "Tester" Caption "Tester" XPStyle "on" !define LOCALE_SYSTEM_DEFAULT 0x400 !define LOCALE_USER_DEFAULT 0x800 !define LOCALE_SDECIMAL 0xE !define MAX_PATH 260 Function ".onInit" System::Call "kernel32::GetLocaleInfoA(i ${LOCALE_SYSTEM_DEFAULT}, i ${LOCALE_SDECIMAL}, t .r0, i ${MAX_PATH}) i r1" MessageBox MB_OK|MB_ICONINFORMATION "This is your decimal delimiter -> $\"$0$\"" abort FunctionEnd Section "-boo" ; SectionEnd