[Gtk-sharp-list] Is it possible to include the whole Gtk# library in my programs MSI?

ulrichb ulrich.b at gmx.at
Fri Dec 3 19:55:31 EST 2010


I want to include the whole Gtk# package (GTK+ binaries and managed
assemblies) + my program into one Windows MSI. 

I'm not talkin about execute the "gtk-sharp-2.12.10.win32.msi" before my
setup starts, instead I want "my own" Gtk# library in a sub directory of my
application (like some applications do with the Java VM).

My idea: 

Lets say, my program installs to "C:\Program Files (x86)\MyApp".

1.) Include the whole content of Gtk# ("C:\Program Files
(x86)\GtkSharp\2.12") into my setup and install the content to "C:\Program
Files (x86)\MyApp\GtkSharp".

2.) Copy the Gtk# assemblies inside "C:\Program Files
(x86)\MyApp\GtkSharp\lib\gtk-sharp-2.0" into my program folder, so that my
assemblies can reference them (so I don't need to install them in the GAC)

3.) Add a PATH entry to "C:\Program Files (x86)\MyApp\GtkSharp\bin" (like
the "gtk-sharp-2.12.10.win32.msi" does) so that the managed Gtk# assemblies
can P/Invoke GTK+

Could this work, or am I missing something?

KR, Ulrich

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Is-it-possible-to-include-the-whole-Gtk-library-in-my-programs-MSI-tp3071988p3071988.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list