|
|
|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 11
|
File and Product Version From File info
Hi
I would Like to get the Product Name and version from the Exe File and use this information on the welcome screen. I have tried MoreInfo plug in and can get it to work if run from with in a Section but if I place i call it from a function all the values are blank. I want to just set the file name and location and it pick up the product name version etc automaticaly thus I would only need to change one line each time I need to build an installer! Any idea why I can only use MoreInfo after the welcome screen in a section? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
no?
code: Results in (on this machine): code: |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Posts: 11
|
thank you
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2008
Posts: 11
|
OK It was / is working but only when I run it from inside HM NSIS!
I think the problem is that the file I want to use to get the information from is the the main file I'm delivering, so at the welcome screen it's still in the package! can I use the moreinfo to get file info from the file to be delivered while still in the package so I can show the info on the welcome screen? Or is there a way of getting the info at compile time and saving it to be used during installation? thanks Last edited by I_Need_help2; 29th March 2009 at 11:27. |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
You should just be able to unpack the file to a temp location (like $PLUGINSDIR or $TEMP):
code: |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
If it's the file you are packing then you should be getting version information from it at compile time, not at run time.
http://nsis.sourceforge.net/Invoking...n_compile-time Stu |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jun 2008
Posts: 11
|
thanks Stu I will look into this.
Currently I have got around this by extracting it to the plugin folder so it gets auto deleted again and then reading its values from there. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|