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.
1 Answer
You can't. At least not easily.
Windows has its own "shell" - and it uses "batch" files, which are distinct from bash.
Windows uses .exe
files, while Linux uses .elf
.
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.
-
I want to produce a .bin file to linux users and .exe file for Windows users. I think that cross-platform installer is a good choice. Can you suggest to me the best open source tool.– crakenSep 22, 2015 at 8:33
-
-
Install the ame hieachical folder as mine in the user machine with the rigth permission files. But i want to give the user a friendly UI to select the folder he want to install the tools, set the license .. etc– crakenSep 22, 2015 at 9:14
-
@MarwenBkh And why don't you do separate installation wizards for Windows and Linux? Sep 22, 2015 at 9:33
-
Because i want to automate package generating for the 2 platform and don't want to do the same thing for Windows and Linux.– crakenSep 22, 2015 at 9:46
yum install fooapp
command.