Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Help with QuickTime (http://forums.winamp.com/showthread.php?t=250578)

Lel 7th July 2006 08:19

Help with QuickTime
 
Hi all,
I'm new to NSIS and I'm trying to use it to install my appplication, for that application I need to install QuickTime.
I already found useful information here to check whether QuickTime is already installed, now I'm trying to install it silently, considering the QuickTImeInstaller.ini didn't work I used ExecWait '"$INSTDIR\QuickTimeInstaller.exe" /S',
in this case the ExecWait doesn't wait and the installation of QuiTime is partially silent cause I can see in the TaskBar, but without any dialog.
Thanks for any help,
Bye

Afrow UK 7th July 2006 10:13

There should be a switch similar to /S to make it wait.
If you can't find it, you can use the "start" command with /wait (but I don't think this exists on all Windows OS').

-Stu

Lel 7th July 2006 10:41

Hi, thanks for answering.
Well, I found the /sms switch as suggested in
unattended.sourceforge.net/installers.php
but that didn't work, event providing the generated setup.iss.
Is there some other way to do so?
thanks again
bye

Lel 8th July 2006 08:07

Or a way to download from the internet the latest version and then install it, always waiting for it to finish.
thanks

Comperio 8th July 2006 17:43

The research I've done seems to indicate that QuickTime uses MSI for it's installer. Which means that the installer front-end (the actual installer) is likely passing control to MSIEXEC to run the exctual install.

Unfortunatley, I haven't been able to locate the actual MSI file. And this webiste seems to indicate that the installer EXE passes other parameters to MSIEXEC, making it impposible to run the MSI file directly anyway. edit: At least not without knowing the paramters (which I have not been able to find)

Knowing this, it might be best to check for the presence of the version of QuickTime you require and then offer a polite message to the user that they need to install version x.xx of QuickTime before running your installation.

And don't forget:
Apple requires you to have a license to distribute their products. Info about that can be found at http://developer.apple.com/softwarel...quicktime.html

Lel 9th July 2006 13:09

Thanks again
that would be a good choice also for preventing me from putting the large installation file(QuickTimeInstaller) into my setup.exe.
And, hoping it's not too trivial question, how to direct the user without Quicktime to the download and execution of the QuickTimeInstaller?
Some Exec ...
or there are special functions for that?

Comperio 9th July 2006 14:32

One suggestion would be to display a custom page that tells the user they do do have qucktime and provide a link to www.apple.com/quicktime/download/win.html. See the InstallOptions doc for instructions.

As for detecting QuickTime, I'm not sure exactly what you'd look for. I have iTunes w/ Quicktime, but in my registry, I don't seem to have anythig under HKLM\software\apple like I'd expect. (But I know I have QuickTime becuase I can play QuickTime video.)

And don't forget, there are many components of QuickTime so you'd probably need to look specifically for the component(s) that you need and not just QuickTime itself.

Lel 9th July 2006 20:08

I'm still bothering you, what I need is the standalone install
http://www.apple.com/quicktime/download/standalone.html

Now I think the best way is as you suggested to add a page where I check (the funcion for checking is Quicktime version checker by Rob), but I don't know how to stop my installation
(considering there's no way to wait for Quicktime to finish install) and don't allow the user to go on until my check determine that QuickTIme is intalled.

Comperio 11th July 2006 01:11

Quote:

... but I don't know how to stop my installation
hmm...
There's probably several ways to handle this, but here's a few of my suggestions:

Option #1 (assumes a custom page for QT not installed):
Display your custom "quicktime is not installed" page. Then, in that page's callback function, issue the QUIT command. This will stop the installation.

(NOTE:
The quit command will NOT allow any of your other callback functions to run (such as .onInstFailed). If you require other cleanup functions to run when the installation quits, you'll need to wrap these instructions along with the Quit command inside your own function and then call your special function instead of just issuing a stand-alone quit command.)

Option #2 (assumes you'll use just a MessageBox):
Check for QuickTime during .onInit. If not installed, perhaps just display a message box letting the user know what's going on followed by the abort command. Probably something like this:
code:

Function .onInit
; *** [check for QuickTime here] ***
; Pretend $0 = "Y" if Quicktime is installed
StrCmp $0 "Y" QT_YES QT_NO
QT_NO:
; QuickTime is NOT installed:
MessageBox MB_OK "QuickTime is NOT installed.$\rPlease install it."
abort

QT_YES:
; quicktime is installed:
; *** Continue your function here ***
FunctionEnd



All times are GMT. The time now is 04:16.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.