Update post-install.bat

Major code overhaul.