Adding file version info, is it posible?

Windows specific forum
dige
Addict
Addict
Posts: 1417
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Thank you for your advice.
Ressource number is now 1033, if you use the english language.
But I did not find a problem with version info.

Please enable "Log file" and disable "Invisble Mode" for more details.

Regards,

dige
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

Hi some new updates.

OK the 1033 went well. Thanks.

Now for the new bugs. The first is that I don't see the XP manifest is put in the file now. :cry:
The other is just so that you know. If you have your source file on a network drive your software is not passing the path corectly so the PB Compiler askes what source and for the output file name. If you don't give it it doesn't work.

here is the log file.

Code: Select all

------ PureBasic Compiler -----------
Compilerpath: C:\Program Files\PureBasic\Compilers\pbcompiler.exe
Compiler okay...

------ PureBasic Compiler -----------
Argumente: "C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\RJP Calc.PB" /EXE "C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\RJP Calc.exe" /ICON "\\Rjp-server\RJP-Shared\Shared Documents\Ryan\Icons\Calc.ico"

------ Datei Pfade -----------
Source path: C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\
Source file: RJP Calc.exe
Output file: C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\RJP Calc.exe
Compiler file: C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\RJPCalc_(Alpha).exe

------ Version.rc -----------
1 VERSIONINFO
FILEVERSION 0,0,0,1
PRODUCTVERSION 0,0,0,1
FILEOS 0x40004
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
	BLOCK "040904E4"
	{
		VALUE "CompanyName", "RJP Computing"
		VALUE "FileDescription", "VERY small and fast calculator"
		VALUE "FileVersion", "0,0,0,1"
		VALUE "InternalName", "VERY small and fast calculator"
		VALUE "LegalCopyright", "Copyright © 07/2003 by RJP Computing"
		VALUE "OriginalFilename", "RJP Calc.exe"
		VALUE "E-Mail", "rjpcomputing@rjpcomputing.com"
		VALUE "Web", "rjpcomputing.com"
                VALUE "Comments", "This software is provided as is without warranty of any kind"
	}
}

BLOCK "VarFileInfo"
{
	VALUE "Translation", 0x0407 0x04E4
}
}


------ Ressources Compiling -----------
Compile XP-Manifest...
Argumente: -addoverwrite "RJP Calc.exe", "RJP Calc.exe",  xp.res, 24,1,1033
Pfad: C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\
Compiliere Version.rc ...
Version.res gefunden und compiliert
Argumente: -addoverwrite "RJP Calc.exe", "RJP Calc.exe", Version.res, VERSIONINFO, 1, 1033
Pfad: C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\
! Scrambling skipped
Datei nach : C:\Documents and Settings\Ryan Pusztai\Desktop\RJP Calc\RJPCalc_(Alpha).exe kopiert.

------ Ergebnis: -----------
Original size: 12320 Bytes. [12KB]
Compressed: 0 Bytes [0KB] (0%)
done!

Thanks
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Post by aszid »

hello,
is there a way using your GREAT tool, to change what the comments are, and the language would be nice if it was changeable too. if not, no biggie... but you might want to add it to your list of "things to add"

thanks for the great tool, it is quite nice.
--Aszid--

Making crazy people sane, starting tomorrow.
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

Dige,
did you get a chance to look at the bug above?
Thanks for your help so far
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
dige
Addict
Addict
Posts: 1417
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

RJP Computing wrote:Dige,
did you get a chance to look at the bug above?
Thanks for your help so far
Not yet, because I am very busy...
May be in a next few days.

cya dige
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

OK sounds good.
Thanks for the reply
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

dige wrote:Not yet, because I am very busy...
May be in a next few days.
btw: You get my PM?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

I have the same problem has RPG...

The executable created contains no information on the version thingie 8)

I'm using w2k, here's the log:
------ PureBasic Compiler -----------
Compilerpath: D:\PureBasic_beta\Compilers\PBCompiler.exe
Compiler okay...

------ PureBasic Compiler -----------
Argumente: "C:\Documents and Settings\Rui Carvalho\Desktop\STupX\Example.pb" /EXE "C:\Documents and Settings\Rui Carvalho\Desktop\STupX\Example.exe"

------ Datei Pfade -----------
Source path: C:\Documents and Settings\Rui Carvalho\Desktop\STupX\
Source file: Example.exe
Output file: C:\Documents and Settings\Rui Carvalho\Desktop\STupX\Example.exe
Compiler file: C:\Example.exe

------ Version.rc -----------
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEOS 0x40004
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4"
{
VALUE "CompanyName", "Sunset-Team Software"
VALUE "FileDescription", "For test only"
VALUE "FileVersion", "1,0,0,0"
VALUE "InternalName", "For test only"
VALUE "LegalCopyright", "Copyright © 07/2003 by DiGe"
VALUE "OriginalFilename", "Example.exe"
VALUE "E-Mail", "DiGe@Gmx.de"
VALUE "Web", "www.Sunset-Team.de"
VALUE "Comments", "This software is provided as is without warranty of any kind"
}
}

BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0407 0x04E4
}
}


------ Ressources Compiling -----------
Compile XP-Manifest...
Argumente: -addoverwrite "Example.exe", "Example.exe", xp.res, 24,1,1033
Pfad: C:\Documents and Settings\Rui Carvalho\Desktop\STupX\
Compiliere Version.rc ...
Version.res gefunden und compiliert
Argumente: -addoverwrite "Example.exe", "Example.exe", Version.res, VERSIONINFO, 1, 1033
Pfad: C:\Documents and Settings\Rui Carvalho\Desktop\STupX\
! Scrambling skipped
Datei nach : C:\Example.exe kopiert.

------ Ergebnis: -----------
Original size: 4128 Bytes. [4KB]
Compressed: 0 Bytes [0KB] (0%)
done!
dige
Addict
Addict
Posts: 1417
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Hi folks,

there is a new editor called jaPBe coded by GPI. He has also
integrated an version and manifest compiling in a more flexible
way.

So I recommend to use the jaPBe instead of STupX...

cya dige
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

Post by Seldon »

You could also compile the .RC file with a RC resource compiler from Microsoft (I think it's free), then using a program like ResHacker to add the compiled .RES file to your .EXE . It always works for me.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Seldon wrote:You could also compile the .RC file with a RC resource compiler from Microsoft (I think it's free), then using a program like ResHacker to add the compiled .RES file to your .EXE . It always works for me.
Thats nerly the way, how StupX and jaPBe work...
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Adding file version info, is it posible?

Post by PB »

> Is there a way to have the PB compiler to put version information in an executable?

No, but you can use PPBuild (a free PureBasic compiler) to do it:

viewtopic.php?t=7299
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Adding file version info, is it posible?

Post by PB »

>> Is there a way to have the PB compiler to put version information in an executable?
> No, but you can use PPBuild (a free PureBasic compiler) to do it:
> viewtopic.php?t=7299

PureBasic (v3.94 beta1) now supports this -- woohoo! :)

Although, it's missing the Web/E-mail fields... these are a must, IMO. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Image
:D
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Old thread, yes, but the info is relevant due to the new PureBasic feature. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply