Through code we can identify the package is installing from windows/linux server using the following scripts
if (stristr(PHP_OS, ‘win’) && !stristr(PHP_OS, ‘darwin’)) {
// this is Windows
} else {
// Unix
}
using the above code we can identify installation is doing from windows or Linux