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:
The thing is I'm writing the installer in C# since I can use it so easily.
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.
If you want when I'm through I'll send you my C# program and you can convert it
to D.
My installer is an executable not a( you must )unzip.
Fellow Programmer,
Lester Martin
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
installer rewrite.  I am going to finish what I started in C#.
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.
 If you want when I'm through I'll send you my C# program and you can  
 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
in C# i'll rewrite it with tango and dfl.

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
installer rewrite.  I am going to finish what I started in C#.
 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.
 If you want when I'm through I'll send you my C# program and you can  
 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
in C# i'll rewrite it with tango and dfl.
 
 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 next 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).
 

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).
 

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).
 

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 "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 "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.
 If you want when I'm through I'll send you my C# program and you can  
 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
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 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:
 The thing is I'm writing the installer in C# since I can use it so easily.
 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.

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