Old 25th July 2002, 17:31   #1
delegreg
Junior Member
 
Join Date: Jul 2002
Posts: 2
Question GetDLLVersionLocal ?

Hi guys,

i'm looking for a way to embed version info in the Caption or Name strings, specificaly, i'm building an installer for a com dll, and would like to have the dll version appear in the title bar of the installer.

Is this feasible with GetDLLVersionLocal ?

the compiler says i can't do it 'coz function calls are forbidden outside Sections and Functions. I suppose that means i'm stuck.

Is something like this planned for a future release ?

Thanks to u all

DLG

PS : 'scuse my lousy english ...
delegreg is offline   Reply With Quote
Old 25th July 2002, 18:39   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Make another installer that will compile your script. The other installer will first call GetDLLVersionLocal and then call makensis to compile your script with a line switch telling your script the version (either /XOutFile "whatever", /XName "whatever" or /DVERSION "whatever" and then use ${VERSION} in the title bar)

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 29th July 2002, 16:56   #3
delegreg
Junior Member
 
Join Date: Jul 2002
Posts: 2
Geee.....

That is real smart

Now i know what it feels like to be the sucker who didn't think about it before...

Big thanks and all that sort of things...

Cia
delegreg is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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