tdicosola
Posts: 1
Joined: Wed Jan 22, 2025 6:02 pm

Conditional for Windows Server 2025

I'm using Advanced Installer 20.5

I have a custom action with the following condition:
(VersionNT64 = 1000 AND MsiNTProductType <> 1 AND WindowsBuild >= 20348)

this appears to NOT work on windows server 2025

I'm wondering if this is a limitation in the version of AI I'm using?
Does AI 20.5 NOT set VersionNT64 to 1000 for Server 2025 because its unaware of 2025?

Can I work around this without upgrading AI?

Thanks,
Tom
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Conditional for Windows Server 2025

Hello Tom and welcome to our forums,

Unfortunately, I do not have a Windows Server 2025 machine to test his on right now and therefore I can not really tell you what the value for VersionNT is in that version.

If possible, could you please run the installation on that server with the log enabled, e.g.:

Code: Select all

msiexec /i package.msi /l*v myLog.txt
or:

Code: Select all

setup.exe /l*v  myLog.txt
for EXE packages and check inside the log for the value?

Normally, the VersionNT is set by the Windows Installer - VersionNT property

Exception to that is Windows 11 as far as I'm aware as it is explained in the following article: How do I install resources based on the Operating System version?

Hope this helps!

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

Return to “Common Problems”