AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Creating a precondition for Win 10 Pro Version

Sun Jan 31, 2021 12:31 am

Hi,

I need to restrict installation to machines running the Pro version of Windows 10. How do I do that please?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Creating a precondition for Win 10 Pro Version

Mon Feb 01, 2021 7:40 pm

Hello,

I am afraid we do not have predefined support for your request.

You can, however, achieve that through a custom action.

You can schedule this custom action between the "Searches" and "Paths Resolution" action groups, under the "Wizard Dialogs Stage".

In the above custom action, you can have a logic as it follows:

Code: Select all

if(edition="Professional"){
AI_SetMsiProperty IS_PROFESSIONAL true
}
After doing so, you can go to "Launch Conditions" page --> "Custom" tab and create a custom launch condition using the above property as a condition, e.g.:

Code: Select all

IS_PROFESSIONAL
- if the edition is Professional ==> the property will be set ==> the launch condition will be evaluated as true ==> the setup will continue

- if the edition is not Professional ==> the property will not be set ==> the launch condition will be evaluated as false ==> the setup will throw an error message

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”