Installation Integration

I took @rwcarlsen's script from gmail and added it as my first commit. The second commit are the changes I made. I tested this in an empty folder and it works for me.