in reply to Perl app installer or runing itself on a CD

The answer to all of those questions is yes. You will want to look at this before redistributing ASPerl though.


-Waswas
  • Comment on Re: Perl app installer or runing itself on a CD

Replies are listed 'Best First'.
Re: Re: Perl app installer or runing itself on a CD
by waswas-fng (Curate) on Dec 04, 2003 at 22:59 UTC


    -Waswas

    editted to add: if you use the bat file install bundle to install ASP to a relative directory on your disk, you can then burn that to a cd after it is installed to have a fully working copy of perl on CD(as long as you keep the relative path the same on the CD). You can also use the bat installer bundle to install a fresh copy of ASP on the target machine via your TK enabled script. Another option that may be cleaner (or needed depending on redistrib legal junk) is to compile the perl TK installer script and put that on the CD with the bat installer bundle. It all depends on how strict AS is about packaging for redistrib.
Re: Re: Perl app installer or runing itself on a CD
by inman (Curate) on Dec 05, 2003 at 17:01 UTC
    The FAQ, linked to by the same page clarifies some of the issues surrounding redistribution. The main issue is whether the redistribution is for commercial or non-comercial reasons.

    Assuming that the redistribution requirements are met and that you are writing your own installation for your app then it should be possible to incorporate the MSI packaged ActiveState distribution in to your own install script. This can be done by the tool that you are using to write your installation script (Wise, InstallShield etc.).

    If you don't want to install Perl, then you will need to run it from the CD. The cool thing about Perl is that it can be setup and configured without any weird registry settings. The best way to do this is using a batch file so that you can do some work before launching your app. You will need to set the environment variables that Perl can use before launching Perl.exe from your CD. You will also want to use the command line arguments to tell Perl to use the @INC directories on your CD before any other distribution. You will also need to ship any supporting Dlls that are not included with Windows. These will need to be present in the root of the CD where your batch file is running from. see the perlrun documentation for details.

    Needless to say, you will want to try this out on a machine that doesn't have Perl installed to make sure that everything is OK!

Re: Re: Perl app installer or runing itself on a CD
by Anonymous Monk on Dec 05, 2003 at 07:39 UTC
    You will want to look at this before redistributing ASPerl though.
    I'm gratefull for whatever contributions activestate has made to perl, but I'd rather build my own :)(it's not that big a deal)