cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chetanchatwani
Level 3

How to extrat tar file during installation ?

Hi ,

We have a tar file bundled with installer and we want to extract it during installtion time on linux os. Can anyone tell how it can be done ?

Regards,
Chetan
Labels (1)
0 Kudos

(2) Replies
enanrum
Level 9

Use Execute Command! I have not tried this but I've used it doing a chmod on a directory!

Command = tar
Arguments = -xf, $P(TarFileBeanID.absoluteInstallLocation)/tarfile

An easy way to get the path to the tarfile is to add a ShortCut Action to the component and in the Target browse to the tar file, select it, copy this, ctrl-c, and Cancel the target selection. Then open the arguments of the Execute Process, ADD and ctrl-v the tarfile! Remember to remove the shortcut! - but, by at least canceling the target after copying it - it will not be added to the installer if it is empty in case you forget to delete it!

Regards,
Tom
0 Kudos
chetanchatwani
Level 3

Hi Tom,

Thanks for your reply. It worked.

Regards,
Chetan
0 Kudos