Prerequisites status OK, but action incorrect - 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!

Robbie
Posts: 13
Joined: Thu Jul 24, 2008 12:25 am

Prerequisites status OK, but action incorrect

I have a package with dependency on Visual C++ 2005 redistributable and Rar.

On a "clean" machine the initial installation correctly detects both prerequisites are missing.
The installation of both is initiated and completes successfully.
At this point it shows in the package list that both prerequisites have been installed, but the dialog box states "After launching all packages some required prerequisites are still missing. Press Back to return to the prerequisites list.".
When going back it shows that the 2nd of the 2 prerequisites is not installed, but at this point it can already be initiated correctly from outside the Advanced Installer 6.4.1.
Initiating the prerequisite installation again results in a successful internal status and the installation continues with the installation of the main package.

See also screen dump attached.

Can anyone suggest a workaround to this, as this first user contact with my product does not look particularly tidy.
Attachments
Doc1.zip
Windows Word with screendump
(34.63 KiB) Downloaded 283 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prerequisites status OK, but action incorrect

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the AIP file you are using (if it doesn't contain confidential information) or a small test case which reproduces the problem to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Robbie
Posts: 13
Joined: Thu Jul 24, 2008 12:25 am

Re: Prerequisites status OK, but action incorrect

I have forwarded the aip file as requested. I can make the installer file available on the web, but its ~90Mb.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prerequisites status OK, but action incorrect

Hi,

You are encountering this behavior because of the way the WinRar installation works. Basically, the EXE runs some commands which create the registry entries and it extracts the application files.

The bootstrapper of your package watches only for the process created by the WinRar installation EXE. Since the registry entry is not created directly by the process of this EXE (another process is used), it cannot detect the WinRar installation in the first test.

When you run the prerequisite wizard the second time, the registry entry has already been created so the prerequisite is detected.

A solution would be to use a different detection criteria for WinRar. Also, you can use a custom action which launches WinRar (instead of a prerequisite). This custom action can be conditioned by the property of a checkbox in a custom dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”