Thanks Mohammed, that's clear.
To avoid any confusion between old and new versions (2004 = 20H1 and 2009 = 20H2), I recommend to user the Windows build number that is available in ZHDWOSDB variable in ZCONFIG object: e.g. 18363 for 1909.
Add a ZSTOP expression to the service the same way it's done for Windows main versions:
WORDPOS(EDMGETV(ZMASTER,ZOS),'WIN10 WIN2K16 WIN2K19')=0 will install the service on Windows 10, Windows Server 2016 & 2019 only.
WORDPOS(EDMGETV(ZCONFIG,ZHDWOSDB),'18363 19041')=0 will install the service on builds 1909 and 20H1 (or 2004) only.
Information on versions and builds are available with a simple Google search.