Archive: GTK runtime packaging


GTK runtime packaging
hi,
I want to package the GTK runtime installer toghether with my compiled application in one NSIS installer.
The GTK runtime installer is this:
http://gladewin32.sourceforge.net/
or this:
http://gtk-win.sourceforge.net/home/index.php/en/Home

I want to execute the GTK runtime installer inside of the installation process, so user had to double click on one executable only.
Someone has some experience in how to that?

thanks


maybe look at pidgin's installer, i guess your questions targets at passing parameters for language and install-location. from what i remember they use /D, /L (for language) and /S switches


thanks. I see the:
\pidgin-2.5.1\pidgin\win32\nsis\pidgin-installer.nsi
It is quite complex (52KB) for a beginner on NSIS, as it support lot of configuration version for Pidgin:
- debug
- with gtk
- without gtk
- many different languages
- many different SpellChecker

I see that it !include "MUI.nsh" and not "MUI2.nsh"


well, if you just want to install gtk runtime you will need to execute it from your installer. there are multiple commands available for that, Exec and ExecWait being the inbuilt, but nsExec gives you some more options.

OutDir $PLUGINSDIR
ExecWait '"$PLUGINSDIR\gtk-runtime.exe" /D=PathToInstallToo /L=1033 /S'

this is something that would work. via the D switch, you pass the destination directory, L the language (1033 is for english) and /S to have silent installation. of course you can just run the installer without any of those parameters, but it might be less annoying to use parameters, especially if the user specified portions (e.g. language) in your installer that can be replicated for the gtk installer.


The command line parameters have to be switched, with the /D last:

/D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallDirRegKey. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.