|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
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
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
|
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" |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
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. |
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
|
The command line parameters have to be switched, with the /D last:
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|