Archive: GetFileSize, & MUI_UnWelcomePage_Title_3Lines...


GetFileSize, & MUI_UnWelcomePage_Title_3Lines...
Hi guys !

Well just a few questions I couldn't figure out properly (even with the Manual, but my undestanding of technical issues in a foreign language (ie: non-french) isn't always so good)

I'm working on a NSIS installer for Exact Audio Copy that would release the full program with documentation, and of course lots of external encoders...
But some of them (AAC encoders, mostly Nero-based like nEncode, NeroFrontEnd, etc) needs to use common files (dll & exe)

So I try to figure out how to manage these common files installation / uninstallation (overwrite if newer files only, uninstall files only if no other codecs nees them)

The "GetDLLVersion" works fine on dll or exe files, but some of them just don't include version information...
So If VersionInfo is missing, let's try a Size comparison.

1. Get the size of a file : I was just surprised to see that there isn't such GetFileSize command in NSIS, which would be really nice easy & fast for each case where MD5 comparison isn't needed.
But I found Henri Adriaens' very usefull script that seems to do well Get a file's size

2. The MUI Uninstaller : it seems that there is no equivalent of "MUI_WELCOMEPAGE_TITLE_3LINES" for the uninstaller, which is a pity : my title is too long on welcome & finish pages... Do I have to create my own UI with RessourceHacker (that's the name I guess) ?

3. How to stop being a f***g n00b ?
I mean, as far as I have absolutely no experience in programming (few VBA and PHP bases, and only HTML real knowledge), my code seems always too litteral (a huge list of Flow Control Instructions based on If, StrComp, Goto...)
I'm looking for the equivalent of PHP's If, ElseIf, ElseIf...

But I can't find any proper tutorial that would help me to access to a more "algorithmic" way of thinking my code, which could make it faster, and give more than that sucking 2-or-3 choices only per comparison (IfYes IfNot IfElse)
I mean, there are such tutorials, but they're frequently just out of my own analysis capacity (did I mentionned computing wasn't my cursus ?)

Well that's it. If you got a Tip for my UNWELCOMEFINISH_PAGE_TITLE_3LINES I'd be really happy (an ugly title ins't technically disturbing, but remains... an ugly title)

Poulpos
poulpos@caramail.com


NSIS Archive link may help in most cases http://nsis.sourceforge.net/archive/browse.php
1. http://nsis.sourceforge.net/archive/...ances=0,11,211 also can give file size without file open/close.
2. Forum search http://forums.winamp.com/showthread....ghlight=3LINES (the same info is in Manual "Page Settings apply to a single page and should be set before inserting a page macro." but it was not easy to understand without sample for me too :(


Thanx !
Haaaaa, nice !

Thanks, it works great for the uninstaller welcome page. I still do not understand why there is no kind of
!define MUI_UNWELCOMEPAGE_TITLE_3LINES, but it doesn't matter : works great like that.

The script to get a file's version is working fine, but I already use the one from NSIS doc which is nice.
I was just wondering "Why isn't there any GetFileSize built-in function ?" cause it's usefull, and should be a part of NSIS. (Why being able to get the local time of a file, but not its size with a NSIS built-in commands ?)

Anyway, thanx a lot, it helped.

Poulpos
poulpos@caramail.com