FreeOrion

Forums for the FreeOrion project
It is currently Mon May 20, 2013 7:08 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Windows Installer: How to handle debugging symbols?
PostPosted: Thu Feb 05, 2004 6:22 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
Hi.

The first draft of the Windows Installer is finished and I just want to hear your thoughts. It isn't CVSed yet, but I will do it in the weekend.

Here is a list of things I want to hear your opinion:
  • The installer starts with displaying the licence (GPL), and afterwards shows the "welcome"-screen. Personally, I find this method more logical; are there any objections to this?
  • The binaries are unstripped (contain debugging symbol) to make bug-reporting and -finding easier. However, this blows up the installer to 12 Megs (instead of 5) and takes 160 Megs of diskspace (instead of 20, IIRC). These are the things I think of:
    1. Make 2 installers, on 5MB without and one 11MB with debugging symbols
    2. Let the installer invoke mingw's strip, if the user wanted to, shrinking the needed diskspace for the installed files
    3. Pack the stripped executables, and let the installer download the debugging symbols via web, if wanted by the user
    Personally, I strongly prefer Method #2, however, this requires that the executables are compiled with GCC. As I see no good reason for using MSVC, I think this should be no problem.
  • Should the source be included, or should the installer just install a link to the sourceforge page?

Any thoughts? Flames?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 10:52 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
We should distribute this without any debugging symbols. This should be targetted at end-users, who will almost certainly not benefit from being able to examine a problem as it happens.

Those of us who can benefit from looking at the execution in a debugger can just build it from the sources as usual.

As for the source, we need to link to it, but I don't think it will be necessary to include it directly.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 11:15 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
tzlaine wrote:
We should distribute this without any debugging symbols. This should be targetted at end-users, who will almost certainly not benefit from being able to examine a problem as it happens.
Agreed. The reason I want debugging symbols is that the program can output more useful information if a bug/crash occurs.
Instead of "caused a segfault at 0x4281021" it could provide a stack backtrace including function names, which, IMHO could help.

For now, I will go without debugging symbols.


Top
 Profile  
 
 Post subject: Inno Setup - An open source Windows intaller
PostPosted: Sat Feb 14, 2004 9:28 am 
Offline
Space Floater
User avatar

Joined: Sat Feb 14, 2004 9:15 am
Posts: 22
I have recently heard of some open source windows installers which might be worth considering for FreeOrion. One is called "Inno Setup",
http://www.jrsoftware.org/isinfo.php

The other is called "Installbase"
http://installbase.sourceforge.net/main.shtml


Top
 Profile  
 
 Post subject: Re: Inno Setup - An open source Windows intaller
PostPosted: Sat Feb 14, 2004 6:25 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
Alberjohns wrote:
I have recently heard of some open source windows installers
NSIS is also open source and more flexible than InnoSetup (and smaller as well)

Edit: I just noticed that Installbase seems to be cross-platform. I'll check it out. Thanks for the link

(BTW: I still prefer debian/rpm packages for Linux systems)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 15, 2004 9:01 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
Just FYI, The installer is ready, I already posted it on fo-programmers some days ago; the forums were down at that moment.

However: the "full" installer is here
http://freeorion.sourceforge.net/FreeOr ... p-demo.exe (~ 8,5 MB)

For those of you without a big line, the same installer without any files can be downloaded from here:
http://freeorion.sourceforge.net/FreeOr ... -dummy.exe (< 100 KB)

Please make some tests, e.g. running as non-admin on XP, installing on W98, using control center/software to deinstall or the startmenu one


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 15, 2004 10:33 pm 
Offline
Space Dragon

Joined: Sun Sep 07, 2003 12:27 pm
Posts: 289
So wait, is that like the completed 0.1 alpha, or jus thr installler with some random files, or what? :?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 16, 2004 12:18 am 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 883
Location: Australia
It's the near completed 0.1.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 16, 2004 1:15 am 
Offline
Space Dragon

Joined: Sun Sep 07, 2003 12:27 pm
Posts: 289
Oh ok thanks Tyreth. :D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 7:48 am 
Offline
Space Squid
User avatar

Joined: Thu Feb 12, 2004 4:37 pm
Posts: 55
Location: California
Yoghurt wrote:
Just FYI, The installer is ready, I already posted it on fo-programmers some days ago; the forums were down at that moment.

However: the "full" installer is here
http://freeorion.sourceforge.net/FreeOr ... p-demo.exe (~ 8,5 MB)

For those of you without a big line, the same installer without any files can be downloaded from here:
http://freeorion.sourceforge.net/FreeOr ... -dummy.exe (< 100 KB)

Please make some tests, e.g. running as non-admin on XP, installing on W98, using control center/software to deinstall or the startmenu one


Ok worked fine on my windows XP Home edition not sure why but the default install dir. was simply C/Freeorion but when I installed it on my XP Professional the default was C:/Program files/FreeOrion. This of course is no big deal with the browse button because I never install things the default way. The uninstall seemed to work fine also. I then created a test account without admin. rights on the XP professional ran the program I was greeted with comment that without Admin. rights the install would fail horribly but continued on and it worked fine. I then logged out and logged in as admin. and FreeOrion did not show up. That I think is consistent in that Admin. installs for all to see restricted install only in its on profile.

_________________
If it was easy then we all would be doing it!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 7:56 am 
Offline
Space Squid
User avatar

Joined: Thu Feb 12, 2004 4:37 pm
Posts: 55
Location: California
I may have jumped the gun on this I went to uninstall back in non admin. and the program could not find the uninstall file. I will try this over again but I guess it lets you install the Icons but not write files to the Drive. :oops:

_________________
If it was easy then we all would be doing it!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 2:22 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
Yes, the installer will sometimes fail to write files, but continue anyway. I will look into it if I have time.

I already tried to Check for the error flag NSIS sets, but it seems to be set even if the install was successful.

About the startmenu-thing:
If you run as non-admin, the installer will only modify the local startmenu, not the global one, as this would fail anyway.
I let the user continue as non-admin only because some people might not have admin privileges and want to test FO anyway; they can, they only have to install it into a folder they have write permissions to.

I think about setting the install-path to "Own Files" in that case.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: omgilibot and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group