How to automate Cygwin library installation

Write a cmd file as follows and put it in the same folder as cygwin installation file: setup-x86_64.exe:

setup-x86_64.exe ^
–no-shortcuts ^
–quiet-mode ^
–disable-buggy-antivirus ^
–packages ^
<lib1>,^
<lib2>,^

Advertisements