cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Waterjet
Level 2

Prerequisite evaluation not working as expected.

Hi, I am trying to debug why the built-in prerequisite for visual c++ redistributables 2019 is trying to install and failing despite a later version is already installed on the system. I am using installshield 2020.

The documentation at  https://docs.revenera.com/installshield26helplib/helplibrary/UIRefPrereqEditor_Conditions.htm states:

The target machine meets any of the operating system conditions and all of the other conditions that are listed on the Conditions tab.

 

So, if I have v14.30.30704.00 and the default version is v14.24.28127.04, I would expect the prerequisite NOT to run. Looking at the setup log, that's not what happens.

2-1-2023[08:05:14 PM]: Running setup prerequisites ()...
2-1-2023[08:05:14 PM]: Checking setup prerequisite 'Microsoft Visual C++ 2019 Redistributable Package (x86).prq'
2-1-2023[08:05:14 PM]: Prerequisite 'Microsoft Visual C++ 2019 Redistributable Package (x86).prq' scheduled before feature selection
2-1-2023[08:05:14 PM]: Extracting 'Microsoft Visual C++ 2019 Redistributable Package (x86).prq' to C:\Users\user\AppData\Local\Temp\{80F9C79F-7130-4602-AFAA-3780BFB59623}\Microsoft Visual C++ 2019 Redistributable Package (x86).prq
2-1-2023[08:05:14 PM]: PrereqEngine: condition,2,2,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,Version,,v14.24.28127.04 -- Failed!
2-1-2023[08:05:14 PM]: PrereqEngine: operatingsystemcondition,6, -- Failed!,
2-1-2023[08:05:14 PM]: PrereqEngine: operatingsystemcondition,6, -- Failed!,
2-1-2023[08:05:14 PM]: PrereqEngine: operatingsystemcondition,6, -- Failed!,
2-1-2023[08:05:14 PM]: PrereqEngine: operatingsystemcondition,6, -- Failed!,
2-1-2023[08:05:14 PM]: PrereqEngine: operatingsystemcondition,5, -- Failed!,
2-1-2023[08:05:14 PM]: PrereqEngine: operatingsystemcondition,10,0,2, -- Successful
2-1-2023[08:05:14 PM]: PrereqEngine: file,24E8177B25C072F4FB0D37496CCDBB34,ISProductFolder\SetupPrerequisites\VC 2019 Redist\VC_redist.x86.exe,https://download.visualstudio.microsoft.com/download/pr/9307e627-aaac-42cb-a32a-a39e166ee8cb/E59AE3E886BD4571A811FE31A47959AE5C40D87C583F786816C60440252CD7EC/VC_redist.x86.exe,,, -- Successful,
2-1-2023[08:05:14 PM]: PrereqEngine: execute,VC_redist.x86.exe,/q /norestart,/q /norestart,1641,3010,, -- Successful
2-1-2023[08:05:14 PM]: PrereqEngine: Id,{FC8D5946-B78E-4F52-9C56-383172988617},http://saturn.installshield.com/is/prerequisites/Microsoft Visual C++ 2019 Redistributable Package (x86).prq, -- Successful
2-1-2023[08:05:14 PM]: PrereqEngine: behavior,Optional,,Reboot,2,Failure,
2-1-2023[08:05:14 PM]: PrereqEngine: Lua,
2-1-2023[08:05:14 PM]: PrereqEngine: Hidden,
2-1-2023[08:05:14 PM]: PrereqEngine: MsiProgress,
2-1-2023[08:05:14 PM]: Skipping prerequisite 'Microsoft Visual C++ 2019 Redistributable Package (x86).prq' because it was installed before the reboot

 



 

Now, I can update the prerequisite, or the .prq file to add the latest version to avoid the problem but that's temporary until Microsoft comes up with a later version, which will always be a problem.

 

 

Labels (1)
0 Kudos
(0) Replies