1

I want to create a SFX installer on linux. I got source for p7Zip from here and able to build it in linux. Now I want to create SFX style archive which will launch some script or executable upon extracting on linux, any idea how to achive this in p7zip? also How do I tell the sfx archive to install to specific directory (e.g. /usr/temp)

Omkar
  • 111
  • 2
  • AFAIK the sfx is Windows only. what led you to believe that this worked on Linux? – Zoredache Oct 16 '13 at 21:15
  • I don't think so. sfx is way of archiving the things in addition to that it provide feature to launch some custom script or programs upon extraction. – Omkar Oct 17 '13 at 06:25

1 Answers1

0

I came across the tool called makeself.

makeself.sh is a small shell script that generates a self-extractable tar.gz archive from a directory. The resulting file appears as a shell script (many of those have a .run suffix), and can be launched as is. The archive will then uncompress itself to a temporary directory and an optional arbitrary command will be executed

Zoredache
  • 19,828
  • 8
  • 50
  • 72
Omkar
  • 111
  • 2
  • While this may solve your problem, it isn't a good answer in the context of this site since it is link-only answer. Please add at least a brief summary. Your link is broken when I try to visit it, which makes it a worthless answer if anyone else found this question in a search result. – Zoredache Oct 17 '13 at 06:56
  • Please don't provide link-only answers on Superuser, linked pages move or get deleted. Add an abridged version or description in your answer so future visitors can make sense of your answer. N.B. I'd edit your answer myself but the link you have provided is, currently, refusing to load. – Tog Oct 17 '13 at 07:01