Old 17th October 2008, 12:47   #1
efa
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
efa is offline   Reply With Quote
Old 17th October 2008, 12:51   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
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
Yathosho is offline   Reply With Quote
Old 17th October 2008, 14:41   #3
efa
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"
efa is offline   Reply With Quote
Old 17th October 2008, 16:14   #4
Yathosho
Forum King
 
Yathosho's Avatar
 
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.
Yathosho is offline   Reply With Quote
Old 17th October 2008, 18:43   #5
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
The command line parameters have to be switched, with the /D last:
Quote:
/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.
demiller9 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump