Old 12th February 2008, 15:54   #1
bbfree
Junior Member
 
Join Date: Feb 2008
Location: Russia,Moscow
Posts: 6
Send a message via ICQ to bbfree
Question Version Info

Hello All.
Please tell me.
Can I make a install file which will has a version info from another any exe file?

Last edited by bbfree; 12th February 2008 at 16:19.
bbfree is offline   Reply With Quote
Old 12th February 2008, 20:39   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use VIProductVersion and VIAddVersionKey. See Examples\VersionInfo.nsi for a usage example.

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 13th February 2008, 05:53   #3
bbfree
Junior Member
 
Join Date: Feb 2008
Location: Russia,Moscow
Posts: 6
Send a message via ICQ to bbfree
Yes, of course.But.
How to make a nsi file to read and insert the information from other file during compilation?
I wish to change the version of a file automatically.
bbfree is offline   Reply With Quote
Old 13th February 2008, 07:53   #4
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
I made myself a program that does just that:
- It fetches the versioninfo of an EXE file
- Generates an *.NSH include file

I call the program through NSIS !execute preprocessor command, followed by an !include of the newly created NSH file

(I might release the program publicly but not right now)
Wizou is offline   Reply With Quote
Old 13th February 2008, 08:19   #5
bbfree
Junior Member
 
Join Date: Feb 2008
Location: Russia,Moscow
Posts: 6
Send a message via ICQ to bbfree
Okay. release the program publicly another time.
I need this script.
I don't understand how
Quote:
- Generates an *.NSH include file
I think that necessaryly to create the special program for generate an include file with version info.
Or
may NSIS make it, do it?
bbfree is offline   Reply With Quote
Old 13th February 2008, 09:15   #6
Mr Inches
Member
 
Join Date: Jan 2006
Location: Canberra, Australia
Posts: 76
There is an example of how to do exactly this here:

http://nsis.sourceforge.net/Invoking...n_compile-time

Duncan
Mr Inches is offline   Reply With Quote
Old 13th February 2008, 09:22   #7
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
good article !!
Wizou is offline   Reply With Quote
Old 13th February 2008, 09:57   #8
bbfree
Junior Member
 
Join Date: Feb 2008
Location: Russia,Moscow
Posts: 6
Send a message via ICQ to bbfree
Oh!!!! Thank you very much!

Спасибо тебе чувак. Ты реальный перец, респект и уважуха!
bbfree 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