I have now tried the updated wininstall.sh script. I had to add the following at lines 10 and 11: HLPDIR=/mingw/winbuild/help DOCDIR=/mingw/winbuild/doc After adding these lines, the script works correct and updates the files in c:/program/gretl so I can run my own compiled version of gretl. Thanks. Andreas