CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Embedding files inside perl? creating a "perl installer"

 



elogateumsato
New User

Dec 17, 2011, 10:14 PM

Post #1 of 4 (632 views)
Embedding files inside perl? creating a "perl installer" Can't Post

here is the scenerio- I have a software that installs its own version of perl onto a machine so i have most perl functionality.

I am not allowed to take any outside resources and put them on this machine (download an installer... etc)

I would like to write a perl script that would basically act as an installer.

My question is, I would like to keep the "installer" down to 1 file so I was wondering how I could "embed" a pdf (or any other file) into a perl script that way it can extract the pdf into the right directory and keep the same formatting.


FishMonger
Veteran / Moderator

Dec 18, 2011, 8:15 AM

Post #2 of 4 (607 views)
Re: [elogateumsato] Embedding files inside perl? creating a "perl installer" [In reply to] Can't Post


In Reply To
here is the scenerio- I have a software that installs its own version of perl onto a machine so i have most perl functionality.

IMO, that a bad approach. What makes you think your install will be more functional than one from someone else? It may meet all of your requirements, but I can assure you that it won't meet many others if they have other apps that use Perl.


In Reply To
I am not allowed to take any outside resources and put them on this machine (download an installer... etc)

That's somewhat reasonable, but vague. If your app installs perl, then that would be an outside resource.


In Reply To
I would like to write a perl script that would basically act as an installer.

Yes, that is often done in custom Perl apps and is usually written as a (Tk or similar framework) gui and "compiled" as a standalone executable.


In Reply To
My question is, I would like to keep the "installer" down to 1 file so I was wondering how I could "embed" a pdf (or any other file) into a perl script that way it can extract the pdf into the right directory and keep the same formatting.

The simple answer is "no", but you can have the installer, once it has installed perl, create the pdf.


elogateumsato
New User

Dec 18, 2011, 9:22 AM

Post #3 of 4 (595 views)
Re: [FishMonger] Embedding files inside perl? creating a "perl installer" [In reply to] Can't Post

sorry, I'll explain it better.

It isn't my software that installs a version of perl.

the scenario is really I'm using a server (thats on a private network not on the internet) that can have only certain resources on it. This server only has one purpose. You cannot install any outside resources, so whatever I need to create I must do it on my own.

What I'm doing is trying to get this installer so that "less computer savvy" people (at remote sites) won't become confused by it.

the system already has a version of perl on it, I am just trying to use what I have.


FishMonger
Veteran / Moderator

Dec 18, 2011, 9:35 AM

Post #4 of 4 (593 views)
Re: [elogateumsato] Embedding files inside perl? creating a "perl installer" [In reply to] Can't Post

The easiest approach would be a self extracting zip archive.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives