With an installer you have to assume somthing. Assuming that they have an OS is safe and if they have an OS it *can* run perl one way or another so coding in Perl makes sense to me (beside the obvious fact that if they don't have Perl well what can you say...) For most flavours of *nix perl is a given, for MS you could wrap the package into an exe with perl app. If you are looking at a Perl installer (as I am) Perl should be a given but as you say....

As you point out root/Administrator access is not always required although it almost always makes life easier. On Win2k Administrator is like root with the good bits removed anyway....

If you want a GUI HTML/CGI is the way to go but then you run into the issues of needing a browser and the ability to write a CGI with root issues and the assumption that you have httpd/IIS. Console is more portable, GUI is nicer

For an unistaller you need basically just need to write a file that lists all the changes so you can try to roll them back. XML along the lines of:

<write> /some/file/here/file.txt </write> <modify> /some/config/file.conf <change> <add> this </add> <delete> that <save> that here </save> </delete> <modify> s/this/that/ </modify> </change> </modify>

No choking if something is not where it was or the permissions are wrong, etc.

No delete, just modify and add so you can un-modify and rm to rollback.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


In reply to Re: Re: Is there a perl version of MSI by tachyon
in thread Is there a perl version of MSI by tachyon

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.