Associate .sh files to be run with bash in the installer
commit4fc7bedcc26933fa99f35e76019cb11ad5fb3745
authorHeiko Voigt <hvoigt@hvoigt.net>
Sat, 12 Feb 2011 17:43:37 +0000 (12 18:43 +0100)
committerHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Feb 2011 17:22:40 +0000 (16 18:22 +0100)
tree4980f95869e5b168aea92d9c6c1f85fa2784c7d3
parent7f6437d42ede8fea0cc336135a806b755322c41e
Associate .sh files to be run with bash in the installer

This adds a checkbox to the installer to associate *.sh files with
/bin/sh.exe.

Having bash scripts automatically run by git bash is helpful because you
can directly bash scripts from cmd.exe, via doubleclick in the explorer
or use them directly in IDEs.

We add a DropHandler for the COM object of shell32.dll which will
dispatch the dropped files as arguments to the registered open command
of .sh files. Thus you can drop files on sh scripts the same ways as on
batch scripts.

The registered icon is the default icon for batch scripts to give some
visual indication that .sh files are something similar and can be
executed directly.

Signed-off-by: Heiko Voigt <heiko.voigt@mahr.de>
Cleaned up and
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
share/WinGit/install.iss