Main addition

Got the code from my current wininstaller that I use.