|
|
|
|
#1 |
|
Junior Member
|
Decimal Delimiter
When installer shows space required/space availabe it use "." as decimal delimiter. For instance: "Space required 13.1Mb"
It shows "." regardless of system regional settings. How can I make it use system's decimal delimiter rather then just "."? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Is it really that big of a deal?
anyways, there is already a bug report about it http://sourceforge.net/tracker/index...49&atid=373085 IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
|
Our QA team reported it, therefore, I have to investigate.
Thanks! Hope it will be fixed sometimes soon. |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
You might be able to set the label text yourself, using SectionGetSize to get the size of a section, adding up for each selected section, and rounding that off to megabytes with decimals - with a comma for a decimal - yourself.. if it's something that can't wait for a fix in NSIS itself
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2003
Location: California, USA
Posts: 37
|
Yes, I can change label text and can set whatver value I want. But I would be unable to change decimal delimiter in the number.
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Edit: All's well - Here's what I have now...
code: For any devs reading, SectionGetSize without the SectionSetSize returns 8039 - I've verified that the correct (7.8something MB) file is what is included in the installer. Last edited by Animaether; 9th January 2009 at 13:49. |
|
|
|
|
|
#7 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
That is the size in KB.
|
|
|
|
|
|
#8 | |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Quote:
code: Should read kbytes, then? I'll adjust my post above - should be a simple mult by 1024 (presuming KiB and not KB)? Edit: Yes - and done. |
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Keep in mind that using IntOp only works up to 2GB of required space. To be sure your code works for future projects, you might consider using the math plugin:
PHP Code:
Edit: Wait, I think I'm talking bullshit. Size in kilobytes, and all. >__< |
|
|
|
|
|
#10 |
|
Junior Member
|
The "required size" output on standard dialog constist of "LABEL" and "NUMBER":
"Required Space" "8.3MB" Left part can be set as a string. OK. Right part can be set only as a number. There are no way to change the format of the number. You cannot delete this number from the dialog and only left the label (wich can be edited as shown above). |
|
|
|
|
|
#11 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
er? have you tried the above code? That should replace the label and number; which should be the exact same control. Perhaps you're using a different UI, though? my example uses MUI
|
|
|
|
|
|
#12 |
|
Junior Member
|
deleted
|
|
|
|
|
|
#13 |
|
Junior Member
|
Thanks. Now I got it. Yes, it works.
However, we decided to defer this issue for now, and wait for NSIS team fix, as it require to many code for such a small issue (we also need to show space available... bla-bla-bla). |
|
|
|
|
|
#14 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
fair 'nuff
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|