[Mono-bugs] [Bug 505341] The Windows Installer should generate relocatable BAT files

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 21 11:52:51 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=505341

User kramieb at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=505341#c2





--- Comment #2 from Dykam None <kramieb at gmail.com>  2009-05-21 09:52:51 MDT ---
Succesfull test.

Taken the following test:
1. Copied a mono 2.4 install from C:\PROGRA~1\Mono-2.4\ to
L:\PortableApps\Mono-2.4
2. Booted up gsharp and ran the following code:
-C#-
Action<string> Recurse = delegate(string path) {
if(File.Exists(path)) {
string file = File.ReadAllText(path);
file = file.Replace("C:\\PROGRA~1\\Mono-2.4\\bin\\", "%~dp0\\");
file = file.Replace("C:\\PROGRA~1\\Mono-2.4\\lib\\", "%~dp0\\..\\lib\\");

      > File.WriteAllText(path, file);
      > 
return;
}
if(Directory.Exists(path)) {
foreach(string dir in Directory.GetDirectories(path)) {
Recurse(dir);
}
foreach(string file in Directory.GetFiles(path, "*.bat")) {
Recurse(file);
}
}
}
;
Recurse(@"L:\PortableApps\Mono-2.4\bin");
----

Tried running gsharp, xsp and xsp2 by using that command whilst being in
L:\PortableApps\Mono-2.4\bin\ without a reference to the locally installed
Mono-2.4
All three tests were succesfull.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list