[Mono-list] how to call a mono graphical app on windows without a terminal being shown?
Jonathan Chambers
joncham at gmail.com
Sat Jun 7 21:35:45 EDT 2008
Alan,
I think there were two issues. One was making sure to compile a
winexe, rather than a conolse app (you and others suggested this). The
second was that he was starting his app using a .bat file, and this also
creates a console. There were a few suggestions how to get rid of this as
well.
Thanks,
Jonathan
On Sat, Jun 7, 2008 at 9:17 PM, 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
>>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080607/07770bb7/attachment-0001.html
More information about the Mono-list
mailing list