[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: New Windows installer for test and feedback
From: |
John Darrington |
Subject: |
Re: Re: New Windows installer for test and feedback |
Date: |
Tue, 7 Sep 2021 15:00:20 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
That is the rc file which we already have in
src/ui/gui/pspp.rc.in and is linked into the binary on each build.
But I think this user was wanting a similar thing to happen for the
installer itself. I must admit, I'm suprised that makensis doesn't
automatically do this.
J'
On Mon, Sep 06, 2021 at 08:35:41PM +0200, Harry Thijssen wrote:
But is is generated and used with the procedure below from pspp4windows.pl
. I recall the size of the fileversion was limited. Other variables speak
for themself.
sub ProcCreatingResourceInfo
{
my $dayNumber = POSIX::strftime("%j", gmtime time);
my $YearLastDigit = substr $build_number, 3, 1;
print "******************************************\n";
print "* Creating resource info ********\n";
print "******************************************\n";
my $myrepo_version = $repo_version;
$myrepo_version =~ s/\./,/g;
open FH, ">/tmp/pspp.rc";
print FH "PSPP-SPLASH ICON \"$MingwDir/share/pspp/icons/pspp.ico\"\n";
print FH "1 VERSIONINFO\n";
print FH "FILEVERSION $YearLastDigit$dayNumber$KindIndicator\n";
print FH "BEGIN\n";
print FH " BLOCK \"StringFileInfo\"\n";
print FH " BEGIN\n";
print FH " BLOCK \"080904E4\"\n";
print FH " BEGIN\n";
print FH " VALUE \"CompanyName\", \"
http://sourceforge.net/projects/pspp4windows\"\n";
print FH " VALUE \"FileDescription\", \"PSPPIRE (PSPP+GUI)\"\n";
print FH " VALUE \"FileVersion\", \"\"\n";
print FH " VALUE \"InternalName\", \"$binaryversion\"\n";
print FH " VALUE \"LegalCopyright\", \"(c)Free Software
Foundation, Inc. GPLv3\"\n";
print FH " VALUE \"OriginalFilename\", \"PSPPIRE.exe\"\n";
print FH " VALUE \"ProductName\", \"$psppRepoVersion
$gitbranch\"\n";
print FH " VALUE \"ProductVersion\", \"$psppVersion
$WindowsPlatform\"\n";
print FH " END\n";
print FH " END\n";
print FH " BLOCK \"VarFileInfo\"\n";
print FH " BEGIN\n";
print FH " VALUE \"Translation\", 0x809, 1252\n";
print FH " END\n";
print FH "END\n";
close FH;
system("$MingwPrefix-w64-mingw32-windres /tmp/pspp.rc -O coff -o
/tmp/pspp.res") == 0 or die "system 'windres' failed: $?";
}
Op ma 6 sep. 2021 16:03 schreef John Darrington <
john@darrington.wattle.id.au>:
> [[Moving to pspp-dev@gnu.org]]
>
> Do you have an example rc file that I can use as a pattern?
>
> J'
>
> On Mon, Sep 06, 2021 at 12:59:28PM +0200, Harry Thijssen wrote:
> Hi
>
>
> I assume this is what I used windres for.
>
>
> Stay safe
>
>
> =============
>
> On Mon, Sep 06, 2021 at 09:49:21AM +0200, Matej Kovacic wrote:
>
> I think you should add a publisher name and a product name in
> setup file
> of Windows application. It would still ask if you trust the
> publisher,
> but it won't be written "Unknown Publisher", but "PSPP project"
> or
> something.
>
> I know it is a small thing, but those are things that are
making
> better
> usability of the whole system.
>
>
> I'm not sure how to do that but I will try to find out. It may well
> be that
> in order have this show anything other than "Unknown Publisher" one
> has to
> pay $$$ to Microsoft - depending on how many $ this is, it may not
be
> a
> problem. But it may well be the case that one has to agree to all
> sorts of
> unethical promises - that is likely to be a showstopper.
>
> Thanks for the suggestion.
>