cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Superfreak3
Occasional contributor

Can't Get Launch Condition Right...

I'm trying to add to an existing launch condition to allow for install on 2019.

The application is only to be allowed on Win 7 and 10 workstation OSs and Server 2019.

Before adding 2019 support, the condition looked like this...

(VersionNT64>=601 AND MsiNTProductType=1) OR SERVEROSBYPASS

The SERVEROSBYPASS is an in-house backdoor to install on unsupported OSs and is populated if a file is found.  All of that has been working fine for years.

What I tried was this for Server 2019...

(VersionNT64>=601 AND MsiNTProductType=1) OR SERVEROSBYPASS OR WindowsBuild>=17763

It seems that the problem is with WindowsBuild>=17763.  I stripped everything but that from the condition and it still does not allow install on Server 2019.  Is that property deprecated?  Is the value I'm checking for incorrect?  Or is there some syntax problem?

I'm stumped.

What I did do was add a message to the install to show WindowsBuild number and it is reporting 9600.  The system is definitely Server 2019 so that seems to me that that property may have been abandoned and doesn't work for newer OSs.

I'm wondering if I should just create a custom action to check for allowed OSs, set a property and use that as my condition.

Labels (1)
0 Kudos
13 Replies
Roman2
Active participant

Re: Can't Get Launch Condition Right...

When you install an .msi installation package on
Windows 10, Windows Server 2016 or Windows Server 2019,
the VersionNT value is 603.

More Information
This version numbering is by design.
To maintain compatibility, the VersionNT value is 603 for
Windows 10, Windows Server 2016, and Windows Server 2019.
0 Kudos
Roman2
Active participant

Re: Can't Get Launch Condition Right...

Windows Server 2012 R2 x64     VersionNT64 = 603 AND MsiNTProductType <> 1
Windows 10 x64                               VersionNT64 = 1000 AND MsiNTProductType = 1
Windows Server 2016 x64            VersionNT64 = 1000 AND MsiNTProductType <> 1

0 Kudos
Superfreak3
Occasional contributor

Re: Can't Get Launch Condition Right...

So, we're currently supporting this app on Win 7, Win10, and Server 2019.  So VersionNT64 = 1000 AND MsiNTProductType <> 1 wouldn't work for us as that would allow install on Server 2016.  That's why I was trying to utilize the WindowsBuild property, which doesn't seem to work or is not applicable to newer OSs.

0 Kudos
Roman2
Active participant

Re: Can't Get Launch Condition Right...

 

Name                                 Version  Build           Number    Release

Windows Server 2016, Version 1607 10.0    14393    2016-08-02 
Windows Server 2016, Version 1709 10.0    16299    2017-10-17 
Windows Server 2019

1909 18363     2019 - SAC                     12 Nov 2019
1903 18362     2019 - SAC                     21 May 2019
1809 17763      2019 - LTSC                  13 Nov 2018
1803 17677     Server 2019 Preview 09 Jun 2018

0 Kudos
Superfreak3
Occasional contributor

Re: Can't Get Launch Condition Right...

If you notice in the original post, I tried using the WindowsBuild property, but it was always resolving to an earlier build version on the later OSs.

0 Kudos
Roman2
Active participant

Re: Can't Get Launch Condition Right...

Make a test setup.

Put in the InstallWellcome dialog an text field with following command:

WindowsBuild = [WindowsBuild]

Build it and start on WS2019

You will see, what really the value of WindowsBuild is.

 

0 Kudos
Superfreak3
Occasional contributor

Re: Can't Get Launch Condition Right...

I'll try it again, but from the initial post...

"What I did do was add a message to the install to show WindowsBuild number and it is reporting 9600.  The system is definitely Server 2019 so that seems to me that that property may have been abandoned and doesn't work for newer OSs."

0 Kudos
Roman2
Active participant

Re: Can't Get Launch Condition Right...

 

Yes. You are right.

I have check this property on very new WS2019 install version Nov, 2019

It also  is reporting 9600

?!

 

0 Kudos
Roman2
Active participant

Re: Can't Get Launch Condition Right...

 

I see the only way to get a build version, it is to

read   key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

CurrentBuildNumber ---> 17763

Regards

Roman

 

0 Kudos