Old 24th October 2006, 13:33   #1
efortier
Junior Member
 
Join Date: Oct 2006
Posts: 2
Calling a dll outside a section?

I have a dll to extract build information from the application I'm building a setup script for, and I want to use that information in the script itself. Is it possible? I don't want the dll to be included in the script.

The dll would simply gets the version information for the main exec file and set the name of the installer with it, so it would need to run outside of a section, I think.

I've not done much scripting with NSIS yet, just the basic stuff. So let me know if there's an alternative or if it's not possible at all.

Thanks!
efortier is offline   Reply With Quote
Old 24th October 2006, 18:15   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
you can call a external program (another NSIS "installer" or other program) with !system at compile time, this program would produce a .nsh with defines you can include in your real installer

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 24th October 2006, 19:46   #3
efortier
Junior Member
 
Join Date: Oct 2006
Posts: 2
Many thanks, I hadn't thought of that!
efortier 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