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