Archive: Please add an optional no text CRC progress dialog


Please add an optional no text CRC progress dialog
Greetings:

I have asked this in the past a few times and have been told that I just need to modify the NSIS source code. Unfortunately, our legal department does not allow us to touch the source code, so that option is out.

The issue is that the initial "Setup is validating... 99%" (sorry, I know the text is incorrect) is in English with no option for localization nor for individual installer to adjust that text.

Would it be possible to add an option for suppressing this text into the NSIS installer settings? The result would be the installer icon and a numerical percentage only on that dialog that should be self-evident to the customer as to what is going on.

Is there any other ideas that anyone else has on resolving this? Turning off the CRC is pretty much out of the question as it could lead to installing corrupt data.

Derek


Did you try hex editing the stub? Replace the text with just %d%% (and a ending 0)


Sorry, I don't know all the files off hand. What is the file name of the stub? Thanks for the suggestion, I look forward to trying it out.


NSIS\stubs

Something like http://img46.imageshack.us/img46/8029/stub.png


Thanks Anders, I will take a shot at this.

Back to the original issue. We have been joyfully using NSIS for about 8 years now and this is one of the issues that our Localization QA and Cert always ding us on and we have to fight back with "Cannot Fix".

Do you think that this is something that could be fixed natively within NSIS in some manner? Something like adding a new stub "lzma_notext" and SetCompressor support?


Why not get your coders to submit a patch? Or would your legal department not allow that?

Stu


We are not allowed to download the source code, thus we are blocked from that as well.

I did find the string "verifying installer: %d" in the "lzma" stub but I could not find the string "Please wait while Setup is loading..." so hex editing the stub would only help with one part. If that string is stored elsewhere, please let me know and I would be willing to give it a shot.

The primary concern is the message in the French market and the Toubon Law since those English strings are shown on a French OS.

Thanks to both of you for responding on this matter.


http://nsis.svn.sourceforge.net/view...37&view=markup shows the 6 hardcoded english strings, "verifying installer: %d%%" appears in all stubs, "unpacking data: %d%%" is only present when solid compression is used. I don't remember anything along the lines of "Please wait while Setup is loading..."


Please wait while Setup is loading... is in MUI only. Without checking it is probably hard coded in modern.exe.

Stu


Originally posted by Afrow UK
Please wait while Setup is loading... is in MUI only. Without checking it is probably hard coded in modern.exe.
You are correct sir, thankfully it is easy to change that with ChangeUI and resource hacker

Oh, ok, so this is a little more complicated and yes, we are using MUI2. Thanks again for your help.

I have searched through the files in my NSIS install directory and I cannot find the "Please wait while Setup is loading" string in modern.exe or any other files. Can either of you direct me where I should be looking or if I shouldn't be looking for plain text?


Sorry, I forgot to search for text in wide format, so I did find "‚Please wait while Setup is loading..." in modern.exe

A hacking I will go... a hacking I will go... :)


You could have used Resource Hacker to modify modern.exe.

Stu


funny that, hacking the exe is fine but doing it the proper way in the code isn't allowed (sounds like you legal department have too many bugs of their own).

-daz


You could have used Resource Hacker to modify modern.exe.
I will, once I get back to this.

funny that, hacking the exe is fine but doing it the proper way in the code isn't allowed
At this point, it hasn't gone back to legal for approval (and I doubt they would give it). I am just trying to see if resolving this myself is even possible.

Their core issue they have has to do with downloading open source source code. There aren't that many problems with using pre-compiled open source solutions (NSIS for example =).

But to get back to the original point, it would certainly be beneficial if NSIS offered at least a No Text options for these messages natively. Even better if they were fully localized. Considering the massive and awesome localization support that NSIS offers (I have made internal version of our installers in pirate and wookie) the fact that this message is hard coded in English feels like a tragic oversight.

They can't be localized since the language stuff has not been loaded when that dialog is open


Originally posted by Anders
They can't be localized since the language stuff has not been loaded when that dialog is open
Fair enough and that makes sense. At that point a no text option would get us out of trouble with loc and cert.

Is there a reason those strings couldn't be localized by default for major languages? It would probably take under 1 KB.


I think they could be, but the issue is more like there is no code in those stubs for OS system language detection. While the strings themselves could be small there would probably be challenges with detection and displaying the strings properly in all situations.