Problem installing QuickTime player

Got a problem you cannot solve? Try here.
Dame1701
Posts: 29
Joined: Tue Jan 05, 2016 10:33 am

Problem installing QuickTime player

Postby Dame1701 » Wed Aug 10, 2016 4:15 am

Hi Guys,

I'm having a few problems generating a script for installing QuickTime player. I used the wizard to generate a script with the appropriate parameters. However when I run the installer, I receive the error message "Invalid command line argument" and the installer quits. The parameters I've used work fine in the command line so I am not sure what is wrong.

The command line I need to execute is as follows:

msiexec /i "Quicktime.msi" /passive DESKTOP_SHORTCUTS=NO (this works perfectly in the command line)

The script that has been created is as follows:

Code: Select all

if Variable INSTALLED_APPLEQUICKTIMEPLAYER Equals FALSE
 Set Variable PROGRESSTEXT to Downloading Apple QuickTime Player
 Set Variable DATA_APPLEQUICKTIMEPLAYER to
 Define File Bag : #IADIR#\runtimes\Apple QuickTime Player\*.*, include files recursively, get runtime location of files into variable DATA_APPLEQUICKTIMEPLAYER
 Set Variable PROGRESSTEXT to Installing Apple QuickTime Player
 Set Variable RESULT_APPLEQUICKTIMEPLAYER to
 Set Variable ERROR_APPLEQUICKTIMEPLAYER to
 Install/Remove MSI Package $DATA_APPLEQUICKTIMEPLAYER$\QuickTime.msi[/passive DESKTOP_SHORTCUTS=NO] (get result into variable RESULT_APPLEQUICKTIMEPLAYER)
 if Variable RESULT_APPLEQUICKTIMEPLAYER Equals REBOOT
   MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
   if Variable REBOOT_APPLEQUICKTIMEPLAYER Equals OK
     Reboot Computer and Resume Setup
     else
     Terminate Installation
   end
   else
   if Variable RESULT_APPLEQUICKTIMEPLAYER Equals ERROR
     MessageBox: $TITLE$ Setup, Apple QuickTime Player could not be installed.$NEWLINE$$NEWLINE$$ERROR_APPLEQUICKTIMEPLAYER$$NEWLINE$$NEWLINE$Please manually install Apple QuickTime Player on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
     Terminate Installation
   end
 end
end


The part that seems to be missing is the msiexec /i, unless that is part of the " Install/Remove MSI Package" instruction? I have double clicked on this instruction and the Install MSI Package configurations forms show that I believe to be the correct parameters i.e. the Action String is "/passive DESKTOP_SHORTCUTS=NO". I have attached the full script to this post. Could someone advise on what I am doing wrong?

Many thanks,

Damien
Attachments
QuickTime Full Script.txt
(2.55 KiB) Downloaded 841 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem installing QuickTime player

Postby FrancescoT » Wed Aug 10, 2016 12:22 pm

Dear Damien,

I am not able to open your file as script (mia extension).

Please post a very "VERY" minimal project that replicates the issue along with any file which is necessary to successfully build the project.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Dame1701
Posts: 29
Joined: Tue Jan 05, 2016 10:33 am

Re: Problem installing QuickTime player

Postby Dame1701 » Wed Aug 10, 2016 12:50 pm

Hi FrancescoT,

I have built a minimal project (QuickTimeTester) that shows the problem. You will also need to download the latest QuickTime player. You can get both of these from my DropBox here: https://www.dropbox.com/sh/iq4jz3gjwvh7 ... VwgJa?dl=0. You will need to extract the QuickTime 7.7.9 Installer.exe with WinRAR (or similar) so you end up with the following files:

AppleApplicationSupport.msi
AppleSoftwareUpdate.msi
QuickTime.msi
QuickTimeInstallerAdmin.exe

On my machine, I have placed those files in the following directory:

C:\Work\Root6\InstallAware\runtimes\QuickTime

The project is a zipped archive which I believe you can extract anywhere.

Many thanks,

Damien

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem installing QuickTime player

Postby FrancescoT » Thu Aug 11, 2016 12:53 pm

Dear Damien,

first of all when we ask for a minimal project, we mean something similar to the one that you find attached.
The one you released, it's just a project that tries to install some "files" to the target directory ... but this doesn't contain any code that can be used to replicate your issue. This make difficult our work and for the next time, I will not be able to assist you without receiving an appropriate project.

That said and for what concerns your issue, I suppose that exist a problem with the QuickTime.msi itself or maybe, this requires some other parameters (which I don't know) in order to be correctly installed from command line.

Honestly, I don't know how you have been able to manually install the package successfully. I have tried, but it never worked.

I used the following combination, but none of these worked!

- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /passive DESKTOP_SHORTCUTS=NO
- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /passive ADDLOCAL=QuickTimePlayer,QuickTimeWebPlugIn,QuickTimeInternet,QuickTimeEssentials,QuickTimeEffects,QuickTimeMusic,QuickTimeAuthoring,QuickTimeCapture,QuickTimeProResDecoder,LegacyQuickTimeFeatures,CRT_WinSXS DESKTOP_SHORTCUTS=NO SCHEDULE_ASUW=0 ASUWINSTALLED=0
- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /passive ADDLOCAL=ALL DESKTOP_SHORTCUTS=NO SCHEDULE_ASUW=0 ASUWINSTALLED=0

- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /qn ADDLOCAL=ALL DESKTOP_SHORTCUTS=NO SCHEDULE_ASUW=0 ASUWINSTALLED=0
- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /qn DESKTOP_SHORTCUTS=NO SCHEDULE_ASUW=0 ASUWINSTALLED=0
- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /qn DESKTOP_SHORTCUTS=NO
- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" /qn

For what I see, it only work as follow;
- msiexec /i "C:\QuickTime 7.7.9 Installer\Quicktime.msi" ...but this displayes the full UI.

***********
The attached project only demonstrates that the "(Un)Install MSI Package" runs correctly but at the end, it returns an error from the Quicktime installer. This seems not able to locate a required file.

Unfortunately, I cannot do much more.

PS
To build the project, decompress the "QuickTime 7.7.9 Installer.exe" into the "QuickTime 7.7.9 Installer" project/subfolder.
It's not necessary to specify the "/Passive" parameter with the "(Un)Install MSI Package" plugin. It executes an MSI in quite mode by default.

Regards
Attachments
QTsetup.rar
(950.12 KiB) Downloaded 762 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Dame1701
Posts: 29
Joined: Tue Jan 05, 2016 10:33 am

Re: Problem installing QuickTime player

Postby Dame1701 » Thu Aug 11, 2016 4:53 pm

Dear FrancescoT,

I'm not sure I fully understand your response. You asked for a "VERY minimal project. The project I sent you was exactly as requested a minimal InstallAware project that reproduces the problem. If you are not more specific then it is impossible for me to guess exactly what you want. The project I sent you does not install any files because it does not need to, the issue is with installing QuickTime as a prerequisite that is the problem we are encountering.

As part of this simplified project, I have created the scripts required to run the QuickTime msi and indeed, you will find when running the single file installer built by the InstallAware project attached that it gets to the point of installing QuickTime and then presents that exact the error I described which I believe is enough to demonstrate the problem.

I believe the reason why you are struggling to run the QuickTime installer from the Command Prompt is because you need to be in the same directory as the installer msi file. Therefore, if for example, the QuickTime.msi file is living in "C:\PreRequisits" and you are sitting at the root of drive "C" you would need to change to this directory first by issuing "cd PreRequisits" then run the following:

"msiexec /i "Quicktime.msi" /passive DESKTOP_SHORTCUTS=NO"

Alternatively, if you are in the root of the drive containing the installer e.g. "C:" you can install it by omitting the drive letter, so in this instance, the command would be:

msiexec /i "PreRequisits/Quicktime.msi" /passive DESKTOP_SHORTCUTS=NO

This will then show the installer running automatically. The installer UI appears, but the important thing is that no user interaction is required. To be thorough, I have tested this on three different computers and it works fine on all.

I extracted this from our old custom C# installer that runs msiexec via the C# Process class (https://msdn.microsoft.com/en-us/librar ... s(v=vs.110).aspx which allows us to execute files from code). We found that by setting the working directory (of the ProcessStartInfo class) to the location of QuickTime, we were able to run the installer silently as required. If InstallAware utilises a similar system it might be possible to get it to work by allowing setting of the working directory.

I have included a Visual Studio 2013 C# project that demonstrates the use of Process and ProcessStartInfo in order to install QuickTime passively
QuickTime Install Visual Studio 2013.zip
(81.83 KiB) Downloaded 773 times
. If you do not have Visual Studio 2013, I have also compiled the application in release mode (which you will find in the "bin/Release" directory so you can try it for yourself. Even without Visual studio, you should be able to open the code files in a text editor and see how we are executing the msi.

Place the 4 QuickTime msi files in C:\QuickTime. When you run the program, click on the Install QuickTime button. It will then execute the installer using msiexec and the command line parameters that we required. You should see QuickTime install without the need for any user interaction.

I have enclosed this project to prove that it is possible to execute the installer in this way with exactly the parameters I have specified. I do not believe there is a problem with the QuickTime msi, I believe that there is either an InstallAware bug or that I have not configured the script correctly.

I hope this is of help.

I look forward to your response,

Kind regards,

Damien

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem installing QuickTime player

Postby FrancescoT » Fri Aug 12, 2016 10:04 am

Dear Damien,

Ok. Now I see the problem.

Unfortunately, it's not possible to use a similar approach as you did with the C# Process class and then to call "(Un)Install MSI Package" .

At any rate, this is is not an InstallAware limitation. The fact that the Quicktime.msi forcedly wants the process started from the same MSI directory, it seems to me a limitation of the Quicktime.msi itself.

Honestly, this is the first time that I see a similar limitation and I never had a similar problem when installing other MSI packages.

Probably the only approach to try is to call the EXE container in place of the MSI (via Run Program, of course)... hoping it accepts at least a silent switch from command line. By the way, the above limitation can also explain why they officially distribute the EXE container and not the MSI.

Alternatively from your script, you my try to call an external process which runs the Quicktime.msi installation.

Hope this helps you.

PS.
The "Setup for Apple QuickTime Player.mia" and "Check for Apple QuickTime Player.mia" was not part of the scripts defined with the project you sent me. I have now noticed that such files was present into your project directory. However Yesterday, I just tried to open the project.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Dame1701
Posts: 29
Joined: Tue Jan 05, 2016 10:33 am

Re: Problem installing QuickTime player

Postby Dame1701 » Fri Aug 12, 2016 10:17 am

Hi FrancescoT,

No problem, the QuickTime installer has caused us problems also in the past, we believe that Apple do not follow Microsoft's guidelines properly (no real surprise there). Since we can run this as a batch file I guess a good solution would be for us to run such a batch file from within InstallAware. Alternatively I could always create my own C# command line App and have InstallAware execute that.

Many thanks for the feedback, it's good to know the source of the problem, and don't worry we occasionally get strange issues that we have never seen before and some really do take us by surprise!

Kind regards,

Damien.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 141 guests