Possible to change the exe file's metadata? (version information)

1,302 views
Skip to first unread message

Me Myself And I

unread,
Oct 15, 2015, 1:33:37 PM10/15/15
to nw.js
[Using NW 0.12.3]

When we right-click the distributed exe file and choose 'Properties', then under the 'Details' tab... the Product Name, Product Description, Product Version, Copyright, etc. is blank. Is there any way to add this metadata to the exe file via NW? None of the fields in the manifest (package.json) appear to have any effect on this.

Since NW does not appear to embed this "version information" within the exe metadata, it is very complicated to create new "version information" metadata via a resource editor and embed it into an exe (but it would be very simple to edit this metadata in a resource editor *IF* this information already existed in the exe).

If there's no easy way to do this within NW, then perhaps a future version of NW could include new fields in the manifest to specify this metadata?


VoidVolker

unread,
Oct 15, 2015, 2:52:45 PM10/15/15
to nw.js, btan...@gmail.com

btan...@gmail.com

unread,
Oct 15, 2015, 3:19:53 PM10/15/15
to nw.js, btan...@gmail.com
lol... I did Google it before coming here, but I could not find a simple/practical way to solve this problem. Again, it *appears* to be possible to use a resource editor to create new metadata info from scratch and embed it into an exe, but doing THAT involves several complicated steps (unlike using a resource editor to change *existing* metadata info, which is very simple).

I was hoping someone knew of a simple solution.
 

VoidVolker

unread,
Oct 15, 2015, 4:12:26 PM10/15/15
to nw.js, btan...@gmail.com
LoL, what? Complicated? What exactly is complicated for you in "press first link in google -> download program -> run program -> follow few steps in pictures"?

btan...@gmail.com

unread,
Oct 15, 2015, 5:33:13 PM10/15/15
to nw.js, btan...@gmail.com
If that ^ was all that was required, then it would be very easy. But unfortunately, THAT does not work on NW exe files (I have tried with both Resource Hacker and ResEdit, but AGAIN... the problem is that NW does not include any "version information" within the exe, so there is no "version information" available to edit when opening the exe in a resource editor). Try it for yourself and you'll see what I mean.

VoidVolker

unread,
Oct 15, 2015, 6:01:09 PM10/15/15
to nw.js, btan...@gmail.com
And? Did you try to read program menu bar items? Like "File -> Add a resource... -> Version information"? No? I recommend to try - it works, if use it.

btan...@gmail.com

unread,
Oct 16, 2015, 11:10:57 AM10/16/15
to nw.js, btan...@gmail.com
When I open the exe file in ResEdit, the "Add a resource" is greyed out. If I create a new project from scratch, the "Add a resource" works, but I don't see a way to add the existing exe to the new project. So I'm not sure if it's possible. I'll do some more research though.

It just seems like adding version info to a file should be a simple process.

VoidVolker

unread,
Oct 16, 2015, 11:12:39 AM10/16/15
to nw.js, btan...@gmail.com
I just open nw.exe and without any problems added version info and fill all fields.

btan...@gmail.com

unread,
Oct 16, 2015, 11:23:56 AM10/16/15
to nw.js, btan...@gmail.com
Not sure what I'm doing wrong then. I've tried opening the exe 3 times now in ResEdit, and every time, the "Add a resource" is greyed out. On a side note, I am getting an error when I close ResEdit (Visual C++ runtime error - "R6025 pure virtual function call"), so maybe that has something to do with it.

Thanks anyways for trying to help.

Me Myself and I

unread,
Oct 16, 2015, 11:50:07 AM10/16/15
to nw.js, btan...@gmail.com
Alright... I finally figured it out :)

When I tried to open the exe the default way (Wizard --> Hacker Mode --> Next), it wouldn't let me "Add a resource". But if I bypass all that and do "File --> Open Project", it works. Not sure why the latter method works while the former method doesn't, but I digress.

Anyways, thanks V V for pointing me in the right direction!
Reply all
Reply to author
Forward
0 new messages