views:

143

answers:

3

Is there a way to make a simple installer that includes the necessary runtimes and dependency packages, and creates an icon in the OpenSuse menu, so the application will "just work?"

The actual application is just an executable (.EXE) and a handful of support files (mostly XML and CSV).

I already have the application successfully building and executing in MonoDevelop 2.0.

I originally tried to install the Mono Runtime via zypper from the following repository http://ftp.novell.com/pub/mono/download-stable/openSUSE_11.0, but quickly got bogged down in missing package dependencies.


This is what happens when I try to use zypper to install the Mono runtime:

linux-lkfu:~ # zypper addrepo http://ftp.novell.com/pub/mono/download-stable/SLE_11 mono-stable
Adding repository 'mono-stable' [done]
Repository 'mono-stable' successfully added
Enabled: Yes
Autorefresh: No
URI: http://ftp.novell.com/pub/mono/download-stable/SLE_11

linux-lkfu:~ # zypper refresh --repo mono-stable
Retrieving repository 'mono-stable' metadata [done]
Building repository 'mono-stable' cache [done]
Specified repositories have been refreshed.
linux-lkfu:~ # zypper dist-upgrade --repo mono-stable
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
Nothing to do.
linux-lkfu:~ #

Notice the last line before the prompt that says "Nothing to do." I don't think it's doing anything.

+1  A: 

Hi Robert, that depends on how you plan to package them up. Either you manually create (deb for Debian and Ubuntu, rpm for Fedora and openSUSE, or anything else).

Personally, I think at first it is acceptable to simply add a .sh to your ZIP package and ask the end users to execute it for dependency checking, installing, and so on.

Then you can learn about the packaging methods.

Lex Li
A .sh file should be fine, if I can figure out how to get the Mono runtime to install reliably.
Robert Harvey
+1  A: 

If you have Visual Studio, you can try Mono Tools for Visual Studio, which provides tooling to make this easy. It is fully functional for 30 days.

http://go-mono.com/monotools/

jpobst
It is tempting. If it works out, we'll probably just pay for a license (it's not much).
Robert Harvey
I tried downloading the .ISO and installing it by using the Add-On products option in Yast. It seemed to download files and do things for awhile, but there is still nothing in the Installed Add-On Products window in Yast, so I don't think it worked.
Robert Harvey
+1  A: 

One option is to buy mono support for SLES 11 from Novell. That will grant you a tested, supported and working mono repository.

If not you have to use the SLES repositories. For mono it's http://ftp.novell.com/pub/mono/download-stable/SLE_11

This should do it:

zypper addrepo http://ftp.novell.com/pub/mono/download-stable/SLE_11 mono-stable
zypper refresh --repo mono-stable
zypper dist-upgrade --repo mono-stable
SztupY
SztupY: See my new edit on the question.
Robert Harvey
I think I figured it out; I needed to run yast2 to get the new packages, after running zypper to add the repositories. Thanks for the assistance.
Robert Harvey