thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Prerequisites "Skip Post-Install Searches" Option

In v8.8.2, there was the option to select "Skip Post-Install Searches" for a given prerequisite. However, I am unable to find this option in the most current version, 9.0.1.

I particularly need this option for a prerequisite I have. How can I enable this for a prerequisite in 9.0.1, or is it not possible and I should downgrade back to 8.8.2?

I can see this feature useful, but if my prerequisite requires a reboot before it is complete then the post-install check fails and skips to install the next prerequisite without prompting for a reboot.

I would think that if a prerequisite requires a reboot, then is a post-install prerequisite search really necessary?
Last edited by thenefield on Tue Apr 17, 2012 2:10 pm, edited 1 time in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisites "Skip Post-Install Searches" Option

Hello,
How can I enable this for a prerequisite in 9.0.1, or is it not possible and I should downgrade back to 8.8.2?
The option equivalent is to choose "Always install prerequisite" radio button from the prerequisite's Install Conditions tab.
I would think that if a prerequisite requires a reboot, then is a post-install prerequisite search really necessary?
If your prerequisite needs a reboot, you can try the "Reboot system after installing this prerequisite" option from the Prerequisite Properties Tab

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Prerequisites "Skip Post-Install Searches" Option

I don't want it to always install.

I have a condition set as a search done by a custom executable. The executable basically looks for the existence of certain files and if they are present, returns with an error. This works perfectly for detecting that the prerequisite needs to be applied but is useless post-install because the system has to be rebooted before the installation of the prerequisite is complete (e.g. it will still return with an error until the system is restarted). But since the search is also executed post-install and there is no option available anymore to skip post-install searches, it returns with a failure and does not prompt for a reboot as it was configured to do.

I am aware of how to configure it to reboot after the prerequisite install and what I am saying is that it does not prompt for a reboot when the post-install search fails and it is configured to reboot after installation via the "Reboot system after installing this prerequisite" option.

I would preferably either like to have the "Skip Post-Install Searches" option back for each prerequisite or a way to globally disable post-install searches altogether.

Given that it is still documented here, was it removed by mistake?

http://www.advancedinstaller.com/user-g ... tions.html
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisites "Skip Post-Install Searches" Option

Hello,
Given that it is still documented here, was it removed by mistake?
No, it was not, that article is no longer linked from our website. Usually the "Skip post-install searches" option was used to always install the prerequisite.

With the new "Always install prerequisite" option the pre-install search was removed as well.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisites "Skip Post-Install Searches" Option

In case you are using global prerequisites you can try to:
- create another custom .EXE that doesn't depend on a reboot
- reboot the system after the prerequisite is installed (using "Reboot system after installing this prerequisite" option)

If you are using feature-based prerequisites, by deleting InstallExecuteSequence -> AI_VerifyPrereq entry from the Table Editor you'll get the same behavior as enabling the old "Skip post-install searches" option:
New Bitmap Image.jpg
New Bitmap Image.jpg (34.81 KiB) Viewed 14872 times
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Prerequisites "Skip Post-Install Searches" Option

This will still not work for me.

I have a global prerequisite which actually removes software if it is detected. For example, after SP1 is installed on Windows 7, I have a script which executes the following command to remove all backup files created during the SP1 update:

%WINDIR%\System32\dism.exe /online /cleanup-image /spsuperseded

The removal does not complete until the reboot occurs.

However after the above command has executed and the script exits, the prerequisite does not prompt for a reboot as it is configured to do per the "Reboot system after installing this prerequisite" option.

It instead performs a post-install check, which fails because the reboot has not occurred yet, and then skips on to the next prerequisite. Other package installs also then fail because the required reboot has not yet been performed.

Please release a 9.0.2 with this "Skip post-install checks" option added back. I have had to revert back to 8.8.2 until a proper fix is identified.
Last edited by thenefield on Fri Apr 20, 2012 4:15 pm, edited 1 time in total.
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Prerequisites "Skip Post-Install Searches" Option

mihai.petcu wrote:Hello,
Given that it is still documented here, was it removed by mistake?
No, it was not, that article is no longer linked from our website. Usually the "Skip post-install searches" option was used to always install the prerequisite.

With the new "Always install prerequisite" option the pre-install search was removed as well.
I believe you are confusing post-install with pre-install. I can completely agree that if you always want to install a prerequisite, that an "always install prerequisite" option sounds appropriate.

In my case, I only want to install the prerequisite if a certain condition exists. This is a pre-install check because it verifies if the prerequisite needs to be installed before installing it.

After installing the prerequisite, it then performs the same conditional search that was executed before the prerequisite install to ensure the prerequisite did in fact install. This is referred to as a post-install check.

A post-install check makes no sense if the prerequisite is configured to require a reboot after install to allow the installation to complete.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prerequisites "Skip Post-Install Searches" Option

Hi,

Please note that the "Skip post install searches" option was a minor hack designed to support prerequisites which are always installed. This is why it was transformed into a feature which supports prerequisites that are always installed.

A prerequisite with an install condition which is not true after install makes no sense. By definition, a prerequisite is something required for the package to run. If the prerequisite is not met, the package cannot run. So by definition, the package should be installed only when the prerequisite was installed or configured correctly.

Just because your custom prerequisite requires a reboot doesn't mean you should skip the post-install check to avoid the failed condition. It means you should reboot the machine after the prerequisite is installed. This way the condition is evaluated correctly after reboot. If you simply skip the post-install check, the prerequisite may leave the system in an unsupported state which could cause installation problems.

Currently the post install check is performed before a reboot is triggered by a prerequisite. This is a bug and it will be fixed in a future version. Thank you for bringing this to our attention. Under normal circumstances, your prerequisite should reboot the machine without making any checks. After reboot, the installer should resume and skip the prerequisite which is now detected as installed.

We cannot offer an ETA for the fix. However, you can contact us at support at advancedinstaller dot com and we will send it to you as soon as it's ready.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Prerequisites "Skip Post-Install Searches" Option

Thanks Cosmin!

The fix you proposed will certainly address my issue. I am looking forward to it!

Return to “Common Problems”