I've had an almost similar problem there in the sense that I wanted to makes running perl scripts from a removable media.

A good and a bad consequences when running from CD-Rom are:

Autostart may be made with the help of Win32 autorun features and perl-in-batch scripts like those you may find in Indigo Perl install script (setup.bat):

@rem = '--*-Perl-*-- @echo off if exist .\perl\bin\perl.exe goto perlexefound echo. echo ERROR: Can not find .\perl\bin\perl.exe echo This installation is incomplete. echo Make sure that the downloaded file is complete. echo Make sure that your unzip pogram extracts subdirectories echo and preserves long filenames. echo. goto endofperl :perlexefound .\perl\bin\perl -w -I.\perl\lib setup.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl @rem '; #!perl -w ################################################################# # Your startup script ################################################################# @rem = (); # eliminate warning use Win32::API; use strict; my $startPath = Win32::GetCwd(); # where the script lives! <...> __END__ :endofperl

I can't tell you a lot about MySql, but your bootstrap script may copy database dump from cdrom somewhere writable (eg. $ENV{TEMP}), alter environment variables and registry, rewrite configuration files, then start MySql, Apache and open a browser targeted a choosen url.

____
HTH, Dominique
My two favorites:
If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
Bien faire, et le faire savoir...


In reply to Re: Sending perl program by dfaure
in thread Sending perl program by kitaeratu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.