I am trying to install a Windows Update as a prerequisite on Windows Vista SP2 (my client has some customers he wants to support that are still running Vista). My install conditions for the prerequisite are:
- Windows Vista Service Pack 2 (x86)
- result of C:\Windows\System32\cmd.exe /c "wmic qfe get hotfixid | findstr ^"KB971512^"" is FALSE (empty string)
- Install prerequisite if all conditions are false
This works fine if I build the installer in Vista SP2 (x86) - I see the command prompt display when checking if the update is already installed. However, if I build the installer under Windows 7 SP1 (x64), the OS condition works but the Windows Update check does not execute (I do not see the command prompt window display), and it tries to install the update anyway. I have also tried building the installer with Advanced Installer 12.3.1 in Windows 7, with the same result (12.3.1 no longer supports Vista, so I don't know if building the installer there would still work or not).
This is a problem for me because I need to prompt the user to restart the PC after the update before continuing the install. Because the prerequiste check keeps thinking the update is needed, it gets stuck trying to reboot after installing the update (if I set my AIP to prompt for a reboot after install). I can set the AIP to not reboot, and let the update itself take care of the reboot, but this means the user doesn't get a prompt. If AIP is set to reboot "only if installed successfully", then I don't get a reboot prompt, even though I know the install worked. If I set the AIP to always reboot, then i get stuck in the reboot loop because it keeps trying to install the update.
I've attached a simple AIP to reproduce the problem.
Any help would be appreciated.
- Brandon