We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Prerequisite fails to install [Solved]

hi

I'm trying to get "Matlab compiler runtime" to install as prerequisite to my app.
My issue is that after the prerequisite is extracted the setup continues, not waiting for the "Matlab compiler runtime" setup to start not to mention end.
This results in a "failed" installation of "Matlab compiler runtime" (the second check of install condition is ran before the setup even starts and obviously fails ). The "Matlab compiler runtime" setup does start after a second or so but it's too late.

any help is appreciated
thank you
Uria
Last edited by UriaLevy on Mon Nov 05, 2012 8:53 am, edited 1 time in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite fails to install

Hi Uria,

Are you encountering the 4154 warning?

Also, does the behavior manifest on all(clean) machines?

Maybe there are other dependencies for that package you haven't considered.

If all above don't solve the problem, can you please send us a link to the prerequisite installer manifesting this so we can replicate the behavior? Send it to support at advancedinstaller dot com.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: Prerequisite fails to install

Thank you for the response.

I'm not encountering the 4154 warning.
After the prerequisites windows shows the failed installation, the prerequisite setup starts and completes successfully so this is no dependency.
The other prerequisites are installed correctly, the failing prerequisite seem like the process starts but AI will not wait for it to complete and immediately tries to check if has been installed.

would you please clarify what you meant by prerequisite installer manifesting?

Thank you
Uria
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite fails to install

Hi Uria,

I meant to ask you to send us a link to the prerequisite installer package (.MSI, .EXE, etc). The same prerequisite package that triggers this behavior.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: Prerequisite fails to install

Hi Mihai

Here is the link to the prerequisite:
http://www.mathworks.com/supportfiles/M ... taller.exe

you will need extract the archive and edit "installer_input.txt" file to install this in automated mode.
  • "# agreeToLicense=" change to: "agreeToLicense=yes"
    "# mode=" change to: "mode=automated"
without the quotes

My prerequisite condition is:
  • "registry key exist" "HKLM\SOFTWARE\MathWorks\MATLAB Compiler Runtime\7.17"
Thank you
Uria
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite fails to install

Hello Uria,

I have tested the scenario you mentioned and indeed can confirm this behavior.

This is happening because the matlab prerequisite has prerequisites of its own. As I mentioned above our prerequisite install condition mechanism evaluates the searches two times: before and after the prerequisite is installed.
To detect the prerequisite was installed, our bootstrapper monitors the main prerequisite's installer ("setup.exe" in your case) process. When this process ends, the install condition is evaluated the second time.

The matlab compiler installer is designed to stop the main process during the installation of its prerequisites, thus telling our bootstrapper the prerequisite was installed. This of course triggers the second install condition evaluation and outputs the prerequisite failed.

To get past this you can try add the "Matlab compiler runtime" prerequisites from the Prerequisites page in your main Advanced Installer project.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: Prerequisite fails to install

Hi Mihai

Sorry for the late response it holidays season here.
If i understand you correctly this is how i have done it in the first place, "add the "Matlab compiler runtime" prerequisites from the Prerequisites page in your main Advanced Installer project".

Thank you
Uria
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite fails to install

Hi Uria,

You added only the "Matlab Compiler Runtime" as a prerequisite in the main Advanced Installer project but not all its prerequisites along with it.

I described something different in my reply. I meant the solution you can try is to add all "Matlab Compiler Runtime" 's prerequisites from your main Advanced Installer project.
This way the "Matlab Compiler Runtime" installation package will not attempt to install any of its prerequisites and implicitly not fail.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: Prerequisite fails to install

I did understand you correctly.It is configured this way, i think "Matlab Compiler Runtime" still checks for the prerequisites outside the main setup resulting in the same issue.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite fails to install

It is configured this way, i think "Matlab Compiler Runtime" still checks for the prerequisites outside the main setup resulting in the same issue.
The prerequisites installation order is top-bottom in the Prerequisites page list. If you added its prerequisites before "Matlab Compiler Runtime", it cannot attempt to install them because they are already installed.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: Prerequisite fails to install

The prerequisites installation order is top-bottom in the Prerequisites page list. If you added its prerequisites before "Matlab Compiler Runtime", it cannot attempt to install them because they are already installed.
I understand, this is the way i have done that, the 2 prerequisites of "Matlab Compiler Runtime" are "Visual C++ 2005 Redistributable" and "Visual C++ 2008 Redistributable".
Both are being installed (through "Advanced Installer") before the the attempt to install "Matlab Compiler Runtime". My guess is that "Matlab Compiler Runtime" 's setup prerequisites check is also done outside the main setup resulting in an early return to the AI setup process.

Thank you
Uria
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite fails to install

Hello Uria,

Can you please check if "Matlab Compiler Runtime"'s install condition is met at the moment the bootstrapper shows it failed?
"registry key exist" "HKLM\SOFTWARE\MathWorks\MATLAB Compiler Runtime\7.17"
If it's not, then you're getting the expected behavior.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: Prerequisite fails to install

I've tried contacting the mat-lab guys but with no luck so far.
thank you for the help.

Uria

Return to “Common Problems”