Tosken
Posts: 15
Joined: Wed Oct 09, 2013 11:51 am

Check for Microsoft security fix as prerequisite

Hi all,

our installer needs to make sure that a specific microsoft security fix is installed on the system (KS3033929).
Typically this gets installed with the automatic windows update. But we have to make sure that it is installed and otherwise download / install the patch.

I can add the *.msu package as a prerequisite but how can i check if it is instaleld (install condition).
I there maybe a special option to check for common security fixes?

Thangs and best regards
Sebastian
Tosken
Posts: 15
Joined: Wed Oct 09, 2013 11:51 am

Re: Check for Microsoft security fix as prerequisite

I already found a solution with the following command it is possible to check for a fix.
wmic qfe where hotfixid="KB3033929"

I wrote a simple application which performs the check and use the application as install condition in the advanced installer.
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi,

I'm glad you got this working.

I'm afraid that we do not have predefined support to check for security fixes, the method you used is recommended. Thank you for sharing the solution with us, I'm sure it will help other users in the future.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
blackpanda
Posts: 26
Joined: Mon Nov 05, 2018 3:52 am

Re: Check for Microsoft security fix as prerequisite

It didn't work for me.
I followed the document at this link https://www.advancedinstaller.com/user- ... files.html
but no luck.
My setup as below:
av1.png
av1.png (6.95 KiB) Viewed 8025 times
When I executed my Installer in Windows Server 2012 R2, the Installer showed a dialog to prompt me to install that hotfix. It's fine, I installed the hotfix. After that, I re-executed the Installer and It's till prompt me to install the hotfix, this is what I didn't expect
av2.png
av2.png (3.27 KiB) Viewed 8025 times
I opened cmd and tried the command directly and found that the hotfix was already installed.
av3.png
av3.png (7.6 KiB) Viewed 8025 times
Any ideas?
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi,

I'm not sure why you encounter this problem. Did you reproduce it on multiple machines? Does it display the "FAILURE" result if you use the "Evaluate..." button from the "Install Conditions" tab after you install that prerequisite?

If so, can you please send me the .AIP (project file) to support at advancedinstaller dot com, so I can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
blackpanda
Posts: 26
Joined: Mon Nov 05, 2018 3:52 am

Re: Check for Microsoft security fix as prerequisite

I installed Advanced Installer in my current pc, Win10 latest update. Evaluation button says SUCCESS.
The problem that described above occurred on my testing VM Win Server 2012 R2.

Please let me know your email. I will send you my .aip

Thank you
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi,

This is our support email address were you can send your project: support at advancedinstaller dot com

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi,

I tested your project and, indeed, I reproduced the problem on a Windows Server 2012 R2 machine. However, I noticed that if I install Advanced Installer on that machine and click the "Evaluate" button there or build the package on that machine and then install it, everything works as expected.

Can you please try this and let me know if you get the same result?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
blackpanda
Posts: 26
Joined: Mon Nov 05, 2018 3:52 am

Re: Check for Microsoft security fix as prerequisite

Hi Eusebiu,

I did a test on Win 2012 R2 as you told me to do. Yes, it's work with or without clicking on Evaluate button.
Waiting for your solution.

Regards
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi,

Thank you for confirming this.

I've reported this to our development team, so they will investigate and fix the issue in a future version of Advanced Installer. Thank you for bringing it to our attention.

Meanwhile, I'm afraid that the only workaround is to build your package directly on the Windows Server 2012 R2 machine. I'm sorry for the inconvenience.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
blackpanda
Posts: 26
Joined: Mon Nov 05, 2018 3:52 am

Re: Check for Microsoft security fix as prerequisite

The same problem occurred in Windows 7
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi,

Thank you for letting us know. I added this information to the issue related to the problem discussed in this topic.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ricky11
Posts: 7
Joined: Tue Jun 18, 2019 3:24 pm

Re: Check for Microsoft security fix as prerequisite

We are facing the same issue, is there an update available soon?

Thanks
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check for Microsoft security fix as prerequisite

Hi and welcome to our forums.

I'm afraid that the issue was not fixed yet and I cannot give an ETA for now. I increased its priority and we will update this thread when the fix will be available.

Meanwhile, can you try to configure a BAT file with your command, then use it as the condition and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
blackpanda
Posts: 26
Joined: Mon Nov 05, 2018 3:52 am

Re: Check for Microsoft security fix as prerequisite

This brings us a lot of troubles. We have customers who are using Win Server 2012 and they have no idea what hotfixes should be installed for prerequisites. We have to send men to help them to install our product.
There're several months since my report and the problem is still.
Cost us money and time....

Return to “Building Installers”