[Mono-list] how to call a mono graphical app on windows without a terminal being shown?

Xavi de Blas xaviblas at gmail.com
Mon Jun 9 05:44:59 EDT 2008


Hello again

Benjamin, you are in truth. I used the .bat to detect mono and call
the program. now i deleted the .bat, because the installjammer app
will write the path to mono and the program on start shortcut and on
desktop icon.

Then calling monow instead of mono, allows me to get rid of the terminal.

In the other side... how can i do this?

"70 MB because of Mono being included? I'd
> recommend to revise this decision or at least strip down the mono runtime
> to its core parts. I do have a ~12 MB mono zip somewhere here, I felt the
> same pain once. ;)"

thanks


2008/6/8 Benjamin Podszun <ben at galactic-tales.de>:
> I guess this is a misunderstanding here. I parsed the original question and
> that authors follow-ups like this:
>
> He installs a program on Windows and wants to spawn/run it using mono,
> either because .Net is not installed, he relies on mono stuff or whatever.
> His solution was therefor (until someone came up with monow.exe) to run his
> program with something similar to mono.exe path/to/program.exe in a batch
> file, which _does_ spawn a console even for windows applications.
>
> On a rather OT sidenote: 70 MB because of Mono being included? I'd
> recommend to revise this decision or at least strip down the mono runtime
> to its core parts. I do have a ~12 MB mono zip somewhere here, I felt the
> same pain once. ;)
>
> Ben
>
> On Sun, 8 Jun 2008 02:17:40 +0100, "Alan McGovern"
> <alan.mcgovern at gmail.com> wrote:
>> While all these solutions are great and all, just compile your app with:
>> -target:WINEXE. Then you won't get the console.
>>
>> Alan.
>>
>> On Fri, Jun 6, 2008 at 9:42 PM, Petit Eric <surfzoid at gmail.com> wrote:
>>
>>> 2008/6/6 Kornél Pál <kornelpal at gmail.com>:
>>> > Note that if you really need a batch file without a console window and
>>> > don't want to create a wrapper executable you can use a VBScript
>> (.vbs)
>>> often, me in first i disable VBS host for securyty reason
>>> > file instead that is supported by XP and Vista as well.
>>> you have two good solution, press Windows (super) + r and write cmd +
>>> enter in the dos windows , write "start /?", you should understand.
>>> The second, more beautifull is to use the registry entry, current user
>>> ... Run and create a key with value : "my command line who start the
>>> prog"
>>> >
>>> > Kornél
>>> >
>>> > Xavi de Blas wrote:
>>> >> Hello, i'm doing it with installjammer app. It locates mono
>>> >> installation reading the windows registry and then it writes in a
>> file
>>> >> where it is.
>>> >>
>>> >> And then the bat reads that file.
>>> >>
>>> >> Now that i will kill the .bat, i will put the mono path on the start
>>> >> up menu and desktop icon all using the installjammer.
>>> >>
>>> >> if you want to see how it works (still without the bat) download
>>> >> chronojump for windows:
>>> >>
>>> >> http://www.gnome.org/projects/chronojump/installation.html
>>> >> (it's 70MB because it contains Mono)
>>> >>
>>> >> bye
>>> >>
>>> >>
>>> >> 2008/6/6 Stéphane Zanoni <stephane at omni-ts.com>:
>>> >>> Installer's don't normally know where Mono is installed, so having
>> this
>>> >>> as part of a standard InstallShield deployment might be more
>> difficult.
>>> >>>
>>> >>> Has the idea of providing some sort of architecture specific
>> bootstrap
>>> >>> process been discussed?
>>> >>>
>>> >>> Stéphane
>>> >>>
>>> >>>>>> "Jonathan Chambers" <joncham at gmail.com> 6/6/2008 12:41 PM >>>
>>> >>> Hello,
>>> >>>
>>> >>> Can't you make the start menu shortcut launch your app using mono?
>>> >>>
>>> >>> "C:\<mono_install_location\bin\monow.exe"
>>> >>> "<path_to_chronojump>\chronojump.exe"
>>> >>>
>>> >>> Thanks,
>>> >>> Jonathan
>>> >>>
>>> >>> On Fri, Jun 6, 2008 at 2:37 PM, Xavi de Blas <xaviblas at gmail.com>
>>> >>> wrote:
>>> >>>
>>> >>>> 1st thanks to all, still no success:
>>> >>>>
>>> >>>> -i prefer to avoid the creation of a windows c program if there's
>>> >>>> another solution
>>> >>>>
>>> >>>> Kornél, i tried the "monow" and it's nice because the windows
>>> >>> terminal
>>> >>>> exist but it contains no info and can be closed. But how to close
>> it
>>> >>>> automatically?
>>> >>>> I suppose that compiling as a gui app will have the same problem as
>>> >>> the
>>> >>>> monow
>>> >>>>
>>> >>>> if we don't find how to close the terminal, the best solution
>> should
>>> >>> be:
>>> >>>> call mono and my app as a parameter from the desktop icon (without
>>> >>> the
>>> >>>> need of a .bat)
>>> >>>>
>>> >>>> any more ideas?
>>> >>>>
>>> >>>> how glade that it's included with mono on windows it's an exe that
>>> >>>> calls mono? is it selfcontained?
>>> >>>>
>>> >>>> thanks again
>>> >>>>
>>> >>>> 2008/6/6 Kornél Pál <kornelpal at gmail.com>:
>>> >>>>> Use monow.exe instead of mono.exe
>>> >>>>>
>>> >>>>> Kornél
>>> >>>>>
>>> >>>>> Xavi de Blas wrote:
>>> >>>>>> Sorry for the long subject of this email, but i have the
>>> >>> following
>>> >>>>>> problem:
>>> >>>>>>
>>> >>>>>> 1.- I don't find the way to call from windows "start" menu: mono
>>> >>> and
>>> >>>>>> chronojump
>>> >>>>>> 2.- As i don't find the way, i created a .bat, and this calls
>>> >>> both
>>> >>>>>> 3.- but the .bat leaves the console open all the time my app is
>>> >>> open.
>>> >>>>>> This is not nice, and also some users close the console and then
>>> >>>>>> chronojump closes
>>> >>>>>>
>>> >>>>>> What is the best solution?
>>> >>>>>>
>>> >>>>>> Thanks
>>> >>>> _______________________________________________
>>> >>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> >>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>> >>>>
>>> >>
>>> > _______________________________________________
>>> > Mono-list maillist  -  Mono-list at lists.ximian.com
>>> > http://lists.ximian.com/mailman/listinfo/mono-list
>>> >
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>
>>
>> !DSPAM:484b3368321422072614556!
>
>


More information about the Mono-list mailing list