Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd February 2009, 13:52   #1
fun2sh
Junior Member
 
Join Date: Feb 2009
Posts: 6
Mui_page_directory

Hi,
Im a newbie, can u please tell me how i can edit data of the MUI_PAGE_DIRECTORY.
On this page we get eg. Space required : 1.0KB and Space available : 23.4GB .
I want to edit this string, i just need to add a space between the size and unit. Space required : 1.0 KB
Can someone help me.
fun2sh is offline   Reply With Quote
Old 23rd February 2009, 14:03   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Quote:
NSIS help file
4.8.1.38 SpaceTexts [req text [avail text]]
If parameters are specified, overrides the space required and space available text ("Space required: " and "Space available: " by default). If 'none' is specified as the required text no space texts will be shown.
Animaether is offline   Reply With Quote
Old 23rd February 2009, 14:16   #3
fun2sh
Junior Member
 
Join Date: Feb 2009
Posts: 6
I want to display the text as
Space required : 1.0 KB
Space available : 23.4 GB and not as
Space required : 1.0KB
Space available : 23.4GB which is the default.
Is this possible
can u help me with it.
fun2sh is offline   Reply With Quote
Old 14th March 2009, 21:32   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
As Animaether said, use the SpaceText command to set the prefix for those labels. Simply specify the string you want with the extra space.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 15th March 2009, 03:26   #5
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 442
fun2sh is looking for an extra space between the digits and the units. The SpaceTexts command will put text in front of the digits, but doesn't provide a way to put a space after the digits (or does it)?

Don
demiller9 is offline   Reply With Quote
Old 15th March 2009, 07:22   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Then modify the following LangStrings and prefix them with a space.
code:
# ^Byte
B
# ^Kilo
K
# ^Mega
M
# ^Giga
G

e.g.
code:
LangString ^Mega ${LANG_ENGLISH} " M"

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump