I have a source code and I want to produce an installer for all OS's (Windows, Linux) for non-confirmed users (Simple App user). My app is in C programming Language. I'm using Red Hat Enterprise Linux Server release 5.9 (Tikanga). I want to resolve for them all program packages dependencies and provdide a user interface for program setup.
You can't. At least not easily.
Windows has its own "shell" - and it uses "batch" files, which are distinct from bash.
.exe files, while Linux uses
These make it hard to install your software. There are some solutions - you could use some cross-platform tools, like Java, that will check what OS it's running on and apply certain scripts - but that requires you to install Java if it's not there, and we fall back again to the installation issue... You could also use web browser to tell you what OS it runs on(if you're installing from webpage); the easiest way - and most sane too, imho - is to ask user for OS/give him proper package, depending on his OS. It's hard enough to properly package program meant to be run throughout the Linux distributions.