Prerequisite return code - Advanced Installer Community

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!

mikec
Posts: 3
Joined: Tue Sep 25, 2012 2:26 pm

Prerequisite return code

I'm installing Windows Installer 3.1 as a prerequisite (required by .net framework 4 cp) onto Windows XP SP2 using the command line switch "/norestart".

This results in a non-zero return code (because Win Installer 3.1 wants a restart) which causes the prerequisite to have an install status of failed, which in turn stops the installation as a whole proceeding.

It's fine for my installation for the system not to be restarted - I want to restart at the end of the complete installation.

Is it possible for me to stop the prerequisite failing even if I don't restart?

p.s. I'm a first day newbie to Advanced Installer, but loving it so far :)

Regards,
Mike.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite return code

Hi Mike and welcome to Advanced Installer forums,

Does this behavior manifest when using our predefined "Windows Installer 3.1" prerequisite from the Prerequisites page?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mikec
Posts: 3
Joined: Tue Sep 25, 2012 2:26 pm

Re: Prerequisite return code

Hi Mihai,

Yes, I am using the predefined "Windows Installer 3.1" prerequisite. I also tried version 4.5.

I understand this must be intended behaviour, but it would be cool to perhaps be able to specify certain non-zero return codes as successful completions.

I do have the option "Continue with main installation even if the prerequisite is not installed" checked on the prerequisite "Properties" tab.

After the prerequisites page, I just get back or cancel buttons enabled so cannot continue.

I tried making a log, but of course I need Windows Installer already on the system for this :|

Best Regards,
Mike.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite return code

Hi Mike,

I have tested the predefined prerequisite with and without the /norestart command option and indeed can confirm the behavior.
Is it possible for me to stop the prerequisite failing even if I don't restart?
Not sure if it's possible without a restart. As described in the 4154 warning FAQ the install conditions are evaluated two times.
In this specific prerequisite's case, the second evaluation is intended to be evaluated after reboot. Before reboot the file version install condition is most probably not set.

A possible solution would be to change the install condition to something which is particular to the Windows Installer 3.1 installation, but available before the restart. Otherwise, I'm afraid you'll need the restart.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mikec
Posts: 3
Joined: Tue Sep 25, 2012 2:26 pm

Re: Prerequisite return code

Morning Mihai,

I'll live with the restart. It looks like XP SP3 includes Windows Installer anyway, so it should only be necessary for a relatively small number of systems.

Thanks for your help and a really impressive product.
Mike.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite return code

Good morning Mike,
I'll live with the restart. It looks like XP SP3 includes Windows Installer anyway, so it should only be necessary for a relatively small number of systems.
Exactly ! I had a really hard time finding a virtual machine without Windows Installer to test your scenario in the first place :)
Thanks for your help and a really impressive product.
You're welcome, glad I could help. Thank you as well for your interest in Advanced Installer and for taking the time to evaluate it.

Let us know if you have any doubts or questions,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”