if i want to use a hardware wallet like ledger is there any way to seteup the ledger without being connected to the internet as i dont to be connected to any network which could reach the WWW while generating the seed for it or is it unavoidable for the setup?
Ledger is a cold storage wallet. Even if you connect it to an online device, it will not reveal your seed/private keys.
Ledger generates the wallet seed and signs transactions locally. Ledger live or whatever supported wallet software you connect your ledger device to can't see your seed, it doesn't need it.
It's safe because the seed does never leave your ledger device.