A shar file is a SHell ARchive file.
From The Linux Documentation Project -- file and archiving page,
Shell archiving utility. The text files in a shell archive are concatenated without compression, and the resultant archive is essentially a shell script, complete with #!/bin/sh header, containing all the necessary unarchiving commands, as well as the files themselves. Shar archives still show up in Usenet newsgroups, but otherwise shar has been replaced by tar/gzip. The unshar command unpacks shar archives.
The mailshar command is a Bash script that uses shar to concatenate multiple files into a single one for e-mailing. This script supports compression and uuencoding.
I love 7-zip, but i am not sure it can handle a shar file; will check if possible.
But, since it is a archive attached to a shell script,
you need to,
- cut out the archive part
- recognize the archive format
- use a corresponding tool to extract file (7-zip should work fine for this)
And, there is a Perl technique to do this.
Look at How do Linux binary installers (.bin, .sh) work? for some more on this.
While I talk of linux and tools here, you really do not need a Unix environment.
Perl is available on many platforms -- look at ActivePerl for example.
You can use simple installations of Cygwin, UnixUtils or, similar tools on your windows platform too.
And, 7-zip is available across all these platforms -- that's the best part of 7-zip.