[MonoDevelop] Portable Monodevelop/Mono Distribution [Successful]
m.j.hutchinson at gmail.com
Sun Sep 12 00:34:12 EDT 2010
On Fri, Aug 27, 2010 at 10:06 AM, anidotnet <anidotnet at gmail.com> wrote:
> Yeppiee!!! Michael thanks a lot to you for your help. I have one good news
> and a bad news.
> The good news is I have successfully changed all the batch files in mono
> directory to make it portable and currently I am able to run Monodevelop on
> Mono using a launcher and able to compile a "Hello World" program also. What
> I have done is as follows
> 1. Installed .Net 3.5 sp1, Mono, GTK#, Monodevelop in a machine, putting all
> mono products under a root folder called mono.
> 2. Took another machine where only .Net 2.0 is installed. Took all the
> contents in mono from the 1st machine.
> 3. Wrote a small program which changed all the absolute paths into relative
> paths in the bat files (e.g. @"C:\PROGRA~1\Mono\bin\mono.exe" %MONO_OPTIONS%
> "C:\PROGRA~1\Mono\lib\mono\1.0\disco.exe" %* becomes %~dp0mono.exe
> %MONO_OPTIONS% %~dp0..\lib\mono\1.0\disco.exe %*)
> 4. Wrote a small launcher for monodevelop using the following command
> echo off
> call %~dp0\bin\setmonopath.bat
> %~dp0\bin\mono.exe %MONO_OPTIONS% %~dp0\MonoDevelop\bin\MonoDevelop.exe
> 5. Using this launcher I am able to run Monodevelop on the system without
> installing anything.
IMO the next steps would be to contribute patches to Mono to make
Windows builds relocatable, and add a script to the MonoDevelop source
tree to build the "portable bundle".
> The bad news is I am facing a weird problem while running the compiled
> "Hello World" app using MD. First of all I am not seeing any Console Window
> or any kind of Output message saying "Hello World" like we see when we run
> it from VS or SD and when next time I am running the app from MD it says,
> "An Application is already running. Do you want to stop it?" I have no idea
> why it is behaving such a way. Any clue can you give me?
No idea offhand, no. This is probably one of the places where the
Windows port was only tested with .NET.
Do you have the same problem if you disable the external console in
the project options?
More information about the Monodevelop-list