www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - D Installler

reply Lester Martin <Sarah ewam-associates.com> writes:
Hello Everyone,
I am going to work on a d installer that installs D(dmd), A chosen standard
library(tango,phobos),and a build enviromet(dss).  This will only work for
windows because I don't have a linux machine.
It will only work for Win98 and up and probably only for XP if the features I
am going to use are not supported in Win9x or WinNT with version below current
XP version.
If anyone has suggestions please feel free to email me at the address above or
just simply reply to this post.
Sep 29 2007
next sibling parent Lester Martin <Sarah ewam-associates.com> writes:
I forgot to tell you that you will probably need .NET 2.0 at least. I may be
able to make my program automatically install it.
Sep 29 2007
prev sibling next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Lester Martin wrote:
 Hello Everyone,
 I am going to work on a d installer that installs D(dmd), A chosen
 standard library(tango,phobos),and a build enviromet(dss).  
Just be aware that you're not allowed to redistribute D or phobos. So your installer will have to download them on the fly from digitalmars.com at install time.
 This will
 only work for windows because I don't have a linux machine. 
That's not really an excuse in this day and age when you can download VMWare for free and a pre-installed image of Ubuntu. So if you don't *like* Linux or don't want to *learn* Linux, or don't have *time* for a Linux version, just say so. :-)
 It will
 only work for Win98 and up and probably only for XP if the features I
 am going to use are not supported in Win9x or WinNT with version
 below current XP version. If anyone has suggestions please feel free
 to email me at the address above or just simply reply to this post.
 I forgot to tell you that you will probably need .NET 2.0 at least. I
 may be able to make my program automatically install it.
Um, suggestion number 1 is don't require users to download a 22.4 MB framework just to install a 5MB compiler package. I vaguely recall someone else previously announcing they made a D installer using NSIS (nullsoft scriptable installer system). --bb
Sep 29 2007
next sibling parent Lester Martin <Sarah ewam-associates.com> writes:
Thanks guys,
I have already made it way it would download on the fly. UM about the 20 meg
runtime installation.........
I may just include it in my zip file. I may also create it to where it
downloads it on the fly too.  
If I include it in my zip I would also make it way you can download my zip
without the .NET installer.
Which do you think users would prefer; longer install time, or longer download
time.

Lester Martin 
Sep 29 2007
prev sibling next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Bill Baxter" <dnewsgroup billbaxter.com> wrote in message 
news:fdlff7$2v9t$1 digitalmars.com...

 Um, suggestion number 1 is don't require users to download a 22.4 MB 
 framework just to install a 5MB compiler package.
While I agree that having the installer depend upon .NET 2.0 is a bit.. odd, keep in mind that any reasonably up-to-date windows machine will already have it installed. I mean, it's not like it's new technology, it came out almost two years ago.
Sep 29 2007
parent reply Lester Martin <Sarah ewam-associates.com> writes:

Jarrett Billingsley Wrote:

 "Bill Baxter" <dnewsgroup billbaxter.com> wrote in message 
 news:fdlff7$2v9t$1 digitalmars.com...
 
 Um, suggestion number 1 is don't require users to download a 22.4 MB 
 framework just to install a 5MB compiler package.
While I agree that having the installer depend upon .NET 2.0 is a bit.. odd, keep in mind that any reasonably up-to-date windows machine will already have it installed. I mean, it's not like it's new technology, it came out almost two years ago.
Sep 29 2007
parent reply Brad Roberts <braddr puremagic.com> writes:
An installer for D that's not written in D itself.  Oh, the humanity and 
ensuing embarrassment.  Please, no.

Additionally, doesn't Tango already come with an installer for both 
windows and linux?

Lester Martin wrote:

 Jarrett Billingsley Wrote:
 
 "Bill Baxter" <dnewsgroup billbaxter.com> wrote in message 
 news:fdlff7$2v9t$1 digitalmars.com...

 Um, suggestion number 1 is don't require users to download a 22.4 MB 
 framework just to install a 5MB compiler package.
While I agree that having the installer depend upon .NET 2.0 is a bit.. odd, keep in mind that any reasonably up-to-date windows machine will already have it installed. I mean, it's not like it's new technology, it came out almost two years ago.
Sep 29 2007
parent reply Lester Martin <Sarah ewam-associates.com> writes:
Dear Mr. Roberts,
Reason I'm not writing it in D is I don't have the tools I need.  I would have
to rewrite zipping and such because I want to be able to use it easily in an OO
way.  Plus I can't get DFL to work with tango so I can't use my favorite
standard library and favorite gui lib together easily yet.

to D.
My installer is an executable not a( you must )unzip.
Fellow Programmer,
Lester Martin
Sep 29 2007
next sibling parent "Vladimir Panteleev" <thecybershadow gmail.com> writes:
On Sat, 29 Sep 2007 20:52:58 +0300, Lester Martin <Sarah ewam-associates.com>
wrote:

 Plus I can't get DFL to work with tango so I can't use my favorite standard
library and favorite gui lib together easily yet.
Works great here. Maybe you're not trying hard enough? Have you tried to solve the problem by asking around or contacting the library's developer(s)? -- Best regards, Vladimir mailto:thecybershadow gmail.com
Sep 29 2007
prev sibling parent reply "Chris Miller" <chris dprogramming.com> writes:
On Sat, 29 Sep 2007 13:52:58 -0400, Lester Martin  
<Sarah ewam-associates.com> wrote:

 Dear Mr. Roberts,
 Reason I'm not writing it in D is I don't have the tools I need.  I  
 would have to rewrite zipping and such because I want to be able to use  
 it easily in an OO way.  Plus I can't get DFL to work with tango so I  
 can't use my favorite standard library and favorite gui lib together  
 easily yet.

 convert it to D.
 My installer is an executable not a( you must )unzip.
 Fellow Programmer,
 Lester Martin
For DFL, try http://www.dprogramming.com/dfltango.php with the DFL snapshot at http://wiki.dprogramming.com/Dfl/Snapshots - if you have problems, please report them. You can use the forum, reply to my e-mail, whatever. All DFL versions are bound to specific DMD and Tango versions, which tends to be more strict with Tango; the snapshot has updated Tango support.
Sep 29 2007
parent reply Lester Martin <Sarah ewam-associates.com> writes:
Works with V 1.021 so I'll try and if it works I'll use tango and DFL for the

Lester Martin
Chris Miller Wrote:

 On Sat, 29 Sep 2007 13:52:58 -0400, Lester Martin  
 <Sarah ewam-associates.com> wrote:
 
 Dear Mr. Roberts,
 Reason I'm not writing it in D is I don't have the tools I need.  I  
 would have to rewrite zipping and such because I want to be able to use  
 it easily in an OO way.  Plus I can't get DFL to work with tango so I  
 can't use my favorite standard library and favorite gui lib together  
 easily yet.

 convert it to D.
 My installer is an executable not a( you must )unzip.
 Fellow Programmer,
 Lester Martin
For DFL, try http://www.dprogramming.com/dfltango.php with the DFL snapshot at http://wiki.dprogramming.com/Dfl/Snapshots - if you have problems, please report them. You can use the forum, reply to my e-mail, whatever. All DFL versions are bound to specific DMD and Tango versions, which tends to be more strict with Tango; the snapshot has updated Tango support.
Sep 29 2007
parent reply Lester Martin <Sarah ewam-associates.com> writes:
Lester Martin Wrote:
Dear Mr. Miller,
I have gotten DFL to finally work with tango. After I have everything working


Does anyone know of a good zip compression library for D or is this integrated
into tango in an easy to use way like example below.
FastZip fz = new FastZip(file);
fz.unzipTo(ftuzt);
fz.setNewZip(file2);
fz.compressDirToCurZip(dir);

Those method names may very as long as such functionality is provided.

 Works with V 1.021 so I'll try and if it works I'll use tango and DFL for the

 Lester Martin
 Chris Miller Wrote:
 
 On Sat, 29 Sep 2007 13:52:58 -0400, Lester Martin  
 <Sarah ewam-associates.com> wrote:
 
 Dear Mr. Roberts,
 Reason I'm not writing it in D is I don't have the tools I need.  I  
 would have to rewrite zipping and such because I want to be able to use  
 it easily in an OO way.  Plus I can't get DFL to work with tango so I  
 can't use my favorite standard library and favorite gui lib together  
 easily yet.

 convert it to D.
 My installer is an executable not a( you must )unzip.
 Fellow Programmer,
 Lester Martin
For DFL, try http://www.dprogramming.com/dfltango.php with the DFL snapshot at http://wiki.dprogramming.com/Dfl/Snapshots - if you have problems, please report them. You can use the forum, reply to my e-mail, whatever. All DFL versions are bound to specific DMD and Tango versions, which tends to be more strict with Tango; the snapshot has updated Tango support.
Sep 29 2007
parent Daniel Keep <daniel.keep.lists gmail.com> writes:
Lester Martin wrote:
 Lester Martin Wrote:
 Dear Mr. Miller,
 I have gotten DFL to finally work with tango. After I have everything working

 
 Does anyone know of a good zip compression library for D or is this integrated
into tango in an easy to use way like example below.
 FastZip fz = new FastZip(file);
 fz.unzipTo(ftuzt);
 fz.setNewZip(file2);
 fz.compressDirToCurZip(dir);
 
 Those method names may very as long as such functionality is provided.
 
I've got the beginnings of a Zip archive implementation for Tango lying around, but it's been held up by various things. There's little doubt that Tango will have Zip support fairly soon (and by "fairly soon" I mean by around the end of the year.) <rant> Incidentally, Zip is a complete bastard of a format to support. The format document is horribly written, disjointed, confusing, incomplete and the format itself hasn't so much evolved as *congealed* over time. For instance: there's something like four different places the list of files in an archive can appear, and just to make things fun, the format spec doesn't say *anything* about which one to trust. Of course, tar isn't much better; that one has *multiple* incompatible standards; half of the time, there's no reliable way to tell them apart, either. I haven't had the heart to even try looking at 7z yet... </rant> -- Daniel
Sep 29 2007
prev sibling parent reply BCS <ao pathlink.com> writes:
Reply to Bill,

 Lester Martin wrote:
 
 Hello Everyone,
 
 I am going to work on a d installer that installs D(dmd), A chosen
 standard library(tango,phobos),and a build enviromet(dss).
 
Just be aware that you're not allowed to redistribute D or phobos. So your installer will have to download them on the fly from digitalmars.com at install time.
be sure to include a "I don't have net connection on this system but I downloaded the files and they are here" option as well as a "you don't have a net connection, download these and put them here" message.
Sep 29 2007
parent reply Lester Martin <Sarah ewam-associates.com> writes:
I will try and include that.  I almost have a basic full install version
working but .NET won't let me overwrite directories exactly the way I want.
I wonder will DSSS allow me to distribute their system or give me permission to
do this.
BCS Wrote:

 Reply to Bill,
 
 Lester Martin wrote:
 
 Hello Everyone,
 
 I am going to work on a d installer that installs D(dmd), A chosen
 standard library(tango,phobos),and a build enviromet(dss).
 
Just be aware that you're not allowed to redistribute D or phobos. So your installer will have to download them on the fly from digitalmars.com at install time.
be sure to include a "I don't have net connection on this system but I downloaded the files and they are here" option as well as a "you don't have a net connection, download these and put them here" message.
Sep 29 2007
next sibling parent 0ffh <spam frankhirsch.net> writes:
Lester Martin wrote:
 I wonder will DSSS allow me to distribute their system or give me permission
to do this.
AFAIK DSSS uses a MIT licence. It is very liberal. Just be sure to include the original DSSS license notices in all distributions. (I sure hope I got that right... :) Regards, Frank
Sep 29 2007
prev sibling parent Lester Martin <Sarah ewam-associates.com> writes:
Never mind about the include DSSS in my zip for redistribution as I have found
a way to download it and unzip it exactly how I want.

 I will try and include that.  I almost have a basic full install version
working but .NET won't let me overwrite directories exactly the way I want.
 I wonder will DSSS allow me to distribute their system or give me permission
to do this.
 BCS Wrote:
 
 Reply to Bill,
 
 Lester Martin wrote:
 
 Hello Everyone,
 
 I am going to work on a d installer that installs D(dmd), A chosen
 standard library(tango,phobos),and a build enviromet(dss).
 
Just be aware that you're not allowed to redistribute D or phobos. So your installer will have to download them on the fly from digitalmars.com at install time.
be sure to include a "I don't have net connection on this system but I downloaded the files and they are here" option as well as a "you don't have a net connection, download these and put them here" message.
Sep 29 2007
prev sibling next sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Lester Martin wrote:

 I am going to work on a d installer that installs D(dmd), A chosen standard
library(tango,phobos),and a build enviromet(dss).  This will only work for
windows because I don't have a linux machine.
 It will only work for Win98 and up and probably only for XP if the features I
am going to use are not supported in Win9x or WinNT with version below current
XP version.
 If anyone has suggestions please feel free to email me at the address above or
just simply reply to this post.
Feel free to use my old NSIS script files at: http://www.algonet.se/~afb/d/dmc-setup.html http://www.algonet.se/~afb/d/dmd-setup.html I have some RPM specs for Linux too, if needed. Note that you need permission from Digital Mars, in order to distribute the DMC/DMD binaries... (Tango has such a DMD permission, for instance) http://dsource.org/projects/tango/wiki/DmdDownloads --anders
Sep 29 2007
prev sibling next sibling parent reply BCS <ao pathlink.com> writes:
Reply to Lester,

 Hello Everyone,
 
 I am going to work on a d installer that installs D(dmd), A chosen
 standard library(tango,phobos),and a build enviromet(dss).  This will
 only work for windows because I don't have a linux machine.
 
make that tango and/or phobos if you can. I have my machine set up to switch back and for with batch files. I can post specifics if you want.
 It will only work for Win98 and up and probably only for XP if the
 features I am going to use are not supported in Win9x or WinNT with
 version below current XP version.
 
 If anyone has suggestions please feel free to email me at the address
 above or just simply reply to this post.
 
Sep 29 2007
parent reply Lester Martin <Sarah ewam-associates.com> writes:
BCS Wrote:
Post the specifics and grant me a liscense allowing to host those batch files
or write them out at runtime and I think I could get it done. It would use 2
different dmd installations because I can't get mine to allow the same dmd
installlation to do phobos and tango.
 Reply to Lester,
 
 Hello Everyone,
 
 I am going to work on a d installer that installs D(dmd), A chosen
 standard library(tango,phobos),and a build enviromet(dss).  This will
 only work for windows because I don't have a linux machine.
 
make that tango and/or phobos if you can. I have my machine set up to switch back and for with batch files. I can post specifics if you want.
 It will only work for Win98 and up and probably only for XP if the
 features I am going to use are not supported in Win9x or WinNT with
 version below current XP version.
 
 If anyone has suggestions please feel free to email me at the address
 above or just simply reply to this post.
 
Sep 29 2007
parent reply BCS <ao pathlink.com> writes:
Reply to Lester,

 BCS Wrote:
 Post the specifics and grant me a liscense allowing to host those
 batch files or write them out at runtime and I think I could get it
 done. It would use 2 different dmd installations because I can't get
 mine to allow the same dmd installlation to do phobos and tango.

 make that tango and/or phobos if you can. I have my machine set up to
 switch back and for with batch files. I can post specifics if you
 want.
 
Mine works with only one copy of dmd. As you can see the trick is to get the configuration set in environment variables rather than in the config file. It has the down side is that you need to run phobos.bat or tango.bat before you can compile anything. Alternately, one set of environment variables could be added to the default set for the system and then just have people run the other .bat as needed. I's a bit inelegant if you are going back and forth a lot, but it seems to work for the most part. tanog.bat set DFLAGS=-Ic:\include\tango\trunk\ C:\include\tango\trunk\lib\usergdi32.lib C:\include\tango\trunk\lib\phobos.lib set lib=c:\include\tango\trunk\lib phobos.bat set DFLAGS=-Ic:\dmd\src\phobos\ set LIB="C:\dmd\lib\" and the magic part: sc.ini (note commented out lines) [Environment] ;LIB="C:\include\tango\trunk\lib\" ;DFLAGS="-Ic:\include\tango\trunk\" LINKCMD=% P%\..\..\dm\bin\link.exe You can use these for whatever you want. BTW I have only tested the tango side enough to known I can build a hello world. But if there are any problems the fix should be simple.
Sep 29 2007
parent Lester Martin <Sarah ewam-associates.com> writes:
My tango doesn't come from trunk so I'll have a look at the files my compiler
has for tango. Besides that everything will(hopefully) be taken care of.  I
have a basic program now where you can install the dmd, tango, and dsss.  I am
working on custom, full, and no net installation options.  Where can I host my
project. I'd host it on my computer except that it everyonce in a while has an
IP change so it won't be available at times.
BCS Wrote:

 Reply to Lester,
 
 BCS Wrote:
 Post the specifics and grant me a liscense allowing to host those
 batch files or write them out at runtime and I think I could get it
 done. It would use 2 different dmd installations because I can't get
 mine to allow the same dmd installlation to do phobos and tango.

 make that tango and/or phobos if you can. I have my machine set up to
 switch back and for with batch files. I can post specifics if you
 want.
 
Mine works with only one copy of dmd. As you can see the trick is to get the configuration set in environment variables rather than in the config file. It has the down side is that you need to run phobos.bat or tango.bat before you can compile anything. Alternately, one set of environment variables could be added to the default set for the system and then just have people run the other .bat as needed. I's a bit inelegant if you are going back and forth a lot, but it seems to work for the most part. tanog.bat set DFLAGS=-Ic:\include\tango\trunk\ C:\include\tango\trunk\lib\usergdi32.lib C:\include\tango\trunk\lib\phobos.lib set lib=c:\include\tango\trunk\lib phobos.bat set DFLAGS=-Ic:\dmd\src\phobos\ set LIB="C:\dmd\lib\" and the magic part: sc.ini (note commented out lines) [Environment] ;LIB="C:\include\tango\trunk\lib\" ;DFLAGS="-Ic:\include\tango\trunk\" LINKCMD=% P%\..\..\dm\bin\link.exe You can use these for whatever you want. BTW I have only tested the tango side enough to known I can build a hello world. But if there are any problems the fix should be simple.
Sep 29 2007
prev sibling parent reply Lester L. Martin II <Lester ewam-associates.com> writes:
Dear Mr. Keep,
I believe 7z to be much better than the ones you described as it has better
compression although I haven't look at zip and tar and compression methods that
deeply. I've always judged compression by how small it gets my files.  The way
you judge it seems to be more interesting.
Lester L. Martin II
Daniel Keep Wrote:

 
 
 Lester Martin wrote:
 Lester Martin Wrote:
 Dear Mr. Miller,
 I have gotten DFL to finally work with tango. After I have everything working

 
 Does anyone know of a good zip compression library for D or is this integrated
into tango in an easy to use way like example below.
 FastZip fz = new FastZip(file);
 fz.unzipTo(ftuzt);
 fz.setNewZip(file2);
 fz.compressDirToCurZip(dir);
 
 Those method names may very as long as such functionality is provided.
 
I've got the beginnings of a Zip archive implementation for Tango lying around, but it's been held up by various things. There's little doubt that Tango will have Zip support fairly soon (and by "fairly soon" I mean by around the end of the year.) <rant> Incidentally, Zip is a complete bastard of a format to support. The format document is horribly written, disjointed, confusing, incomplete and the format itself hasn't so much evolved as *congealed* over time. For instance: there's something like four different places the list of files in an archive can appear, and just to make things fun, the format spec doesn't say *anything* about which one to trust. Of course, tar isn't much better; that one has *multiple* incompatible standards; half of the time, there's no reliable way to tell them apart, either. I haven't had the heart to even try looking at 7z yet... </rant> -- Daniel
Sep 30 2007
parent reply Lutger <lutger.blijdestijn gmail.com> writes:
Lester L. Martin II wrote:
 Dear Mr. Keep,
 I believe 7z to be much better than the ones you described as it has better
compression although I haven't look at zip and tar and compression methods that
deeply. I've always judged compression by how small it gets my files.  The way
you judge it seems to be more interesting.
 Lester L. Martin II
 Daniel Keep Wrote:
 
While 7z is a great compression format, (de)compressing is much slower than the zlib codec. Furthermore, 7z is LGPL and zlib has a BSD style license. tar doesn't do compression by itself, it's for archiving only.
Sep 30 2007
parent reply Daniel Keep <daniel.keep.lists gmail.com> writes:
Lutger wrote:
 Lester L. Martin II wrote:
 Dear Mr. Keep,
 I believe 7z to be much better than the ones you described as it has
 better compression although I haven't look at zip and tar and
 compression methods that deeply. I've always judged compression by how
 small it gets my files.  The way you judge it seems to be more
 interesting.
 Lester L. Martin II
 Daniel Keep Wrote:
While 7z is a great compression format, (de)compressing is much slower than the zlib codec. Furthermore, 7z is LGPL and zlib has a BSD style license. tar doesn't do compression by itself, it's for archiving only.
Well, I *did* say "Zip", "tar" and "7z" as opposed to "DEFLATE/zlib", "bzip2" and "LZMA". I've noticed lots of people tend to confuse archive and compression formats. :3 Incidentally, Tango now supports zlib (used by Zip and gzip) and bzip2 (used by, surprise, surprise, bzip2) as compression filters. <rant id="second"> Now, I am aware that LZMA appears to be a generally better compression algorithm, but the reason I haven't tried adding support for it yet is because there doesn't appear to be a single "liblzma" available. There's the official SDK which is written in C++ with lots of Windows-specific code (which obviously makes it difficult to use), and then there's a portable, independent implementation. But, joy of joys, they're not compatible with each other. *sigh* As for 7z itself, from what I can tell, the archives themselves are some kind of object-tree. Frankly, that scares the hell out of me. :| Honestly, I've been tempted on more than one occasion to just write a *simple* archive format for Tango. Of course, no one else would support it, which would kinda defeat the purpose... Ok, bed time. </rant> -- Daniel
Sep 30 2007
next sibling parent Lutger <lutger.blijdestijn gmail.com> writes:
Daniel Keep wrote:
 
 Lutger wrote:
 Lester L. Martin II wrote:
 Dear Mr. Keep,
 I believe 7z to be much better than the ones you described as it has
 better compression although I haven't look at zip and tar and
 compression methods that deeply. I've always judged compression by how
 small it gets my files.  The way you judge it seems to be more
 interesting.
 Lester L. Martin II
 Daniel Keep Wrote:
While 7z is a great compression format, (de)compressing is much slower than the zlib codec. Furthermore, 7z is LGPL and zlib has a BSD style license. tar doesn't do compression by itself, it's for archiving only.
Well, I *did* say "Zip", "tar" and "7z" as opposed to "DEFLATE/zlib", "bzip2" and "LZMA". I've noticed lots of people tend to confuse archive and compression formats. :3
I know, I meant to say that, talking about compression only, speed can be a criterium too. ...
 Honestly, I've been tempted on more than one occasion to just write a
 *simple* archive format for Tango.  Of course, no one else would support
 it, which would kinda defeat the purpose...
I'm not sure. It might still be useful if it would offer advantages above zip / tar / whatever.
Sep 30 2007
prev sibling parent Jan Claeys <usenet janc.be> writes:
Op Mon, 01 Oct 2007 02:53:08 +1000
schreef Daniel Keep <daniel.keep.lists gmail.com>:

 Incidentally, Tango now supports zlib (used by Zip and gzip) and bzip2
 (used by, surprise, surprise, bzip2) as compression filters.
Actually, also both the .zip & .7z "containers" support bzip2 compression in their recent versions. :)
 Now, I am aware that LZMA appears to be a generally better compression
 algorithm, but the reason I haven't tried adding support for it yet is
 because there doesn't appear to be a single "liblzma" available.
 There's the official SDK which is written in C++ with lots of
 Windows-specific code (which obviously makes it difficult to use), and
 then there's a portable, independent implementation.
 
 But, joy of joys, they're not compatible with each other.  *sigh*
There's also p7zip, which seems to work? -- JanC
Oct 01 2007