Fix Windows build errors
Implement opening file from command-line arguments
Update NSIS script for create installer