mhubel
Posts: 28
Joined: Fri Jul 20, 2007 2:01 pm
Contact: Website

arguments for prerequisite installer

We are trying to install LibreOffice as a prerequisite. If only a URL is specified, it works. If in addition I try to specify the command line such as:

msiexec /i LibreOffice_25.2.7.2_Win_x86-64.msi

on the Command line (Full UI) line, the msiexec installer just shows it's allowed call arguments and does nothing, The desire it to do this with an argument:

msiexec /i LibreOffice_25.2.7.2_Win_x86-64.msi ISCHECKFORPRODUCTUPDATES=0

It seems that the msiexec wants an absolute path. If that is the problem, is there a way to give it the absolute path where the file was downloaded to?
Catalin
Posts: 7794
Joined: Wed Jun 13, 2018 7:49 am

Re: arguments for prerequisite installer

Hello,

If you add the MSI for LibreOffice in the "Prerequisites" page, then you do not need to pass the command line msiexec /i to that, because we do that automatically.

Instead, you only need to pass the extra arguments. So if the entire command line looks like this:

Code: Select all

msiexec /i <path_to_msi> some_extra_arguments_here
in the command line field you only need to pass this:

Code: Select all

some_extra_arguments_here
In your specific case, you only need to pass this:

Code: Select all

ISCHECKFORPRODUCTUPDATES=0
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mhubel
Posts: 28
Joined: Fri Jul 20, 2007 2:01 pm
Contact: Website

Re: arguments for prerequisite installer

Thanks for the suggestion. That did allow the install to complete but it only seemed to work with one argument. When I tried two, it still failed. So that was the good news. Then the LibreOffice does not seem to reliably honor the argument anyway so all this is a bit academic at the moment.
Catalin
Posts: 7794
Joined: Wed Jun 13, 2018 7:49 am

Re: arguments for prerequisite installer

Hello,

You are always welcome!

Glad to hear it worked.

Regarding the second parameter, that should also work, as the installer can receive more than one parameters - make sure you have passed them correctly.

For example if the parameters you are passing are like this:

Code: Select all

param1 param2
try to also run the prerequisite manually from the command line using the same parameters, e.g.:

Code: Select all

msiexec /i <path_to_installer> param1 param2
Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”