You can use a file to write the same and not use the registry. But always have 2 versions for 2 OS is better. You can use the main business logic code to transport and then use the slight mod requirements of both the OS to make seperate Setups.

Thanks
Shabbir Bhimani